Steve Paik | 3a098ee | 2015-07-15 16:52:17 -0700 | [diff] [blame] | 1 | # TODO: Find a better way to separate build configs for ADP vs non-ADP devices |
| 2 | ifneq ($(TARGET_BOARD_AUTO),true) |
| 3 | ifneq ($(filter msm8960 msm8974,$(TARGET_BOARD_PLATFORM)),) |
| 4 | LOCAL_PATH := $(call my-dir) |
Iliyan Malchev | 868f763 | 2012-10-17 14:53:51 -0700 | [diff] [blame] | 5 | |
Steve Paik | 3a098ee | 2015-07-15 16:52:17 -0700 | [diff] [blame] | 6 | # HAL module implemenation stored in |
| 7 | # hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so |
| 8 | include $(CLEAR_VARS) |
Iliyan Malchev | 868f763 | 2012-10-17 14:53:51 -0700 | [diff] [blame] | 9 | |
| 10 | |
Steve Paik | 3a098ee | 2015-07-15 16:52:17 -0700 | [diff] [blame] | 11 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 12 | LOCAL_SHARED_LIBRARIES := liblog libcutils libdl |
| 13 | LOCAL_SRC_FILES := \ |
| 14 | power.c \ |
Mekala Natarajan | 66e5ad1 | 2013-06-19 15:45:45 -0700 | [diff] [blame] | 15 | |
Steve Paik | 3a098ee | 2015-07-15 16:52:17 -0700 | [diff] [blame] | 16 | LOCAL_MODULE:= power.$(TARGET_BOARD_PLATFORM) |
| 17 | LOCAL_MODULE_TAGS := optional |
Chih-Hung Hsieh | a5c5c7b | 2018-01-04 12:18:10 -0800 | [diff] [blame] | 18 | LOCAL_CFLAGS += -Wno-unused-parameter |
Steve Paik | 3a098ee | 2015-07-15 16:52:17 -0700 | [diff] [blame] | 19 | include $(BUILD_SHARED_LIBRARY) |
| 20 | endif |
Iliyan Malchev | 868f763 | 2012-10-17 14:53:51 -0700 | [diff] [blame] | 21 | endif |