aboutsummaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
authorDroidFreak32 <rushabshah32@gmail.com>2024-02-11 22:26:21 +0530
committerGeorge Zacharia <george.zcharia@gmail.com>2024-04-26 13:04:30 +0530
commit7de58bc958ef457b7431a4b8bce3f78b4c0b841a (patch)
treed203e87e9b319bc1de68de579213a500e2488d26 /envsetup.sh
parent5667b13f721d5648e52e1bf6799d4e4b4c97b13d (diff)
envsetup: Set INLINE_KERNEL_BUILDING if EMULATOR_KERNEL_FILE is set
* Fixes the following build failure when building emulator targets: FAILED: out/soong/build.ninja cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --bazel-mode --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp error: vendor/qcom/opensource/dataservices/rmnetctl/Android.bp:34:1: "librmnetctl" depends on undefined module "qti_kernel_headers". Module "librmnetctl" is defined in namespace "vendor/qcom/opensource/dataservices" which can read these 2 namespaces: ["vendor/qcom/opensource/dataservices" "."] Module "qti_kernel_headers" can be found in these namespaces: ["hardware/google/pixel"] Or did you mean ["device_kernel_headers" "kernel_log_monitor" "libkernel_cmdline" "qti_powerhal_headers"]? 21:42:24 soong bootstrap failed with: exit status 1 Change-Id: I5a1f735077601871093747a23a9040ecce2cf4c7
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh
index b48861475b..0121d5e1cb 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -872,7 +872,8 @@ function lunch()
export TARGET_BUILD_TYPE=release
local prebuilt_kernel=$(get_build_var TARGET_PREBUILT_KERNEL)
- if [ -z "$prebuilt_kernel" ]; then
+ local emulator_kernel=$(get_build_var EMULATOR_KERNEL_FILE)
+ if [ -z "$prebuilt_kernel" ] || [ -z "$emulator_kernel" ]; then
export INLINE_KERNEL_BUILDING=true
else
unset INLINE_KERNEL_BUILDING