soong: Add power libperfmgr extension config

Change-Id: I401335a1851948bae8de42d0f86af4763dd795b3
This commit is contained in:
Arian 2024-05-18 15:40:29 +02:00 committed by Bruno Martins
parent 49c4dd8f86
commit 0b86619dc5
2 changed files with 22 additions and 0 deletions

View file

@ -200,6 +200,25 @@ vendor_init {
},
}
soong_config_module_type {
name: "power_libperfmgr",
module_type: "cc_defaults",
config_namespace: "lineageGlobalVars",
value_variables: ["target_power_libperfmgr_mode_extension_lib"],
properties: [
"whole_static_libs",
],
}
power_libperfmgr {
name: "power_libperfmgr_defaults",
soong_config_variables: {
target_power_libperfmgr_mode_extension_lib: {
whole_static_libs: ["%s"],
},
},
}
soong_config_module_type {
name: "surfaceflinger_udfps_lib",
module_type: "cc_defaults",

View file

@ -43,6 +43,7 @@ SOONG_CONFIG_lineageGlobalVars += \
target_health_charging_control_supports_toggle \
target_init_vendor_lib \
target_ld_shim_libs \
target_power_libperfmgr_mode_extension_lib \
target_surfaceflinger_udfps_lib \
target_trust_usb_control_path \
target_trust_usb_control_enable \
@ -90,6 +91,7 @@ TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS ?= true
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE ?= false
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE ?= true
TARGET_INIT_VENDOR_LIB ?= vendor_init
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB ?= libperfmgr-ext
TARGET_QTI_VIBRATOR_EFFECT_LIB ?= libqtivibratoreffect
TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib
TARGET_TRUST_USB_CONTROL_PATH ?= /proc/sys/kernel/deny_new_usb
@ -109,6 +111,7 @@ SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_supports_deadline
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_supports_toggle := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE)
SOONG_CONFIG_lineageGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)
SOONG_CONFIG_lineageGlobalVars_target_ld_shim_libs := $(subst $(space),:,$(TARGET_LD_SHIM_LIBS))
SOONG_CONFIG_lineageGlobalVars_target_power_libperfmgr_mode_extension_lib := $(TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB)
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)