summaryrefslogtreecommitdiff
path: root/Android.mk
blob: 96c7a3caa2d2cec9959bc6cbf6b55703984b8758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
#
# (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_PATH)/powertop:

copy_from := \
	powertop \
	android-powertop


copy_to := $(addprefix $(TARGET_OUT_OPTIONAL_EXECUTABLES)/,$(copy_from))

$(copy_to) : $(TARGET_OUT_OPTIONAL_EXECUTABLES)/% : $(LOCAL_PATH)/% | $(ACP)
	$(transform-prebuilt-to-target)

ALL_PREBUILT += $(copy_to)

# terminfo

include $(CLEAR_VARS)

$(LOCAL_PATH)/usr/share/terminfo/v/vt100:

copy_from := \
	usr/share/terminfo/v/vt100

copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from))

$(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP)
	$(transform-prebuilt-to-target)

ALL_PREBUILT += $(copy_to)