From: kejun.zhou <dp583@stebjsxu0119.(none)>
Signed-off-by: kejun.zhou kejun.zhou@linaro.org --- cpuidle/cpuidle_killer.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/cpuidle/cpuidle_killer.c b/cpuidle/cpuidle_killer.c index 67a675e..c8910f4 100644 --- a/cpuidle/cpuidle_killer.c +++ b/cpuidle/cpuidle_killer.c @@ -2,7 +2,17 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#ifndef ANDROID #include <sys/timex.h> +#else +// As of 4.0.4, Bionic doesn't provide the timex/adjtimex interface +// However, the kernel does... +#include <linux/timex.h> // for struct timex +#include <asm/unistd.h> // for __NR_adjtimex +static int adjtimex(struct timex *buf) { + return syscall(__NR_adjtimex, buf); +} +#endif #include <sys/types.h> #include <sys/wait.h> #include <sys/param.h>
Signed-off-by: kejun.zhou kejun.zhou@linaro.org --- Android.mk | 1 + cpufreq/Android.mk | 76 ++++++++++++++++++++++++++++++++++++++++++++ cpuhotplug/Android.mk | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ cpuidle/Android.mk | 35 ++++++++++++++++++++ include/Android.mk | 28 ++++++++++++++++ sched_mc/Android.mk | 36 +++++++++++++++++++++ suspend/Android.mk | 50 +++++++++++++++++++++++++++++ thermal/Android.mk | 51 +++++++++++++++++++++++++++++ utils/Android.mk | 35 ++++++++++++++++++++ 9 files changed, 396 insertions(+), 0 deletions(-) create mode 100644 Android.mk create mode 100644 cpufreq/Android.mk create mode 100644 cpuhotplug/Android.mk create mode 100644 cpuidle/Android.mk create mode 100644 include/Android.mk create mode 100644 sched_mc/Android.mk create mode 100644 suspend/Android.mk create mode 100644 thermal/Android.mk create mode 100644 utils/Android.mk
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..5053e7d --- /dev/null +++ b/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles) diff --git a/cpufreq/Android.mk b/cpufreq/Android.mk new file mode 100644 index 0000000..34da7a7 --- /dev/null +++ b/cpufreq/Android.mk @@ -0,0 +1,76 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_01.sh +LOCAL_SRC_FILES:= cpufreq_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_02.sh +LOCAL_SRC_FILES:= cpufreq_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_03.sh +LOCAL_SRC_FILES:= cpufreq_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_04.sh +LOCAL_SRC_FILES:= cpufreq_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_05.sh +LOCAL_SRC_FILES:= cpufreq_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_06.sh +LOCAL_SRC_FILES:= cpufreq_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_07.sh +LOCAL_SRC_FILES:= cpufreq_07.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_08.sh +LOCAL_SRC_FILES:= cpufreq_08.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_09.sh +LOCAL_SRC_FILES:= cpufreq_09.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT) + diff --git a/cpuhotplug/Android.mk b/cpuhotplug/Android.mk new file mode 100644 index 0000000..9981cfc --- /dev/null +++ b/cpuhotplug/Android.mk @@ -0,0 +1,84 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_01.sh +LOCAL_SRC_FILES:= cpuhotplug_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_02.sh +LOCAL_SRC_FILES:= cpuhotplug_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_03.sh +LOCAL_SRC_FILES:= cpuhotplug_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_04.sh +LOCAL_SRC_FILES:= cpuhotplug_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_05.sh +LOCAL_SRC_FILES:= cpuhotplug_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_06.sh +LOCAL_SRC_FILES:= cpuhotplug_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_07.sh +LOCAL_SRC_FILES:= cpuhotplug_07.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_08.sh +LOCAL_SRC_FILES:= cpuhotplug_08.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := 1_sanity_check.sh +LOCAL_SRC_FILES:= 1_sanity_check.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := z_sanity_check.sh +LOCAL_SRC_FILES:= z_sanity_check.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT) + diff --git a/cpuidle/Android.mk b/cpuidle/Android.mk new file mode 100644 index 0000000..98dfd74 --- /dev/null +++ b/cpuidle/Android.mk @@ -0,0 +1,35 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_01.sh +LOCAL_SRC_FILES:= cpuidle_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_02.sh +LOCAL_SRC_FILES:= cpuidle_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_03.sh +LOCAL_SRC_FILES:= cpuidle_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_killer +LOCAL_SRC_FILES:= cpuidle_killer.c +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_EXECUTABLE) + diff --git a/include/Android.mk b/include/Android.mk new file mode 100644 index 0000000..cbedd16 --- /dev/null +++ b/include/Android.mk @@ -0,0 +1,28 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + + +include $(CLEAR_VARS) +LOCAL_MODULE := functions.sh +LOCAL_SRC_FILES:= functions.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend.sh +LOCAL_SRC_FILES:= suspend.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_functions.sh +LOCAL_SRC_FILES:= thermal_functions.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT) + diff --git a/sched_mc/Android.mk b/sched_mc/Android.mk new file mode 100644 index 0000000..1a5eb9b --- /dev/null +++ b/sched_mc/Android.mk @@ -0,0 +1,36 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + + +include $(CLEAR_VARS) +LOCAL_MODULE := sched_01.sh +LOCAL_SRC_FILES:= sched_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := sched_02.sh +LOCAL_SRC_FILES:= sched_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := sched_03.sh +LOCAL_SRC_FILES:= sched_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := sched_04.sh +LOCAL_SRC_FILES:= sched_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT) + diff --git a/suspend/Android.mk b/suspend/Android.mk new file mode 100644 index 0000000..f1dd9ef --- /dev/null +++ b/suspend/Android.mk @@ -0,0 +1,50 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend_01.sh +LOCAL_SRC_FILES:= suspend_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend_02.sh +LOCAL_SRC_FILES:= suspend_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend_03.sh +LOCAL_SRC_FILES:= suspend_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend_04.sh +LOCAL_SRC_FILES:= suspend_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend_05.sh +LOCAL_SRC_FILES:= suspend_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := suspend_06.sh +LOCAL_SRC_FILES:= suspend_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) diff --git a/thermal/Android.mk b/thermal/Android.mk new file mode 100644 index 0000000..e51d74e --- /dev/null +++ b/thermal/Android.mk @@ -0,0 +1,51 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_01.sh +LOCAL_SRC_FILES:= thermal_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_02.sh +LOCAL_SRC_FILES:= thermal_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_03.sh +LOCAL_SRC_FILES:= thermal_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_04.sh +LOCAL_SRC_FILES:= thermal_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_05.sh +LOCAL_SRC_FILES:= thermal_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := thermal_06.sh +LOCAL_SRC_FILES:= thermal_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) diff --git a/utils/Android.mk b/utils/Android.mk new file mode 100644 index 0000000..7b61ee8 --- /dev/null +++ b/utils/Android.mk @@ -0,0 +1,35 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= cpuburn.c +LOCAL_MODULE := cpuburn +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= cpucycle.c +LOCAL_MODULE := cpucycle +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= heat_cpu.c +LOCAL_MODULE := heat_cpu +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= nanosleep.c +LOCAL_MODULE := nanosleep +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE) +
On Wed, May 30, 2012 at 2:47 PM, kejun.zhou kejun.zhou@linaro.org wrote:
Signed-off-by: kejun.zhou kejun.zhou@linaro.org
Android.mk | 1 + cpufreq/Android.mk | 76 ++++++++++++++++++++++++++++++++++++++++++++ cpuhotplug/Android.mk | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ cpuidle/Android.mk | 35 ++++++++++++++++++++ include/Android.mk | 28 ++++++++++++++++ sched_mc/Android.mk | 36 +++++++++++++++++++++ suspend/Android.mk | 50 +++++++++++++++++++++++++++++ thermal/Android.mk | 51 +++++++++++++++++++++++++++++ utils/Android.mk | 35 ++++++++++++++++++++ 9 files changed, 396 insertions(+), 0 deletions(-) create mode 100644 Android.mk create mode 100644 cpufreq/Android.mk create mode 100644 cpuhotplug/Android.mk create mode 100644 cpuidle/Android.mk create mode 100644 include/Android.mk create mode 100644 sched_mc/Android.mk create mode 100644 suspend/Android.mk create mode 100644 thermal/Android.mk create mode 100644 utils/Android.mk
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..5053e7d --- /dev/null +++ b/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles) diff --git a/cpufreq/Android.mk b/cpufreq/Android.mk new file mode 100644 index 0000000..34da7a7 --- /dev/null +++ b/cpufreq/Android.mk @@ -0,0 +1,76 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
This is painful to read, one section for each script. Please put it in a loop. Something like here: http://stackoverflow.com/questions/7651608/simplifying-an-android-mk-file-wh...
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_01.sh +LOCAL_SRC_FILES:= cpufreq_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_02.sh +LOCAL_SRC_FILES:= cpufreq_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_03.sh +LOCAL_SRC_FILES:= cpufreq_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_04.sh +LOCAL_SRC_FILES:= cpufreq_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_05.sh +LOCAL_SRC_FILES:= cpufreq_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_06.sh +LOCAL_SRC_FILES:= cpufreq_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_07.sh +LOCAL_SRC_FILES:= cpufreq_07.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_08.sh +LOCAL_SRC_FILES:= cpufreq_08.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_09.sh +LOCAL_SRC_FILES:= cpufreq_09.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
diff --git a/cpuhotplug/Android.mk b/cpuhotplug/Android.mk new file mode 100644 index 0000000..9981cfc --- /dev/null +++ b/cpuhotplug/Android.mk @@ -0,0 +1,84 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_01.sh +LOCAL_SRC_FILES:= cpuhotplug_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_02.sh +LOCAL_SRC_FILES:= cpuhotplug_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_03.sh +LOCAL_SRC_FILES:= cpuhotplug_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_04.sh +LOCAL_SRC_FILES:= cpuhotplug_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_05.sh +LOCAL_SRC_FILES:= cpuhotplug_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_06.sh +LOCAL_SRC_FILES:= cpuhotplug_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_07.sh +LOCAL_SRC_FILES:= cpuhotplug_07.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_08.sh +LOCAL_SRC_FILES:= cpuhotplug_08.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := 1_sanity_check.sh +LOCAL_SRC_FILES:= 1_sanity_check.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := z_sanity_check.sh +LOCAL_SRC_FILES:= z_sanity_check.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
diff --git a/cpuidle/Android.mk b/cpuidle/Android.mk new file mode 100644 index 0000000..98dfd74 --- /dev/null +++ b/cpuidle/Android.mk @@ -0,0 +1,35 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_01.sh +LOCAL_SRC_FILES:= cpuidle_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_02.sh +LOCAL_SRC_FILES:= cpuidle_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_03.sh +LOCAL_SRC_FILES:= cpuidle_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_killer +LOCAL_SRC_FILES:= cpuidle_killer.c +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_EXECUTABLE)
diff --git a/include/Android.mk b/include/Android.mk new file mode 100644 index 0000000..cbedd16 --- /dev/null +++ b/include/Android.mk @@ -0,0 +1,28 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := functions.sh +LOCAL_SRC_FILES:= functions.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend.sh +LOCAL_SRC_FILES:= suspend.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_functions.sh +LOCAL_SRC_FILES:= thermal_functions.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT)
diff --git a/sched_mc/Android.mk b/sched_mc/Android.mk new file mode 100644 index 0000000..1a5eb9b --- /dev/null +++ b/sched_mc/Android.mk @@ -0,0 +1,36 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_01.sh +LOCAL_SRC_FILES:= sched_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_02.sh +LOCAL_SRC_FILES:= sched_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_03.sh +LOCAL_SRC_FILES:= sched_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_04.sh +LOCAL_SRC_FILES:= sched_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
diff --git a/suspend/Android.mk b/suspend/Android.mk new file mode 100644 index 0000000..f1dd9ef --- /dev/null +++ b/suspend/Android.mk @@ -0,0 +1,50 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_01.sh +LOCAL_SRC_FILES:= suspend_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_02.sh +LOCAL_SRC_FILES:= suspend_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_03.sh +LOCAL_SRC_FILES:= suspend_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_04.sh +LOCAL_SRC_FILES:= suspend_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_05.sh +LOCAL_SRC_FILES:= suspend_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_06.sh +LOCAL_SRC_FILES:= suspend_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) diff --git a/thermal/Android.mk b/thermal/Android.mk new file mode 100644 index 0000000..e51d74e --- /dev/null +++ b/thermal/Android.mk @@ -0,0 +1,51 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_01.sh +LOCAL_SRC_FILES:= thermal_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_02.sh +LOCAL_SRC_FILES:= thermal_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_03.sh +LOCAL_SRC_FILES:= thermal_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_04.sh +LOCAL_SRC_FILES:= thermal_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_05.sh +LOCAL_SRC_FILES:= thermal_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_06.sh +LOCAL_SRC_FILES:= thermal_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) diff --git a/utils/Android.mk b/utils/Android.mk new file mode 100644 index 0000000..7b61ee8 --- /dev/null +++ b/utils/Android.mk @@ -0,0 +1,35 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= cpuburn.c +LOCAL_MODULE := cpuburn +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= cpucycle.c +LOCAL_MODULE := cpucycle +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= heat_cpu.c +LOCAL_MODULE := heat_cpu +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= nanosleep.c +LOCAL_MODULE := nanosleep +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
-- 1.7.0.4
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Yes Kejun, good suggestion from Amit. Please let me know when you finish it, thanks.
On 30 May 2012 15:22, Amit Kucheria amit.kucheria@linaro.org wrote:
On Wed, May 30, 2012 at 2:47 PM, kejun.zhou kejun.zhou@linaro.org wrote:
Signed-off-by: kejun.zhou kejun.zhou@linaro.org
Android.mk | 1 + cpufreq/Android.mk | 76
++++++++++++++++++++++++++++++++++++++++++++
cpuhotplug/Android.mk | 84
+++++++++++++++++++++++++++++++++++++++++++++++++
cpuidle/Android.mk | 35 ++++++++++++++++++++ include/Android.mk | 28 ++++++++++++++++ sched_mc/Android.mk | 36 +++++++++++++++++++++ suspend/Android.mk | 50 +++++++++++++++++++++++++++++ thermal/Android.mk | 51 +++++++++++++++++++++++++++++ utils/Android.mk | 35 ++++++++++++++++++++ 9 files changed, 396 insertions(+), 0 deletions(-) create mode 100644 Android.mk create mode 100644 cpufreq/Android.mk create mode 100644 cpuhotplug/Android.mk create mode 100644 cpuidle/Android.mk create mode 100644 include/Android.mk create mode 100644 sched_mc/Android.mk create mode 100644 suspend/Android.mk create mode 100644 thermal/Android.mk create mode 100644 utils/Android.mk
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..5053e7d --- /dev/null +++ b/Android.mk @@ -0,0 +1 @@ +include $(call all-subdir-makefiles) diff --git a/cpufreq/Android.mk b/cpufreq/Android.mk new file mode 100644 index 0000000..34da7a7 --- /dev/null +++ b/cpufreq/Android.mk @@ -0,0 +1,76 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
This is painful to read, one section for each script. Please put it in a loop. Something like here:
http://stackoverflow.com/questions/7651608/simplifying-an-android-mk-file-wh...
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_01.sh +LOCAL_SRC_FILES:= cpufreq_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_02.sh +LOCAL_SRC_FILES:= cpufreq_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_03.sh +LOCAL_SRC_FILES:= cpufreq_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_04.sh +LOCAL_SRC_FILES:= cpufreq_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_05.sh +LOCAL_SRC_FILES:= cpufreq_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_06.sh +LOCAL_SRC_FILES:= cpufreq_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_07.sh +LOCAL_SRC_FILES:= cpufreq_07.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_08.sh +LOCAL_SRC_FILES:= cpufreq_08.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpufreq_09.sh +LOCAL_SRC_FILES:= cpufreq_09.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpufreq +include $(BUILD_PREBUILT)
diff --git a/cpuhotplug/Android.mk b/cpuhotplug/Android.mk new file mode 100644 index 0000000..9981cfc --- /dev/null +++ b/cpuhotplug/Android.mk @@ -0,0 +1,84 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_01.sh +LOCAL_SRC_FILES:= cpuhotplug_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_02.sh +LOCAL_SRC_FILES:= cpuhotplug_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_03.sh +LOCAL_SRC_FILES:= cpuhotplug_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_04.sh +LOCAL_SRC_FILES:= cpuhotplug_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_05.sh +LOCAL_SRC_FILES:= cpuhotplug_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_06.sh +LOCAL_SRC_FILES:= cpuhotplug_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_07.sh +LOCAL_SRC_FILES:= cpuhotplug_07.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuhotplug_08.sh +LOCAL_SRC_FILES:= cpuhotplug_08.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := 1_sanity_check.sh +LOCAL_SRC_FILES:= 1_sanity_check.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := z_sanity_check.sh +LOCAL_SRC_FILES:= z_sanity_check.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuhotplug +include $(BUILD_PREBUILT)
diff --git a/cpuidle/Android.mk b/cpuidle/Android.mk new file mode 100644 index 0000000..98dfd74 --- /dev/null +++ b/cpuidle/Android.mk @@ -0,0 +1,35 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_01.sh +LOCAL_SRC_FILES:= cpuidle_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_02.sh +LOCAL_SRC_FILES:= cpuidle_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_03.sh +LOCAL_SRC_FILES:= cpuidle_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := cpuidle_killer +LOCAL_SRC_FILES:= cpuidle_killer.c +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/cpuidle +include $(BUILD_EXECUTABLE)
diff --git a/include/Android.mk b/include/Android.mk new file mode 100644 index 0000000..cbedd16 --- /dev/null +++ b/include/Android.mk @@ -0,0 +1,28 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := functions.sh +LOCAL_SRC_FILES:= functions.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend.sh +LOCAL_SRC_FILES:= suspend.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_functions.sh +LOCAL_SRC_FILES:= thermal_functions.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/include +include $(BUILD_PREBUILT)
diff --git a/sched_mc/Android.mk b/sched_mc/Android.mk new file mode 100644 index 0000000..1a5eb9b --- /dev/null +++ b/sched_mc/Android.mk @@ -0,0 +1,36 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_01.sh +LOCAL_SRC_FILES:= sched_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_02.sh +LOCAL_SRC_FILES:= sched_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_03.sh +LOCAL_SRC_FILES:= sched_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := sched_04.sh +LOCAL_SRC_FILES:= sched_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/sched_mc +include $(BUILD_PREBUILT)
diff --git a/suspend/Android.mk b/suspend/Android.mk new file mode 100644 index 0000000..f1dd9ef --- /dev/null +++ b/suspend/Android.mk @@ -0,0 +1,50 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_01.sh +LOCAL_SRC_FILES:= suspend_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_02.sh +LOCAL_SRC_FILES:= suspend_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_03.sh +LOCAL_SRC_FILES:= suspend_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_04.sh +LOCAL_SRC_FILES:= suspend_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_05.sh +LOCAL_SRC_FILES:= suspend_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := suspend_06.sh +LOCAL_SRC_FILES:= suspend_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/suspend +include $(BUILD_PREBUILT) diff --git a/thermal/Android.mk b/thermal/Android.mk new file mode 100644 index 0000000..e51d74e --- /dev/null +++ b/thermal/Android.mk @@ -0,0 +1,51 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_01.sh +LOCAL_SRC_FILES:= thermal_01.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_02.sh +LOCAL_SRC_FILES:= thermal_02.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_03.sh +LOCAL_SRC_FILES:= thermal_03.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_04.sh +LOCAL_SRC_FILES:= thermal_04.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_05.sh +LOCAL_SRC_FILES:= thermal_05.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT)
+include $(CLEAR_VARS) +LOCAL_MODULE := thermal_06.sh +LOCAL_SRC_FILES:= thermal_06.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/thermal +include $(BUILD_PREBUILT) diff --git a/utils/Android.mk b/utils/Android.mk new file mode 100644 index 0000000..7b61ee8 --- /dev/null +++ b/utils/Android.mk @@ -0,0 +1,35 @@ +include $(call all-subdir-makefiles) +LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= cpuburn.c +LOCAL_MODULE := cpuburn +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= cpucycle.c +LOCAL_MODULE := cpucycle +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= heat_cpu.c +LOCAL_MODULE := heat_cpu +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
+include $(CLEAR_VARS) +LOCAL_SRC_FILES:= nanosleep.c +LOCAL_MODULE := nanosleep +LOCAL_STATIC_LIBRARIES := libcutils libc +LOCAL_MODULE_TAGS := tests +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/utils +include $(BUILD_EXECUTABLE)
-- 1.7.0.4
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Just some nits below:
On Wed, May 30, 2012 at 2:47 PM, kejun.zhou kejun.zhou@linaro.org wrote:
From: kejun.zhou <dp583@stebjsxu0119.(none)>
Signed-off-by: kejun.zhou kejun.zhou@linaro.org
cpuidle/cpuidle_killer.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/cpuidle/cpuidle_killer.c b/cpuidle/cpuidle_killer.c index 67a675e..c8910f4 100644 --- a/cpuidle/cpuidle_killer.c +++ b/cpuidle/cpuidle_killer.c @@ -2,7 +2,17 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#ifndef ANDROID #include <sys/timex.h> +#else +// As of 4.0.4, Bionic doesn't provide the timex/adjtimex interface +// However, the kernel does...
Please use C-style comments everywhere /* */
+#include <linux/timex.h> // for struct timex +#include <asm/unistd.h> // for __NR_adjtimex +static int adjtimex(struct timex *buf) {
- return syscall(__NR_adjtimex, buf);
+} +#endif #include <sys/types.h> #include <sys/wait.h> #include <sys/param.h> -- 1.7.0.4