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