diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2015-04-20 14:37:34 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-20 15:31:42 +0100 |
| commit | d098f7ed0543f491bf8d183aef265e1ab1d07266 (patch) | |
| tree | e807d033a94de4f71438967be646643d2758f627 | |
| parent | 192a9e1031763943719b603acc52967525f67ebe (diff) | |
| download | poky-d098f7ed0543f491bf8d183aef265e1ab1d07266.tar.gz | |
valgrind: enable building on 4.x kernel
(From OE-Core rev: 7351c03e3bd674fcad4cb805bba3f34ef20d7003)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-devtools/valgrind/valgrind_3.9.0.bb | 1 |
2 files changed, 37 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..a90fcc510c --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 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 | |||
| 13 | --- valgrind-3.9.0/configure.ac.orig 2015-03-13 19:17:01.247310868 +0100 | ||
| 14 | +++ valgrind-3.9.0/configure.ac 2015-03-13 19:19:27.388316108 +0100 | ||
| 15 | @@ -276,9 +276,9 @@ | ||
| 16 | kernel=`uname -r` | ||
| 17 | |||
| 18 | case "${kernel}" in | ||
| 19 | - 2.6.*|3.*) | ||
| 20 | - AC_MSG_RESULT([2.6.x/3.x family (${kernel})]) | ||
| 21 | - AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x]) | ||
| 22 | + 2.6.*|3.*|4.*) | ||
| 23 | + AC_MSG_RESULT([2.6.x/3.x/4.x family (${kernel})]) | ||
| 24 | + 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]) | ||
| 25 | ;; | ||
| 26 | |||
| 27 | 2.4.*) | ||
| 28 | @@ -288,7 +288,7 @@ | ||
| 29 | |||
| 30 | *) | ||
| 31 | AC_MSG_RESULT([unsupported (${kernel})]) | ||
| 32 | - AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6]) | ||
| 33 | + AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x, 4.x]) | ||
| 34 | ;; | ||
| 35 | esac | ||
| 36 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb index eea81a2405..9e1ab5f201 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.9.0.bb | |||
| @@ -19,6 +19,7 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ | |||
| 19 | file://force-nostabs.patch \ | 19 | file://force-nostabs.patch \ |
| 20 | file://remove-arm-variant-specific.patch \ | 20 | file://remove-arm-variant-specific.patch \ |
| 21 | file://remove-ppc-tests-failing-build.patch \ | 21 | file://remove-ppc-tests-failing-build.patch \ |
| 22 | file://enable.building.on.4.x.kernel.patch \ | ||
| 22 | file://add-ptest.patch \ | 23 | file://add-ptest.patch \ |
| 23 | file://pass-maltivec-only-if-it-supported.patch \ | 24 | file://pass-maltivec-only-if-it-supported.patch \ |
| 24 | file://run-ptest \ | 25 | file://run-ptest \ |
