David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 3 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 4 | |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_MODULE_RELATIVE_PATH := hw |
Siddeswar Aluganti | e636822 | 2022-04-12 12:33:13 -0700 | [diff] [blame] | 8 | |
Michael Bestas | 0b6459f | 2019-09-29 23:59:05 +0300 | [diff] [blame] | 9 | LOCAL_SHARED_LIBRARIES := \ |
| 10 | liblog \ |
| 11 | libcutils \ |
| 12 | libdl \ |
| 13 | libbase \ |
| 14 | libutils \ |
| 15 | libbinder_ndk \ |
| 16 | android.hardware.power-V3-ndk |
| 17 | |
| 18 | LOCAL_HEADER_LIBRARIES := \ |
Michael Bestas | 0b6459f | 2019-09-29 23:59:05 +0300 | [diff] [blame] | 19 | libhardware_headers |
| 20 | |
| 21 | LOCAL_SRC_FILES := \ |
| 22 | power-common.c \ |
| 23 | metadata-parser.c \ |
| 24 | utils.c \ |
| 25 | list.c \ |
| 26 | hint-data.c \ |
| 27 | Power.cpp \ |
| 28 | main.cpp \ |
| 29 | PowerHintSession.cpp |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 30 | |
Michael Bestas | 39e1857 | 2018-03-26 01:00:20 +0300 | [diff] [blame] | 31 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
| 32 | |
Christopher R. Palmer | a7fabc8 | 2016-04-07 06:13:45 -0400 | [diff] [blame] | 33 | ifneq ($(BOARD_POWER_CUSTOM_BOARD_LIB),) |
| 34 | LOCAL_WHOLE_STATIC_LIBRARIES += $(BOARD_POWER_CUSTOM_BOARD_LIB) |
| 35 | else |
| 36 | |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 37 | # Include target-specific files. |
Michael Bestas | dbaf7b3 | 2023-10-26 15:13:27 +0300 | [diff] [blame] | 38 | ifeq ($(call is-board-platform-in-list,msm8996), true) |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 39 | LOCAL_SRC_FILES += power-8996.c |
| 40 | endif |
| 41 | |
| 42 | ifeq ($(call is-board-platform-in-list,msm8937), true) |
Michael Bestas | d526c7c | 2019-10-06 05:12:37 +0300 | [diff] [blame] | 43 | LOCAL_SRC_FILES += power-8937.c |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 44 | endif |
| 45 | |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 46 | ifeq ($(call is-board-platform-in-list,msm8953), true) |
| 47 | LOCAL_SRC_FILES += power-8953.c |
| 48 | endif |
| 49 | |
Michael Bestas | dbaf7b3 | 2023-10-26 15:13:27 +0300 | [diff] [blame] | 50 | ifeq ($(call is-board-platform-in-list,msm8998), true) |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 51 | LOCAL_SRC_FILES += power-8998.c |
| 52 | endif |
| 53 | |
| 54 | ifeq ($(call is-board-platform-in-list,sdm660), true) |
| 55 | LOCAL_SRC_FILES += power-660.c |
| 56 | endif |
| 57 | |
| 58 | ifeq ($(call is-board-platform-in-list,sdm845), true) |
| 59 | LOCAL_SRC_FILES += power-845.c |
| 60 | endif |
| 61 | |
Michael Bestas | 0b6459f | 2019-09-29 23:59:05 +0300 | [diff] [blame] | 62 | endif # End of board specific list |
Christopher R. Palmer | a7fabc8 | 2016-04-07 06:13:45 -0400 | [diff] [blame] | 63 | |
LuK1337 | de33dae | 2020-10-01 14:13:46 +0200 | [diff] [blame] | 64 | ifneq ($(TARGET_POWERHAL_MODE_EXT),) |
| 65 | LOCAL_CFLAGS += -DMODE_EXT |
| 66 | LOCAL_SRC_FILES += ../../../../$(TARGET_POWERHAL_MODE_EXT) |
| 67 | endif |
| 68 | |
Steve Kondik | e2732b7 | 2014-03-27 22:00:00 -0700 | [diff] [blame] | 69 | ifneq ($(TARGET_POWERHAL_SET_INTERACTIVE_EXT),) |
| 70 | LOCAL_CFLAGS += -DSET_INTERACTIVE_EXT |
| 71 | LOCAL_SRC_FILES += ../../../../$(TARGET_POWERHAL_SET_INTERACTIVE_EXT) |
| 72 | endif |
| 73 | |
Steve Kondik | 6b46a29 | 2015-10-19 14:43:39 -0700 | [diff] [blame] | 74 | ifneq ($(TARGET_TAP_TO_WAKE_NODE),) |
| 75 | LOCAL_CFLAGS += -DTAP_TO_WAKE_NODE=\"$(TARGET_TAP_TO_WAKE_NODE)\" |
| 76 | endif |
| 77 | |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 78 | ifeq ($(TARGET_USES_INTERACTION_BOOST),true) |
| 79 | LOCAL_CFLAGS += -DINTERACTION_BOOST |
| 80 | endif |
| 81 | |
Michael Bestas | 9df9caa | 2019-09-29 21:06:22 +0300 | [diff] [blame] | 82 | LOCAL_MODULE := android.hardware.power-service-qti |
| 83 | LOCAL_INIT_RC := android.hardware.power-service-qti.rc |
David Ng | ee7c4c5 | 2018-03-22 23:49:12 -0700 | [diff] [blame] | 84 | LOCAL_MODULE_TAGS := optional |
| 85 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable |
| 86 | LOCAL_VENDOR_MODULE := true |
Rajeswari N | dbf22f7 | 2020-06-30 10:27:46 +0530 | [diff] [blame] | 87 | LOCAL_VINTF_FRAGMENTS := power.xml |
Michael Bestas | 0b6459f | 2019-09-29 23:59:05 +0300 | [diff] [blame] | 88 | |
Ananth Raghavan Subramanian | d39ec57 | 2018-09-08 19:47:41 -0700 | [diff] [blame] | 89 | include $(BUILD_EXECUTABLE) |
Deevana Murthy Bandaru | 006555f | 2019-09-13 12:00:27 +0530 | [diff] [blame] | 90 | endif |