diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2015-03-17 13:13:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-20 23:56:02 +0000 |
commit | f14ef4d9e8ce5bbe9945b7df48dccb0f4c466caa (patch) | |
tree | 084d2bae10189c760456f743de46f0cc148b52da /meta/recipes-devtools/valgrind | |
parent | 740770c0098c414240b74f789ec874f3e51da77a (diff) | |
download | poky-f14ef4d9e8ce5bbe9945b7df48dccb0f4c466caa.tar.gz |
valgrind: enable building on 4.x kernel
(From OE-Core rev: e75d1d76949f944367d06bea82f519fdecda3ca3)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch | 37 | ||||
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind_3.10.1.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch b/meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch new file mode 100644 index 0000000000..300f2f19fa --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Enable building valgrind on host with 4.x kernel. | ||
2 | |||
3 | For OpenEmbedded builds we should be checking something like | ||
4 | OLDEST_KERNEL instead of `uname -r`, but this is good enough for now. | ||
5 | |||
6 | Building on 4.x* currently fails with: | ||
7 | configure:5556: checking for the kernel version | ||
8 | configure:5579: result: unsupported (4.0.0-rc3-00111-gaffb817) | ||
9 | configure:5581: error: Valgrind works on kernels 2.4, 2.6 | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | |||
14 | --- valgrind-3.9.0/configure.ac.orig 2015-03-13 19:17:01.247310868 +0100 | ||
15 | +++ valgrind-3.9.0/configure.ac 2015-03-13 19:19:27.388316108 +0100 | ||
16 | @@ -276,9 +276,9 @@ | ||
17 | kernel=`uname -r` | ||
18 | |||
19 | case "${kernel}" in | ||
20 | - 2.6.*|3.*) | ||
21 | - AC_MSG_RESULT([2.6.x/3.x family (${kernel})]) | ||
22 | - AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x]) | ||
23 | + 2.6.*|3.*|4.*) | ||
24 | + AC_MSG_RESULT([2.6.x/3.x/4.x family (${kernel})]) | ||
25 | + AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x or Linux 4.x]) | ||
26 | ;; | ||
27 | |||
28 | 2.4.*) | ||
29 | @@ -288,7 +288,7 @@ | ||
30 | |||
31 | *) | ||
32 | AC_MSG_RESULT([unsupported (${kernel})]) | ||
33 | - AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6]) | ||
34 | + AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x, 4.x]) | ||
35 | ;; | ||
36 | esac | ||
37 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb index 1c2ac61bbc..365e968549 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ | |||
21 | file://remove-arm-variant-specific.patch \ | 21 | file://remove-arm-variant-specific.patch \ |
22 | file://remove-ppc-tests-failing-build.patch \ | 22 | file://remove-ppc-tests-failing-build.patch \ |
23 | file://valgrind-remove-rpath.patch \ | 23 | file://valgrind-remove-rpath.patch \ |
24 | file://enable.building.on.4.x.kernel.patch \ | ||
24 | file://add-ptest.patch \ | 25 | file://add-ptest.patch \ |
25 | file://run-ptest \ | 26 | file://run-ptest \ |
26 | " | 27 | " |