sdm845-common: Provide a static lib for power mode extension

Change-Id: I3e2cf17bf1e733838e9e18afdf3f888e814593dc
This commit is contained in:
Arian 2024-05-18 15:52:45 +02:00 committed by Lup Gabriel
parent eabd64933e
commit f6cc6d08bf
2 changed files with 12 additions and 1 deletions

View File

@ -87,7 +87,7 @@ TARGET_COPY_OUT_SYSTEM_EXT := system_ext
TARGET_COPY_OUT_VENDOR := vendor
# Power
TARGET_POWERHAL_MODE_EXT := $(COMMON_PATH)/power/power-mode.cpp
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(COMMON_PATH):libperfmgr-ext-xiaomi
# Properties
TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop

11
power/Android.bp Normal file
View File

@ -0,0 +1,11 @@
cc_library_static {
name: "libperfmgr-ext-xiaomi",
vendor: true,
srcs: [
"power-mode.cpp",
],
shared_libs: [
"android.hardware.power-V4-ndk",
"libbase",
],
}