summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch39
-rw-r--r--meta/recipes-extended/ltp/ltp_20140422.bb2
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch b/meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch
new file mode 100644
index 0000000000..064f00ae3d
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch
@@ -0,0 +1,39 @@
1[PATCH] add knob to control whether numa support should be checked
2
3Upstream-Status: Pending
4
5otherwise the random dependency will be generated
6
7Signed-off-by: Roy.Li <rongqing.li@windriver.com>
8---
9 configure.ac | 10 +-
10diff --git a/configure.ac b/configure.ac
11index 9f397e7..1357256 100644
12--- a/configure.ac
13+++ b/configure.ac
14@@ -142,6 +142,12 @@ else
15 AC_SUBST([WITH_REALTIME_TESTSUITE],["no"])
16 fi
17
18+AC_ARG_WITH([numa],
19+ AC_HELP_STRING([--without-numa],
20+ [without the numa support]),
21+ [],[with_numa=yes],
22+)
23+
24 AC_CONFIG_SUBDIRS([utils/ffsb-6.0-rc2])
25
26 # END testsuites knobs
27@@ -159,7 +165,9 @@ LTP_CHECK_SIGNAL
28 LTP_CHECK_SYSCALL_EVENTFD
29 LTP_CHECK_SYSCALL_KEYCTL
30 LTP_CHECK_SYSCALL_MODIFY_LDT
31+if test "x$with_numa" = xyes; then
32 LTP_CHECK_SYSCALL_NUMA
33+fi
34 LTP_CHECK_SYSCALL_QUOTACTL
35 LTP_CHECK_SYSCALL_SIGNALFD
36 LTP_CHECK_SYSCALL_UNSHARE
37--
381.9.1
39
diff --git a/meta/recipes-extended/ltp/ltp_20140422.bb b/meta/recipes-extended/ltp/ltp_20140422.bb
index f521d40ecf..a8a2e50b13 100644
--- a/meta/recipes-extended/ltp/ltp_20140422.bb
+++ b/meta/recipes-extended/ltp/ltp_20140422.bb
@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
27 file://ltp-Do-not-link-against-libfl.patch \ 27 file://ltp-Do-not-link-against-libfl.patch \
28 file://automake-foreign.patch \ 28 file://automake-foreign.patch \
29 file://make-setregid02-work.patch \ 29 file://make-setregid02-work.patch \
30 file://add-knob-for-numa.patch \
30" 31"
31 32
32S = "${WORKDIR}/git" 33S = "${WORKDIR}/git"
@@ -38,6 +39,7 @@ TARGET_CC_ARCH += "${LDFLAGS}"
38export prefix = "/opt/ltp" 39export prefix = "/opt/ltp"
39export exec_prefix = "/opt/ltp" 40export exec_prefix = "/opt/ltp"
40 41
42PACKAGECONFIG[numa] = "--with-numa, --without-numa, numactl,"
41EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite " 43EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite "
42 44
43# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call. 45# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.