From 3857ee75716a4eb1ab91126353b94706e5ec2c5d Mon Sep 17 00:00:00 2001 From: "Christopher R. Palmer" Date: Thu, 7 Apr 2016 06:13:45 -0400 Subject: 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-.c if they feel that they need the ability to provide more specific tuning of the hints/etc. for their device. Change-Id: I013a3ec3ddccbe6f74f3dacf456cc6e8b3ab3430 --- Android.mk | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3