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.patch43
1 files changed, 43 insertions, 0 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
new file mode 100644
index 0000000000..68725dc7a4
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
@@ -0,0 +1,43 @@
1From 867ad5d5d64b9b27ee32148027532db0a00f6433 Mon Sep 17 00:00:00 2001
2From: "Roy.Li" <rongqing.li@windriver.com>
3Date: Thu, 7 Jan 2016 17:33:26 +0000
4Subject: [PATCH 02/32] Add knob to control whether numa support should be
5 checked
6
7otherwise undeterministic dependency will be generated
8during build depending upong numa being staged or not
9
10signed-off-by: Roy.Li <rongqing.li@windriver.com>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 m4/ltp-numa.m4 | 10 +++++++++-
14 1 file changed, 9 insertions(+), 1 deletion(-)
15
16diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4
17index 60ae07b..ed7078d 100644
18--- a/m4/ltp-numa.m4
19+++ b/m4/ltp-numa.m4
20@@ -24,7 +24,13 @@ dnl ----------------------------
21 dnl
22 AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],
23 [dnl
24-AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
25+AC_MSG_CHECKING([for numa])
26+AC_ARG_WITH(
27+ [numa],
28+ AC_HELP_STRING([--without-numa],
29+ [without numa support]),
30+ [],
31+ [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
32 LTP_SYSCALL_NUMA_HEADERS=yes
33 AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])
34 if test "x$have_numa_alloc_onnode" = "xyes"; then
35@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then
36 AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])
37 fi
38 )])
39+AC_MSG_RESULT([$with_numa])
40+])
41--
422.7.0
43