summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher R. Palmer <crpalmer@gmail.com>2016-04-07 06:13:45 -0400
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit3857ee75716a4eb1ab91126353b94706e5ec2c5d (patch)
treeb73ffed8d2f3bbd331e07ff02de166a0860af5f4
parentc332b13bb90469c179546484abfc8ea2204e4eea (diff)
downloadvendor_qcom_opensource_power-3857ee75716a4eb1ab91126353b94706e5ec2c5d.tar.gz
vendor_qcom_opensource_power-3857ee75716a4eb1ab91126353b94706e5ec2c5d.tar.bz2
vendor_qcom_opensource_power-3857ee75716a4eb1ab91126353b94706e5ec2c5d.zip
power: Allow devices to write their own platform specific bits
Using this hook, any device should be able to reuse the majority of the powerhal and fork only power-<platform>.c if they feel that they need the ability to provide more specific tuning of the hints/etc. for their device. Change-Id: I013a3ec3ddccbe6f74f3dacf456cc6e8b3ab3430
-rw-r--r--Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index eca6089..d5c5061 100644
--- a/Android.mk
+++ b/Android.mk
@@ -11,6 +11,10 @@ LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libbase libhidlbase libhidltran
LOCAL_HEADER_LIBRARIES += libhardware_headers
LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c service.cpp Power.cpp
+ifneq ($(BOARD_POWER_CUSTOM_BOARD_LIB),)
+ LOCAL_WHOLE_STATIC_LIBRARIES += $(BOARD_POWER_CUSTOM_BOARD_LIB)
+else
+
# Include target-specific files.
ifeq ($(call is-board-platform-in-list, msm8974), true)
LOCAL_SRC_FILES += power-8974.c
@@ -72,6 +76,8 @@ ifeq ($(call is-board-platform-in-list,msmnile), true)
LOCAL_SRC_FILES += power-msmnile.c
endif
+endif # End of board specific list
+
ifneq ($(TARGET_POWER_SET_FEATURE_LIB),)
LOCAL_STATIC_LIBRARIES += $(TARGET_POWER_SET_FEATURE_LIB)
endif