Home | History | Annotate | Download | only in power
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 ifeq ($(call is-vendor-board-platform,QCOM),true)
      4 
      5 # HAL module implemenation stored in
      6 # hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so
      7 include $(CLEAR_VARS)
      8 
      9 LOCAL_MODULE_RELATIVE_PATH := hw
     10 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl
     11 LOCAL_SRC_FILES := power.c metadata-parser.c utils.c list.c hint-data.c
     12 
     13 # Include target-specific files.
     14 ifeq ($(call is-board-platform-in-list, msm8996), true)
     15 LOCAL_SRC_FILES += power-8996.c
     16 endif
     17 
     18 ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
     19     LOCAL_CFLAGS += -DINTERACTION_BOOST
     20 endif
     21 
     22 ifneq ($(TARGET_USES_AOSP),true)
     23     LOCAL_CFLAGS += -DEXTRA_POWERHAL_HINTS
     24 endif
     25 
     26 LOCAL_MODULE := power.$(patsubst %f,%,$(subst _eas,,$(subst aosp_,,$(TARGET_PRODUCT))))
     27 LOCAL_MODULE_TAGS := optional
     28 include $(BUILD_SHARED_LIBRARY)
     29 
     30 endif
     31