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