[oe-commits] Roy Li : ltp: add PACKAGECONFIG for numactrl

git at git.openembedded.org git at git.openembedded.org
Tue Sep 30 13:11:06 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 4c7873552e13dfdba96afca7562c398d2966ca71
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4c7873552e13dfdba96afca7562c398d2966ca71

Author: Roy Li <rongqing.li at windriver.com>
Date:   Mon Sep 29 08:53:49 2014 +0800

ltp: add PACKAGECONFIG for numactrl

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          |  2 ++
 2 files changed, 41 insertions(+)

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..064f00a
--- /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([--without-numa],
++    [without the numa support]),
++  [],[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 f521d40..a8a2e50 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 \
     file://ltp-Do-not-link-against-libfl.patch \
     file://automake-foreign.patch \
     file://make-setregid02-work.patch \
+    file://add-knob-for-numa.patch \
 "
 
 S = "${WORKDIR}/git"
@@ -38,6 +39,7 @@ TARGET_CC_ARCH += "${LDFLAGS}"
 export prefix = "/opt/ltp"
 export exec_prefix = "/opt/ltp"
 
+PACKAGECONFIG[numa] = "--with-numa, --without-numa, numactl,"
 EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite "
 
 # ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.



More information about the Openembedded-commits mailing list