aboutsummaryrefslogtreecommitdiff
path: root/utils/Android.mk
blob: 0fee7bf90239bb2e273345cac56c83b4936a4b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include $(call all-subdir-makefiles)
LOCAL_PATH:= $(call my-dir)

module_name = utils

define $(module_name)_etc_add_executable
    include $(CLEAR_VARS)
    LOCAL_MODULE_TAGS := optional 
    LOCAL_MODULE_CLASS := tests
    LOCAL_MODULE := $1
    systemtarball: $1
    systemimage: $1
    LOCAL_SRC_FILES := $1.c
    LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/pm-qa/$(module_name)
    include $(BUILD_EXECUTABLE)
endef

test_names := cpuburn cpucycle heat_cpu nanosleep uevent_reader
$(foreach item,$(test_names),$(eval $(call $(module_name)_etc_add_executable, $(item))))