blob: baa55355d523bcd1b041c1aeae433bebd24c9387 [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
12LOCAL_SRC_FILES := power.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c
13LOCAL_C_INCLUDES := external/libxml2/include \
14 external/icu/icu4c/source/common
15
16# Include target-specific files.
17ifeq ($(call is-board-platform-in-list, msm8974), true)
18LOCAL_SRC_FILES += power-8974.c
19endif
20
21ifeq ($(call is-board-platform-in-list, msm8226), true)
22LOCAL_SRC_FILES += power-8226.c
23endif
24
25ifeq ($(call is-board-platform-in-list, msm8610), true)
26LOCAL_SRC_FILES += power-8610.c
27endif
28
29ifeq ($(call is-board-platform-in-list, apq8084), true)
30LOCAL_SRC_FILES += power-8084.c
31endif
32
33ifeq ($(call is-board-platform-in-list, msm8994), true)
34LOCAL_SRC_FILES += power-8994.c
35endif
36
37ifeq ($(call is-board-platform-in-list, msm8996), true)
38LOCAL_SRC_FILES += power-8996.c
39endif
40
41ifeq ($(call is-board-platform-in-list,msm8937), true)
42LOCAL_SRC_FILES += power-8952.c
43endif
44
45ifeq ($(call is-board-platform-in-list,msm8952), true)
46LOCAL_SRC_FILES += power-8952.c
47endif
48
49ifeq ($(call is-board-platform-in-list,msm8953), true)
50LOCAL_SRC_FILES += power-8953.c
51endif
52
53ifeq ($(call is-board-platform-in-list,msm8998 apq8098_latv), true)
54LOCAL_SRC_FILES += power-8998.c
55endif
56
57ifeq ($(call is-board-platform-in-list,sdm660), true)
58LOCAL_SRC_FILES += power-660.c
59endif
60
61ifeq ($(call is-board-platform-in-list,sdm845), true)
62LOCAL_SRC_FILES += power-845.c
63endif
64
Rajashekar Adi380452d2017-12-04 11:40:36 +053065ifeq ($(call is-board-platform-in-list,sdm670), true)
66LOCAL_SRC_FILES += power-670.c
67endif
68
69ifeq ($(call is-board-platform-in-list,qcs605), true)
70LOCAL_SRC_FILES += power-670.c
71endif
72
David Ngee7c4c52018-03-22 23:49:12 -070073ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
74 LOCAL_CFLAGS += -DINTERACTION_BOOST
75endif
76
77LOCAL_MODULE := power.qcom
78LOCAL_MODULE_TAGS := optional
79LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
80LOCAL_VENDOR_MODULE := true
81include $(BUILD_SHARED_LIBRARY)
82
83endif
84endif