From 8aab9617db48bcbc87d2b34218f7d04c030282cb Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 6 May 2021 16:44:13 +0300 Subject: [PATCH] envsetup: Set INLINE_KERNEL_BUILDING based on TARGET_NO_KERNEL Change-Id: I2404adf572bdafb91edc66a19a83a2696004b33f --- envsetup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 3d41a83d81..a6e870d848 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -522,6 +522,13 @@ function _lunch_meat() # Note this is the string "release", not the value of the variable. export TARGET_BUILD_TYPE=release + local no_kernel=$(_get_build_var_cached TARGET_NO_KERNEL) + if [[ "$no_kernel" == "true" ]]; then + unset INLINE_KERNEL_BUILDING + else + export INLINE_KERNEL_BUILDING=true + fi + [[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo fixup_common_out_dir