config: Use add_soong_config_namespace/add_soong_config_var macros

Test: m nothing and compare out/soong/soong.lineage_*.variables
Change-Id: I802f4f7eb37d520fd74599e2b673a5b2368c5d09
This commit is contained in:
LuK1337
2025-05-11 13:09:52 +02:00
committed by Łukasz Patron
parent df60b80a44
commit c2dd68f84a

View File

@@ -15,16 +15,8 @@ EXPORT_TO_SOONG := \
# Documentation here: # Documentation here:
# https://github.com/LineageOS/android_build_soong/commit/8328367c44085b948c003116c0ed74a047237a69 # https://github.com/LineageOS/android_build_soong/commit/8328367c44085b948c003116c0ed74a047237a69
SOONG_CONFIG_NAMESPACES += lineageVarsPlugin $(call add_soong_config_namespace,lineageVarsPlugin)
$(foreach v,$(EXPORT_TO_SOONG),$(eval $(call add_soong_config_var,lineageVarsPlugin,$(v))))
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 # Camera
ifneq ($(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED),) ifneq ($(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED),)