[linaro-android] device/linaro/u8500href: Install 0xbench native applications

Message ID 20110215043036.GA16003@black
State New
Headers show

Commit Message

Jeremy Chang Feb. 15, 2011, 4:30 a.m.
From 78b170843eadf0e72d6b0d4cb0fc5f3be5edcae8 Mon Sep 17 00:00:00 2001
From: Jeremy Chang <jeremy@0xlab.org>
Date: Tue, 15 Feb 2011 12:17:16 +0800
Subject: [PATCH] Install 0xbench native applications


Signed-off-by: Jeremy Chang <jeremy@0xlab.org>
---
 ZeroXBenchmark.mk |   96 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 u8500href.mk      |    5 ++-
 2 files changed, 100 insertions(+), 1 deletions(-)
 create mode 100644 ZeroXBenchmark.mk

Comments

Patrik Ryd Feb. 15, 2011, 1:57 p.m. | #1
Hi,

Looks good to me. I will push it to git.linaro.org.

 /Patrik


On 15 February 2011 05:30, Jeremy Chang <jeremy@0xlab.org> wrote:

> From 78b170843eadf0e72d6b0d4cb0fc5f3be5edcae8 Mon Sep 17 00:00:00 2001
> From: Jeremy Chang <jeremy@0xlab.org>
> Date: Tue, 15 Feb 2011 12:17:16 +0800
> Subject: [PATCH] Install 0xbench native applications
>
>
> Signed-off-by: Jeremy Chang <jeremy@0xlab.org>
> ---
>  ZeroXBenchmark.mk |   96
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  u8500href.mk      |    5 ++-
>  2 files changed, 100 insertions(+), 1 deletions(-)
>  create mode 100644 ZeroXBenchmark.mk
>
> diff --git a/ZeroXBenchmark.mk b/ZeroXBenchmark.mk
> new file mode 100644
> index 0000000..e78047d
> --- /dev/null
> +++ b/ZeroXBenchmark.mk
> @@ -0,0 +1,96 @@
> +UNIXBENCH_BENCH_APPS :=         \
> +    bench_ubench_hanoi          \
> +    bench_ubench_syscall        \
> +    bench_ubench_context1       \
> +    bench_ubench_pipe           \
> +    bench_ubench_spawn          \
> +    bench_ubench_execl          \
> +    bench_ubench_looper         \
> +    bench_ubench_fstime         \
> +    bench_ubench_arithoh        \
> +    bench_ubench_register       \
> +    bench_ubench_short          \
> +    bench_ubench_int            \
> +    bench_ubench_long           \
> +    bench_ubench_float          \
> +    bench_ubench_double         \
> +    bench_ubench_dhry2          \
> +    bench_ubench_dhry2reg       \
> +    bench_ubench_whetstone-double
> +
> +LIBMICRO_BENCH_APPS :=          \
> +    bench_getpid                \
> +    bench_bind                  \
> +    bench_cascade_mutex         \
> +    bench_cascade_fcntl         \
> +    bench_cascade_flock         \
> +    bench_chdir                 \
> +    bench_close                 \
> +    bench_close_tcp             \
> +    bench_connection            \
> +    bench_dup                   \
> +    bench_exec                  \
> +    bench_exit                  \
> +    bench_exp                   \
> +    bench_fcntl                 \
> +    bench_fcntl_ndelay          \
> +    bench_file_lock             \
> +    bench_fork                  \
> +    bench_getenv                \
> +    bench_gettimeofday          \
> +    bench_getpeername           \
> +    bench_getrusage             \
> +    bench_getsockname           \
> +    bench_isatty                \
> +    bench_listen                \
> +    bench_localtime_r           \
> +    bench_log                   \
> +    bench_longjmp               \
> +    bench_lrand48               \
> +    bench_lseek                 \
> +    bench_malloc                \
> +    bench_memcpy                \
> +    bench_memmove               \
> +    bench_memrand               \
> +    bench_memset                \
> +    bench_mktime                \
> +    bench_mprotect              \
> +    bench_mmap                  \
> +    bench_msync                 \
> +    bench_munmap                \
> +    bench_mutex                 \
> +    bench_nop                   \
> +    bench_open                  \
> +    bench_pipe                  \
> +    bench_poll                  \
> +    bench_pread                 \
> +    bench_pthread_create        \
> +    bench_pwrite                \
> +    bench_read                  \
> +    bench_realpath              \
> +    bench_recurse               \
> +    bench_select                \
> +    bench_setsockopt            \
> +    bench_sigaction             \
> +    bench_siglongjmp            \
> +    bench_signal                \
> +    bench_sigprocmask           \
> +    bench_socket                \
> +    bench_socketpair            \
> +    bench_stat                  \
> +    bench_strcasecmp            \
> +    bench_strchr                \
> +    bench_strcmp                \
> +    bench_strcpy                \
> +    bench_strftime              \
> +    bench_strlen                \
> +    bench_strtol                \
> +    bench_system                \
> +    bench_time                  \
> +    bench_times                 \
> +    bench_write                 \
> +    bench_writev
> +
> +ZEROXBENCHMARK_NATIVE_APPS :=   \
> +    $(UNIXBENCH_BENCH_APPS)     \
> +    $(LIBMICRO_BENCH_APPS)
> diff --git a/u8500href.mk b/u8500href.mk
> index 3efd467..37a9eab 100644
> --- a/u8500href.mk
> +++ b/u8500href.mk
> @@ -1,5 +1,7 @@
>  # The beagleboard product that is specialized for beagleboard.
>
> +include $(LOCAL_PATH)/ZeroXBenchmark.mk
> +
>  PRODUCT_PACKAGES := \
>     ZeroXBenchmark \
>     libmicro \
> @@ -22,7 +24,8 @@ PRODUCT_PACKAGES := \
>     Sync \
>     Updater \
>     CalendarProvider \
> -    SyncProvider
> +    SyncProvider \
> +    $(ZEROXBENCHMARK_NATIVE_APPS)
>
>  $(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
>
> --
> 1.7.1
>
>

Patch

diff --git a/ZeroXBenchmark.mk b/ZeroXBenchmark.mk
new file mode 100644
index 0000000..e78047d
--- /dev/null
+++ b/ZeroXBenchmark.mk
@@ -0,0 +1,96 @@ 
+UNIXBENCH_BENCH_APPS :=         \
+    bench_ubench_hanoi          \
+    bench_ubench_syscall        \
+    bench_ubench_context1       \
+    bench_ubench_pipe           \
+    bench_ubench_spawn          \
+    bench_ubench_execl          \
+    bench_ubench_looper         \
+    bench_ubench_fstime         \
+    bench_ubench_arithoh        \
+    bench_ubench_register       \
+    bench_ubench_short          \
+    bench_ubench_int            \
+    bench_ubench_long           \
+    bench_ubench_float          \
+    bench_ubench_double         \
+    bench_ubench_dhry2          \
+    bench_ubench_dhry2reg       \
+    bench_ubench_whetstone-double
+
+LIBMICRO_BENCH_APPS :=          \
+    bench_getpid                \
+    bench_bind                  \
+    bench_cascade_mutex         \
+    bench_cascade_fcntl         \
+    bench_cascade_flock         \
+    bench_chdir                 \
+    bench_close                 \
+    bench_close_tcp             \
+    bench_connection            \
+    bench_dup                   \
+    bench_exec                  \
+    bench_exit                  \
+    bench_exp                   \
+    bench_fcntl                 \
+    bench_fcntl_ndelay          \
+    bench_file_lock             \
+    bench_fork                  \
+    bench_getenv                \
+    bench_gettimeofday          \
+    bench_getpeername           \
+    bench_getrusage             \
+    bench_getsockname           \
+    bench_isatty                \
+    bench_listen                \
+    bench_localtime_r           \
+    bench_log                   \
+    bench_longjmp               \
+    bench_lrand48               \
+    bench_lseek                 \
+    bench_malloc                \
+    bench_memcpy                \
+    bench_memmove               \
+    bench_memrand               \
+    bench_memset                \
+    bench_mktime                \
+    bench_mprotect              \
+    bench_mmap                  \
+    bench_msync                 \
+    bench_munmap                \
+    bench_mutex                 \
+    bench_nop                   \
+    bench_open                  \
+    bench_pipe                  \
+    bench_poll                  \
+    bench_pread                 \
+    bench_pthread_create        \
+    bench_pwrite                \
+    bench_read                  \
+    bench_realpath              \
+    bench_recurse               \
+    bench_select                \
+    bench_setsockopt            \
+    bench_sigaction             \
+    bench_siglongjmp            \
+    bench_signal                \
+    bench_sigprocmask           \
+    bench_socket                \
+    bench_socketpair            \
+    bench_stat                  \
+    bench_strcasecmp            \
+    bench_strchr                \
+    bench_strcmp                \
+    bench_strcpy                \
+    bench_strftime              \
+    bench_strlen                \
+    bench_strtol                \
+    bench_system                \
+    bench_time                  \
+    bench_times                 \
+    bench_write                 \
+    bench_writev
+
+ZEROXBENCHMARK_NATIVE_APPS :=   \
+    $(UNIXBENCH_BENCH_APPS)     \
+    $(LIBMICRO_BENCH_APPS)
diff --git a/u8500href.mk b/u8500href.mk
index 3efd467..37a9eab 100644
--- a/u8500href.mk
+++ b/u8500href.mk
@@ -1,5 +1,7 @@ 
 # The beagleboard product that is specialized for beagleboard.
 
+include $(LOCAL_PATH)/ZeroXBenchmark.mk
+
 PRODUCT_PACKAGES := \
     ZeroXBenchmark \
     libmicro \
@@ -22,7 +24,8 @@  PRODUCT_PACKAGES := \
     Sync \
     Updater \
     CalendarProvider \
-    SyncProvider
+    SyncProvider \
+    $(ZEROXBENCHMARK_NATIVE_APPS)
 
 $(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)