diff options
| author | Roy Li <rongqing.li@windriver.com> | 2014-09-29 08:53:49 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-30 14:10:36 +0100 |
| commit | ab2fcd223d2935d4cb86c4a39cf8df1d465eddf8 (patch) | |
| tree | a715e5b266e9447509c95d7623dc474dfaa60b54 | |
| parent | a032509535701dbf7180c812620df1d9d3b2c849 (diff) | |
| download | poky-ab2fcd223d2935d4cb86c4a39cf8df1d465eddf8.tar.gz | |
ltp: add PACKAGECONFIG for numactrl
(From OE-Core rev: 4c7873552e13dfdba96afca7562c398d2966ca71)
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch | 39 | ||||
| -rw-r--r-- | meta/recipes-extended/ltp/ltp_20140422.bb | 2 |
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 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | otherwise the random dependency will be generated | ||
| 6 | |||
| 7 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
| 8 | --- | ||
| 9 | configure.ac | 10 +- | ||
| 10 | diff --git a/configure.ac b/configure.ac | ||
| 11 | index 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 | -- | ||
| 38 | 1.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 | ||
| 32 | S = "${WORKDIR}/git" | 33 | S = "${WORKDIR}/git" |
| @@ -38,6 +39,7 @@ TARGET_CC_ARCH += "${LDFLAGS}" | |||
| 38 | export prefix = "/opt/ltp" | 39 | export prefix = "/opt/ltp" |
| 39 | export exec_prefix = "/opt/ltp" | 40 | export exec_prefix = "/opt/ltp" |
| 40 | 41 | ||
| 42 | PACKAGECONFIG[numa] = "--with-numa, --without-numa, numactl," | ||
| 41 | EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite " | 43 | EXTRA_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. |
