summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@dodonov.net>2011-08-26 13:51:57 -0300
committerEugeni Dodonov <eugeni@dodonov.net>2011-08-26 13:51:57 -0300
commit0b12915a5accfa595d4bd61cc1158581fce84a53 (patch)
tree7a51e663bda8c9bd06260020674b3527aa9645c6
parent5b9d1526bc32ec5fd43a9fbe93c241c943f87d3d (diff)
prebuilt powertop
-rw-r--r--Android.mk53
1 files changed, 17 insertions, 36 deletions
diff --git a/Android.mk b/Android.mk
index 3290892..6225186 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,43 +1,24 @@
+#
+#
+# (eugeni) this module is built separately and statically in order to avoid
+# bringing the entire ncurse dependency chain into android.
+#
+# just run 'make' in this directory, and it should built 'powertop' binary for you
+# then compile android-x86 as usual and the module should be there
+#
+#
+
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES:=\
- powertop.c \
- config.c \
- process.c \
- misctips.c \
- bluetooth.c \
- display.c \
- suggestions.c \
- wireless.c \
- cpufreq.c \
- sata.c \
- xrandr.c \
- ethernet.c \
- cpufreqstats.c \
- usb.c \
- urbnum.c \
- intelcstates.c \
- wifi-new.c \
- perf.c \
- alsa-power.c \
- ahci-alpm.c \
- dmesg.c \
- devicepm.c
-
-LOCAL_CFLAGS := -O2 -g
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
-LOCAL_CFLAGS += -DVERSION=\"1.13\"
-
-LOCAL_C_INCLUDES += \
- $(LOCAL_PATH)/missing\
- external/openssl/include\
- external/libpcap
+$(LOCAL_PATH)/powertop:
-LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
+copy_from := \
+ powertop
-LOCAL_MODULE_TAGS := eng
+copy_to := $(addprefix $(TARGET_OUT_OPTIONAL_EXECUTABLES)/,$(copy_from))
-LOCAL_MODULE := powertop
+$(copy_to) : $(TARGET_OUT_OPTIONAL_EXECUTABLES)/% : $(LOCAL_PATH)/% | $(ACP)
+ $(transform-prebuilt-to-target)
-include $(BUILD_EXECUTABLE)
+ALL_PREBUILT += $(copy_to)