Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc1d6af1 authored by Colin Cross's avatar Colin Cross
Browse files

Undo tapas or banchan setup when running lunch

Clear TARGET_BUILD_APPS when running lunch to prevent a previous
tapas or banchan setup from corrupting a platform build.

Test: tapas foo && lunch aosp_cf_x86_64_only_phone-trunk_staging-userdebug && echo $TARGET_BUILD_APPS
Change-Id: Icbd6aa7e6f0ed89412b75a8b812d0620cc4e6aeb
parent cdac0a6c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -447,6 +447,7 @@ function _lunch_meat()
    TARGET_PRODUCT=$product \
    TARGET_RELEASE=$release \
    TARGET_BUILD_VARIANT=$variant \
    TARGET_BUILD_APPS= \
    build_build_var_cache
    if [ $? -ne 0 ]
    then
@@ -461,6 +462,8 @@ function _lunch_meat()
    export TARGET_RELEASE=$release
    # Note this is the string "release", not the value of the variable.
    export TARGET_BUILD_TYPE=release
    # Undo any previous tapas or banchan setup
    export TARGET_BUILD_APPS=

    [[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo