diff options
author | Andrei Homescu <ahomescu@google.com> | 2024-03-13 05:32:34 +0000 |
---|---|---|
committer | Andrei Homescu <ahomescu@google.com> | 2024-04-06 00:40:13 +0000 |
commit | 6962374d8e98165750d7cb384f6f823b1f48fc97 (patch) | |
tree | 33b0f0049074b194c12da42eefdf75524474bae1 | |
parent | 112b3fab13dd0105a3e2866d60cb5d881cc21ae5 (diff) | |
download | aosp-6962374d8e98165750d7cb384f6f823b1f48fc97.tar.gz |
Export soong_ui if available
Check if the Soong bash wrapper is available, e.g.,
we are building in the unified Android-Trusty tree,
and export it to the build system as the SOONG_UI
variable.
Bug: 285203365
Test: build.by qemu-generic-arm64-test-debug
Change-Id: I6c47cf530cc8002e34507a57bb964edf3d16dfc7
-rw-r--r-- | scripts/envsetup.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index b3478a1..7910118 100644 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh @@ -43,6 +43,11 @@ export BUILDTOOLS_BINDIR=${TRUSTY_TOP}/prebuilts/build-tools/linux-x86/bin export BUILDTOOLS_COMMON=${TRUSTY_TOP}/prebuilts/build-tools/common export PY3=$BUILDTOOLS_BINDIR/py3-cmd +SOONG_UI=$TRUSTY_TOP/build/soong/soong_ui.bash +if [ -f "$SOONG_UI" ]; then + export SOONG_UI +fi + if [ -f "$TRUSTY_TOP/external/lk/engine.mk" ]; then export LKROOT=$TRUSTY_TOP/external/lk elif [ -f "$TRUSTY_TOP/external/trusty/lk/engine.mk" ]; then |