aboutsummaryrefslogtreecommitdiff
path: root/utils/Android.mk
blob: 7c1cd99954be4a6e1bde6d7cdf2147144129d9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    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))))