envsetup: Set INLINE_KERNEL_BUILDING if TARGET_PREBUILT_KERNEL is set

Change-Id: I2404adf572bdafb91edc66a19a83a2696004b33f
Signed-off-by: RITEFANG <1721985272@qq.com>
This commit is contained in:
Michael Bestas
2021-05-06 16:44:13 +03:00
committed by SkyMinus
parent 47231b5377
commit 91afc4bef0

View File

@@ -529,6 +529,13 @@ function _lunch_meat()
# Note this is the string "release", not the value of the variable.
export TARGET_BUILD_TYPE=release
local prebuilt_kernel=$(get_build_var TARGET_PREBUILT_KERNEL)
if [ -z "$prebuilt_kernel" ]; then
export INLINE_KERNEL_BUILDING=true
else
unset INLINE_KERNEL_BUILDING
fi
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
set_stuff_for_environment