Steve Kondik | 01b793c | 2016-05-05 22:09:43 -0700 | [diff] [blame] | 1 | ifeq ($(call match-word-in-list,$(TARGET_ARCH),arm arm64),true) |
Anurag Singh | c5781f8 | 2011-10-10 10:44:44 -0700 | [diff] [blame] | 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | LOCAL_MODULE:= powertop |
Steve Kondik | 686a289 | 2015-11-14 21:09:59 +0100 | [diff] [blame] | 7 | #LOCAL_CFLAGS += -DNO_NCURSES |
Anurag Singh | c5781f8 | 2011-10-10 10:44:44 -0700 | [diff] [blame] | 8 | LOCAL_CFLAGS += -DNO_SUGGESTIONS |
| 9 | LOCAL_CFLAGS += -DPATH_MAX=256 |
Anurag Singh | bf459e2 | 2011-10-10 10:50:51 -0700 | [diff] [blame] | 10 | ifeq ($(BOARD_USES_QCOM_HARDWARE),true) |
| 11 | LOCAL_CFLAGS += -DPLATFORM_NO_INT0 |
| 12 | endif |
Anurag Singh | c5781f8 | 2011-10-10 10:44:44 -0700 | [diff] [blame] | 13 | LOCAL_SRC_FILES := powertop.c \ |
| 14 | config.c \ |
| 15 | process.c \ |
| 16 | misctips.c \ |
| 17 | bluetooth.c \ |
| 18 | display.c \ |
| 19 | suggestions.c \ |
| 20 | cpufreq.c \ |
| 21 | cpufreqstats.c \ |
| 22 | sata.c \ |
| 23 | xrandr.c \ |
| 24 | intelcstates.c \ |
| 25 | usb.c \ |
| 26 | urbnum.c \ |
| 27 | msmpmstats.c |
| 28 | |
Steve Kondik | 686a289 | 2015-11-14 21:09:59 +0100 | [diff] [blame] | 29 | LOCAL_C_INCLUDES := external/libncurses/include |
| 30 | LOCAL_SHARED_LIBRARIES := libncurses |
| 31 | |
Satya Durga Srinivasu Prabhala | 1e2c884 | 2012-06-14 19:38:25 +0530 | [diff] [blame] | 32 | LOCAL_MODULE_TAGS := debug |
Steve Kondik | 5e599eb | 2015-11-14 23:01:23 +0100 | [diff] [blame] | 33 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Anurag Singh | c5781f8 | 2011-10-10 10:44:44 -0700 | [diff] [blame] | 34 | include $(BUILD_EXECUTABLE) |
| 35 | |
| 36 | endif |