[OE-core] [PATCH] ltp: add PACKAGECONFIG for numactrl
rongqing.li at windriver.com
rongqing.li at windriver.com
Tue Sep 16 03:09:53 UTC 2014
From: "Roy.Li" <rongqing.li at windriver.com>
Signed-off-by: Roy.Li <rongqing.li at windriver.com>
---
.../ltp/ltp/add-knob-for-numa.patch | 39 ++++++++++++++++++++++
meta/recipes-extended/ltp/ltp_20140422.bb | 3 ++
2 files changed, 42 insertions(+)
create mode 100644 meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch
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 0000000..661bdab
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch
@@ -0,0 +1,39 @@
+[PATCH] add knob to control whether numa support should be checked
+
+Upstream-Status: Pending
+
+otherwise the random dependency will be generated
+
+Signed-off-by: Roy.Li <rongqing.li at windriver.com>
+---
+ configure.ac | 10 +-
+diff --git a/configure.ac b/configure.ac
+index 9f397e7..1357256 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -142,6 +142,12 @@ else
+ AC_SUBST([WITH_REALTIME_TESTSUITE],["no"])
+ fi
+
++AC_ARG_WITH([numa],
++ [AC_HELP_STRING([--with-numa],
++ [have the numa support (default=no)])],
++ [with_numa=yes],
++)
++
+ AC_CONFIG_SUBDIRS([utils/ffsb-6.0-rc2])
+
+ # END testsuites knobs
+@@ -159,7 +165,9 @@ LTP_CHECK_SIGNAL
+ LTP_CHECK_SYSCALL_EVENTFD
+ LTP_CHECK_SYSCALL_KEYCTL
+ LTP_CHECK_SYSCALL_MODIFY_LDT
++if test "x$with_numa" = xyes; then
+ LTP_CHECK_SYSCALL_NUMA
++fi
+ LTP_CHECK_SYSCALL_QUOTACTL
+ LTP_CHECK_SYSCALL_SIGNALFD
+ LTP_CHECK_SYSCALL_UNSHARE
+--
+1.9.1
+
diff --git a/meta/recipes-extended/ltp/ltp_20140422.bb b/meta/recipes-extended/ltp/ltp_20140422.bb
index c658bc0..3142cae 100644
--- a/meta/recipes-extended/ltp/ltp_20140422.bb
+++ b/meta/recipes-extended/ltp/ltp_20140422.bb
@@ -26,6 +26,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
file://0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch \
file://ltp-Do-not-link-against-libfl.patch \
file://automake-foreign.patch \
+ file://add-knob-for-numa.patch \
"
S = "${WORKDIR}/git"
@@ -39,6 +40,8 @@ export exec_prefix = "/opt/ltp"
EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite "
+PACKAGECONFIG[numa] = "--with-numa=yes, , numactl,"
+
# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.
# we explicitly force regeneration of that directory and pass configure options.
do_configure_append() {
--
1.9.1
More information about the Openembedded-core
mailing list