David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | ifeq ($(TARGET_USES_QSSI),true) |
| 4 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 5 | |
| 6 | # HAL module implemenation stored in |
| 7 | # hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so |
| 8 | include $(CLEAR_VARS) |
| 9 | |
| 10 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 11 | LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 |
Rajashekar Adi | 6d0ed95 | 2018-04-24 15:02:57 +0530 | [diff] [blame^] | 12 | LOCAL_HEADER_LIBRARIES += libutils_headers |
| 13 | LOCAL_HEADER_LIBRARIES += libhardware_headers |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 14 | LOCAL_SRC_FILES := power.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c |
| 15 | LOCAL_C_INCLUDES := external/libxml2/include \ |
| 16 | external/icu/icu4c/source/common |
| 17 | |
| 18 | # Include target-specific files. |
| 19 | ifeq ($(call is-board-platform-in-list, msm8974), true) |
| 20 | LOCAL_SRC_FILES += power-8974.c |
| 21 | endif |
| 22 | |
| 23 | ifeq ($(call is-board-platform-in-list, msm8226), true) |
| 24 | LOCAL_SRC_FILES += power-8226.c |
| 25 | endif |
| 26 | |
| 27 | ifeq ($(call is-board-platform-in-list, msm8610), true) |
| 28 | LOCAL_SRC_FILES += power-8610.c |
| 29 | endif |
| 30 | |
| 31 | ifeq ($(call is-board-platform-in-list, apq8084), true) |
| 32 | LOCAL_SRC_FILES += power-8084.c |
| 33 | endif |
| 34 | |
| 35 | ifeq ($(call is-board-platform-in-list, msm8994), true) |
| 36 | LOCAL_SRC_FILES += power-8994.c |
| 37 | endif |
| 38 | |
| 39 | ifeq ($(call is-board-platform-in-list, msm8996), true) |
| 40 | LOCAL_SRC_FILES += power-8996.c |
| 41 | endif |
| 42 | |
| 43 | ifeq ($(call is-board-platform-in-list,msm8937), true) |
| 44 | LOCAL_SRC_FILES += power-8952.c |
| 45 | endif |
| 46 | |
| 47 | ifeq ($(call is-board-platform-in-list,msm8952), true) |
| 48 | LOCAL_SRC_FILES += power-8952.c |
| 49 | endif |
| 50 | |
| 51 | ifeq ($(call is-board-platform-in-list,msm8953), true) |
| 52 | LOCAL_SRC_FILES += power-8953.c |
| 53 | endif |
| 54 | |
| 55 | ifeq ($(call is-board-platform-in-list,msm8998 apq8098_latv), true) |
| 56 | LOCAL_SRC_FILES += power-8998.c |
| 57 | endif |
| 58 | |
| 59 | ifeq ($(call is-board-platform-in-list,sdm660), true) |
| 60 | LOCAL_SRC_FILES += power-660.c |
| 61 | endif |
| 62 | |
| 63 | ifeq ($(call is-board-platform-in-list,sdm845), true) |
| 64 | LOCAL_SRC_FILES += power-845.c |
| 65 | endif |
| 66 | |
David Ng | 7cbc5af | 2018-06-04 15:07:11 -0700 | [diff] [blame] | 67 | ifeq ($(call is-board-platform-in-list,sdm710), true) |
| 68 | LOCAL_SRC_FILES += power-710.c |
Rajashekar Adi | 380452d | 2017-12-04 11:40:36 +0530 | [diff] [blame] | 69 | endif |
| 70 | |
| 71 | ifeq ($(call is-board-platform-in-list,qcs605), true) |
David Ng | 7cbc5af | 2018-06-04 15:07:11 -0700 | [diff] [blame] | 72 | LOCAL_SRC_FILES += power-710.c |
Rajashekar Adi | 380452d | 2017-12-04 11:40:36 +0530 | [diff] [blame] | 73 | endif |
| 74 | |
Ananth Raghavan Subramanian | 32e093d | 2018-04-04 14:28:46 -0700 | [diff] [blame] | 75 | ifeq ($(call is-board-platform-in-list,msmnile), true) |
| 76 | LOCAL_SRC_FILES += power-8150.c |
| 77 | endif |
| 78 | |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 79 | ifeq ($(TARGET_USES_INTERACTION_BOOST),true) |
| 80 | LOCAL_CFLAGS += -DINTERACTION_BOOST |
| 81 | endif |
| 82 | |
| 83 | LOCAL_MODULE := power.qcom |
| 84 | LOCAL_MODULE_TAGS := optional |
| 85 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable |
| 86 | LOCAL_VENDOR_MODULE := true |
| 87 | include $(BUILD_SHARED_LIBRARY) |
| 88 | |
| 89 | endif |
| 90 | endif |