summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch39
1 files changed, 20 insertions, 19 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
index 98650205d8..31460b9089 100644
--- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
+++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
@@ -9,34 +9,35 @@ during build depending upong numa being staged or not
9 9
10Signed-off-by: Roy.Li <rongqing.li@windriver.com> 10Signed-off-by: Roy.Li <rongqing.li@windriver.com>
11Signed-off-by: Khem Raj <raj.khem@gmail.com> 11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
12Upstream-Status: Pending 13Upstream-Status: Pending
13--- 14---
14 m4/ltp-numa.m4 | 10 +++++++++- 15 m4/ltp-numa.m4 | 10 +++++++++-
15 1 file changed, 9 insertions(+), 1 deletion(-) 16 1 file changed, 9 insertions(+), 1 deletion(-)
16 17
17diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4 18diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4
18index 60ae07b..ed7078d 100644 19index fc3383e..44cb559 100644
19--- a/m4/ltp-numa.m4 20--- a/m4/ltp-numa.m4
20+++ b/m4/ltp-numa.m4 21+++ b/m4/ltp-numa.m4
21@@ -24,7 +24,13 @@ dnl ---------------------------- 22@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA
23 dnl ----------------------------
22 dnl 24 dnl
23 AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], 25 AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [
24 [dnl 26- AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])
25-AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[ 27+ AC_MSG_CHECKING([for numa])
26+AC_MSG_CHECKING([for numa]) 28+ AC_ARG_WITH(
27+AC_ARG_WITH( 29+ [numa],
28+ [numa], 30+ AC_HELP_STRING([--without-numa],
29+ AC_HELP_STRING([--without-numa], 31+ [without numa support]),
30+ [without numa support]), 32+ [],
31+ [], 33+ [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])
32+ [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[ 34 AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])
33 LTP_SYSCALL_NUMA_HEADERS=yes 35
34 AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"]) 36 if test "x$have_numa_headers" != "xno"; then
35 if test "x$have_numa_alloc_onnode" = "xyes"; then 37@@ -42,3 +48,5 @@ exit(1);
36@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then 38 AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])
37 AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests]) 39 fi
38 fi 40 ])
39 )])
40+AC_MSG_RESULT([$with_numa]) 41+AC_MSG_RESULT([$with_numa])
41+]) 42+])
42-- 43--