Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soong: Add power libperfmgr extension config #16

Open
wants to merge 1 commit into
base: fourteen-v3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions build/soong/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,25 @@ vendor_init {
},
}

soong_config_module_type {
name: "power_libperfmgr",
module_type: "cc_defaults",
config_namespace: "pixysGlobalVars",
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",
Expand Down
3 changes: 3 additions & 0 deletions config/BoardConfigSoong.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ SOONG_CONFIG_pixysGlobalVars += \
target_health_charging_control_supports_toggle \
target_init_vendor_lib \
target_ld_shim_libs \
target_power_libperfmgr_mode_extension_lib \
target_process_sdk_version_override \
target_surfaceflinger_udfps_lib \
target_uses_prebuilt_dynamic_partitions \
Expand Down Expand Up @@ -127,6 +128,7 @@ TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE ?= false
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE ?= true
TARGET_INIT_VENDOR_LIB ?= vendor_init
TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY ?= libcamera_parameters
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB ?= libperfmgr-ext
TARGET_QTI_VIBRATOR_EFFECT_LIB ?= libqtivibratoreffect
TARGET_SDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC ?= true
TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib
Expand All @@ -136,6 +138,7 @@ SOONG_CONFIG_pixysGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITI
SOONG_CONFIG_pixysGlobalVars_bootloader_message_offset := $(BOOTLOADER_MESSAGE_OFFSET)
SOONG_CONFIG_pixysGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)
SOONG_CONFIG_pixysGlobalVars_target_ld_shim_libs := $(subst $(space),:,$(TARGET_LD_SHIM_LIBS))
SOONG_CONFIG_pixysGlobalVars_target_power_libperfmgr_mode_extension_lib := $(TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB)
SOONG_CONFIG_pixysGlobalVars_target_process_sdk_version_override := $(TARGET_PROCESS_SDK_VERSION_OVERRIDE)
SOONG_CONFIG_pixysGlobalVars_target_surfaceflinger_udfps_lib := $(TARGET_SURFACEFLINGER_UDFPS_LIB)
SOONG_CONFIG_pixysGlobalVars_target_uses_prebuilt_dynamic_partitions := $(TARGET_USES_PREBUILT_DYNAMIC_PARTITIONS)
Expand Down