From 4f4b6d776df71655c8d7723f5c0c67c75c0c6a0e Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 9 Jun 2022 15:59:28 +0000 Subject: [PATCH] Add wifi_module/source_build Soong config variable As an optional module, wifi has its own Soong config variable. This change ensures that it is controlled by the same environment variable as the rest of the modules. Bug: 233965247 Test: # Unpack wifi snapshot that uses wifi specific Soong config. m nothing # Without this the build fails as it uses the wifi prebuilts # which do not work in AOSP. # With this change the build passes as it uses the wifi # sources. Change-Id: Iea0ad09182a162b8f5ddf1403f65a3bbffb9ef08 --- core/android_soong_config_vars.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk index 6c32da4269..c912d5ba50 100644 --- a/core/android_soong_config_vars.mk +++ b/core/android_soong_config_vars.mk @@ -71,6 +71,15 @@ endif $(call soong_config_set,art_module,source_build,$(ART_MODULE_BUILD_FROM_SOURCE)) +# Ensure that those mainline modules who have individually toggleable prebuilts +# are controlled by the MODULE_BUILD_FROM_SOURCE environment variable by +# default. +INDIVIDUALLY_TOGGLEABLE_PREBUILT_MODULES := \ + wifi \ + +$(foreach m, $(INDIVIDUALLY_TOGGLEABLE_PREBUILT_MODULES),\ + $(call soong_config_set,$(m)_module,source_build,$(MODULE_BUILD_FROM_SOURCE))) + # Apex build mode variables ifdef APEX_BUILD_FOR_PRE_S_DEVICES $(call add_soong_config_var_value,ANDROID,library_linking_strategy,prefer_static)