From 5ee062d79047bedc76bc7535612c50c9710189eb Mon Sep 17 00:00:00 2001 From: Joey Huab Date: Sun, 11 May 2025 23:19:00 +0900 Subject: [PATCH] Revert "config: Use add_soong_config_namespace/add_soong_config_var macros" This reverts commit c2dd68f84a41dc5ae526e9936e19b61cdef36802. --- config/BoardConfigSoong.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index b588fe7e..ecd1f52b 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -18,8 +18,16 @@ EXPORT_TO_SOONG := \ # Documentation here: # https://github.com/LineageOS/android_build_soong/commit/8328367c44085b948c003116c0ed74a047237a69 -$(call add_soong_config_namespace,lineageVarsPlugin) -$(foreach v,$(EXPORT_TO_SOONG),$(eval $(call add_soong_config_var,lineageVarsPlugin,$(v)))) +SOONG_CONFIG_NAMESPACES += lineageVarsPlugin + +SOONG_CONFIG_lineageVarsPlugin := + +define addVar + SOONG_CONFIG_lineageVarsPlugin += $(1) + SOONG_CONFIG_lineageVarsPlugin_$(1) := $($1) +endef + +$(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v)))) # Camera ifneq ($(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED),)