diff options
author | Paul Duffin <paulduffin@google.com> | 2022-06-22 16:42:26 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2022-06-23 13:19:00 +0000 |
commit | dccd189954c52d2726cfd287a7a230f4b837f285 (patch) | |
tree | d6b981fd734fb0012bd59d66f324acf14b09728a | |
parent | 9c2f61119c2bd7c11b0c1e4077607921c4d835d1 (diff) | |
download | build-android13-tests-dev.tar.gz |
Do not override setting of SOONG_CONFIG_<m>_module_source_buildandroid13-tests-dev
Previously, any setting of SOONG_CONFIG_<m>_module_source_build (where
<m> is one of wifi, uwb or bluetooth) that was made before the
core/android_soong_config_vars.mk was processed would be replaced with
false. This change will only set them to false if they have not been
previously set.
Bug: 233965247
Test: m nothing
# After setting SOONG_CONFIG_wifi_module_source=true before this
# code. Without this change out/soong/soong.variables uses false
# for the wifi_module/module_source config variable. With this
# change it uses true.
Change-Id: I1dffeb055a68250f574630d4ef5fedc51bad4a2b
-rw-r--r-- | core/android_soong_config_vars.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk index 711518ed70..2880b287c5 100644 --- a/core/android_soong_config_vars.mk +++ b/core/android_soong_config_vars.mk @@ -130,7 +130,8 @@ INDIVIDUALLY_TOGGLEABLE_PREBUILT_MODULES := \ wifi \ $(foreach m, $(INDIVIDUALLY_TOGGLEABLE_PREBUILT_MODULES),\ - $(call soong_config_set,$(m)_module,source_build,$(MODULE_BUILD_FROM_SOURCE))) + $(if $(call soong_config_get,$(m)_module,source_build),,\ + $(call soong_config_set,$(m)_module,source_build,$(MODULE_BUILD_FROM_SOURCE)))) # Apex build mode variables ifdef APEX_BUILD_FOR_PRE_S_DEVICES |