diff options
author | Paul Duffin <paulduffin@google.com> | 2022-03-25 11:00:47 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2022-03-25 11:10:44 +0000 |
commit | aad984bea1c4aea1f4391cf3395a91793669c83b (patch) | |
tree | 5c9b32975f5cf2b03b6f3a1406247c52dfa61e4c /build | |
parent | ffa89fd0a094d58bc548aa024e54e3fd35ae69c2 (diff) | |
download | common-aad984bea1c4aea1f4391cf3395a91793669c83b.tar.gz |
Fix failures caused by lack of ANDROID_BUILD_TOP on build servers
Bug: 226686554
Bug: 218685706
Test: unset ANDROID_BUILD_TOP
packages/modules/common/build/mainline_modules_sdks.sh
Change-Id: I1da4309e0537b251b3f7a6c2160bef77e6f218ff
Diffstat (limited to 'build')
-rwxr-xr-x | build/mainline_modules_sdks.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/mainline_modules_sdks.sh b/build/mainline_modules_sdks.sh index 766bafcc..35a677ed 100755 --- a/build/mainline_modules_sdks.sh +++ b/build/mainline_modules_sdks.sh @@ -56,6 +56,10 @@ function main() { # provided by the build to ensure consistency across build environments. export DIST_DIR OUT_DIR + # Make sure that the ANDROID_BUILD_TOP (which is the same as the current + # directory as checked above) is exported to Python. + export ANDROID_BUILD_TOP="${PWD}" + # The path to this tool is the .sh script that lives alongside the .py script. TOOL_PATH="${py3script%.py}.sh" prebuilts/build-tools/linux-x86/bin/py3-cmd -u "${py3script}" \ |