From 8e3e871e8fae66959eeebc2b8bee6a71575b46e1 Mon Sep 17 00:00:00 2001 From: Arian Date: Sat, 18 May 2024 15:52:45 +0200 Subject: [PATCH] sm6150-common: Provide a static lib for power mode extension Change-Id: I3e2cf17bf1e733838e9e18afdf3f888e814593dc --- BoardConfigCommon.mk | 2 +- power/Android.bp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 power/Android.bp diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 55a9d4c..6bccbd2 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -125,7 +125,7 @@ TARGET_COPY_OUT_VENDOR := vendor TARGET_BOARD_PLATFORM := sm6150 # 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 diff --git a/power/Android.bp b/power/Android.bp new file mode 100644 index 0000000..91ccc3c --- /dev/null +++ b/power/Android.bp @@ -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", + ], +}