blob: 877187dd5af228763877b8508e1ded43fa24776d [file] [log] [blame]
David Ngee7c4c52018-03-22 23:49:12 -07001LOCAL_PATH := $(call my-dir)
2
David Ngee7c4c52018-03-22 23:49:12 -07003ifeq ($(call is-vendor-board-platform,QCOM),true)
4
5# HAL module implemenation stored in
6# hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so
7include $(CLEAR_VARS)
8
9LOCAL_MODULE_RELATIVE_PATH := hw
Ananth Raghavan Subramaniand39ec572018-09-08 19:47:41 -070010LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libhidlbase libhidltransport libutils android.hardware.power@1.2
Rajashekar Adi6d0ed952018-04-24 15:02:57 +053011LOCAL_HEADER_LIBRARIES += libutils_headers
12LOCAL_HEADER_LIBRARIES += libhardware_headers
Ananth Raghavan Subramaniand39ec572018-09-08 19:47:41 -070013LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c service.cpp Power.cpp
David Ngee7c4c52018-03-22 23:49:12 -070014LOCAL_C_INCLUDES := external/libxml2/include \
15 external/icu/icu4c/source/common
16
17# Include target-specific files.
18ifeq ($(call is-board-platform-in-list, msm8974), true)
19LOCAL_SRC_FILES += power-8974.c
20endif
21
22ifeq ($(call is-board-platform-in-list, msm8226), true)
23LOCAL_SRC_FILES += power-8226.c
24endif
25
26ifeq ($(call is-board-platform-in-list, msm8610), true)
27LOCAL_SRC_FILES += power-8610.c
28endif
29
30ifeq ($(call is-board-platform-in-list, apq8084), true)
31LOCAL_SRC_FILES += power-8084.c
32endif
33
34ifeq ($(call is-board-platform-in-list, msm8994), true)
35LOCAL_SRC_FILES += power-8994.c
36endif
37
38ifeq ($(call is-board-platform-in-list, msm8996), true)
39LOCAL_SRC_FILES += power-8996.c
40endif
41
42ifeq ($(call is-board-platform-in-list,msm8937), true)
43LOCAL_SRC_FILES += power-8952.c
44endif
45
46ifeq ($(call is-board-platform-in-list,msm8952), true)
47LOCAL_SRC_FILES += power-8952.c
48endif
49
50ifeq ($(call is-board-platform-in-list,msm8953), true)
51LOCAL_SRC_FILES += power-8953.c
52endif
53
54ifeq ($(call is-board-platform-in-list,msm8998 apq8098_latv), true)
55LOCAL_SRC_FILES += power-8998.c
56endif
57
58ifeq ($(call is-board-platform-in-list,sdm660), true)
59LOCAL_SRC_FILES += power-660.c
60endif
61
62ifeq ($(call is-board-platform-in-list,sdm845), true)
63LOCAL_SRC_FILES += power-845.c
64endif
65
David Ng7cbc5af2018-06-04 15:07:11 -070066ifeq ($(call is-board-platform-in-list,sdm710), true)
67LOCAL_SRC_FILES += power-710.c
Rajashekar Adi380452d2017-12-04 11:40:36 +053068endif
69
70ifeq ($(call is-board-platform-in-list,qcs605), true)
David Ng7cbc5af2018-06-04 15:07:11 -070071LOCAL_SRC_FILES += power-710.c
Rajashekar Adi380452d2017-12-04 11:40:36 +053072endif
73
Ananth Raghavan Subramanian32e093d2018-04-04 14:28:46 -070074ifeq ($(call is-board-platform-in-list,msmnile), true)
Ananth Raghavan Subramanian11ff7dc2018-08-14 17:59:00 -070075LOCAL_SRC_FILES += power-msmnile.c
Ananth Raghavan Subramanian32e093d2018-04-04 14:28:46 -070076endif
77
David Ngee7c4c52018-03-22 23:49:12 -070078ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
79 LOCAL_CFLAGS += -DINTERACTION_BOOST
80endif
81
Ananth Raghavan Subramaniand39ec572018-09-08 19:47:41 -070082LOCAL_MODULE := android.hardware.power@1.2-service
83LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
David Ngee7c4c52018-03-22 23:49:12 -070084LOCAL_MODULE_TAGS := optional
85LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
86LOCAL_VENDOR_MODULE := true
Ananth Raghavan Subramaniand39ec572018-09-08 19:47:41 -070087include $(BUILD_EXECUTABLE)
David Ngee7c4c52018-03-22 23:49:12 -070088
89endif