config: Move surfaceflinger UDFPS lib to select()

Change-Id: Iecf818e3f45811760a2e51156014e4ef6ec6afa7
This commit is contained in:
Michael Bestas
2025-04-24 23:40:03 +03:00
committed by Bruno Martins
parent 695e44e1ba
commit 20a2227caf
2 changed files with 5 additions and 24 deletions

View File

@@ -147,27 +147,6 @@ power_libperfmgr {
},
}
soong_config_module_type {
name: "surfaceflinger_udfps_lib",
module_type: "cc_defaults",
config_namespace: "lineageGlobalVars",
value_variables: ["target_surfaceflinger_udfps_lib"],
properties: [
"cppflags",
"whole_static_libs",
],
}
surfaceflinger_udfps_lib {
name: "surfaceflinger_udfps_lib_defaults",
soong_config_variables: {
target_surfaceflinger_udfps_lib: {
cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"],
whole_static_libs: ["%s"],
},
},
}
soong_config_module_type {
name: "trust_usb_control",
module_type: "cc_defaults",

View File

@@ -43,7 +43,6 @@ SOONG_CONFIG_lineageGlobalVars += \
target_powershare_path \
target_powershare_enabled \
target_powershare_disabled \
target_surfaceflinger_udfps_lib \
target_trust_usb_control_path \
target_trust_usb_control_enable \
target_trust_usb_control_disable
@@ -70,7 +69,6 @@ TARGET_INIT_VENDOR_LIB ?= vendor_init
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB ?= libperfmgr-ext
TARGET_POWERSHARE_ENABLED ?= 1
TARGET_POWERSHARE_DISABLED ?= 0
TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib
TARGET_TRUST_USB_CONTROL_PATH ?= /proc/sys/kernel/deny_new_usb
TARGET_TRUST_USB_CONTROL_ENABLE ?= 1
TARGET_TRUST_USB_CONTROL_DISABLE ?= 0
@@ -93,7 +91,11 @@ SOONG_CONFIG_lineageGlobalVars_target_power_libperfmgr_mode_extension_lib := $(T
SOONG_CONFIG_lineageGlobalVars_target_powershare_path := $(TARGET_POWERSHARE_PATH)
SOONG_CONFIG_lineageGlobalVars_target_powershare_enabled := $(TARGET_POWERSHARE_ENABLED)
SOONG_CONFIG_lineageGlobalVars_target_powershare_disabled := $(TARGET_POWERSHARE_DISABLED)
SOONG_CONFIG_lineageGlobalVars_target_surfaceflinger_udfps_lib := $(TARGET_SURFACEFLINGER_UDFPS_LIB)
SOONG_CONFIG_lineageGlobalVars_target_trust_usb_control_path := $(TARGET_TRUST_USB_CONTROL_PATH)
SOONG_CONFIG_lineageGlobalVars_target_trust_usb_control_enable := $(TARGET_TRUST_USB_CONTROL_ENABLE)
SOONG_CONFIG_lineageGlobalVars_target_trust_usb_control_disable := $(TARGET_TRUST_USB_CONTROL_DISABLE)
# Surfaceflinger
ifneq ($(TARGET_SURFACEFLINGER_UDFPS_LIB),)
$(call soong_config_set,surfaceflinger,udfps_lib,$(TARGET_SURFACEFLINGER_UDFPS_LIB))
endif