diff options
author | Lin Tong <tong.lin@intel.com> | 2011-08-11 14:01:52 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-15 15:26:16 +0100 |
commit | 92ad22dc08dd5e615a242425a1d089c4892f5a43 (patch) | |
tree | 96ecf86e73fa6edef814d9e8c25bd77f8ae7f060 /meta/recipes-devtools | |
parent | c7dbcf85c9e22e6fc65a9232bf8ba1b7facbec84 (diff) | |
download | poky-92ad22dc08dd5e615a242425a1d089c4892f5a43.tar.gz |
valgrind: supporting on Linux kernel 3.x
The old valgrind package do not support for Linux kernel 3.x, only for
kernel 2.4 and 2.6. Now adding the configuration to the configure.in
file to support Linux kernel 3.0.
This commit fixes the problem in valgrind [YOCTO #1129]
(From OE-Core rev: 5fc1e6d27f52e2032aa7a8ca20bb90d939d03c77)
Signed-off-by: Lin Tong <tong.lin@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_unsupporting_kernel_3.patch | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind_3.6.1.bb | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_unsupporting_kernel_3.patch b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_unsupporting_kernel_3.patch new file mode 100644 index 0000000000..346ffebb3d --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_unsupporting_kernel_3.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | valgrind: Add 3.x statements to "case" for supporting the kernel 3.x | ||
2 | |||
3 | Signed-off-by: Lin Tong <tong.lin@intel.com> | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | diff --git a/configure.in b/configure.in | ||
8 | index 3878619..1cb7dc7 100644 | ||
9 | --- a/configure.in | ||
10 | +++ b/configure.in | ||
11 | @@ -229,10 +229,14 @@ case "${host_os}" in | ||
12 | AC_MSG_RESULT([2.4 family (${kernel})]) | ||
13 | AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x]) | ||
14 | ;; | ||
15 | + 3.*) | ||
16 | + AC_MSG_RESULT([3 family (${kernel})]) | ||
17 | + AC_DEFINE([KERNEL_3], 1, [Define to 1 if you're using Linux 3.x]) | ||
18 | + ;; | ||
19 | |||
20 | *) | ||
21 | AC_MSG_RESULT([unsupported (${kernel})]) | ||
22 | - AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6]) | ||
23 | + AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x]) | ||
24 | ;; | ||
25 | esac | ||
26 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb b/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb index d5dcdd6ebe..021caa8a6e 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb | |||
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \ | |||
7 | file://include/valgrind.h;beginline=1;endline=56;md5=13a71cedba99112334d8596162aec37e \ | 7 | file://include/valgrind.h;beginline=1;endline=56;md5=13a71cedba99112334d8596162aec37e \ |
8 | file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215" | 8 | file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215" |
9 | DEPENDS = "virtual/libx11" | 9 | DEPENDS = "virtual/libx11" |
10 | PR = "r0" | 10 | PR = "r1" |
11 | 11 | ||
12 | SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ | 12 | SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ |
13 | file://fix_issue_caused_by_ccache.patch \ | 13 | file://fix_issue_caused_by_ccache.patch \ |
14 | file://fix_unsupporting_kernel_3.patch \ | ||
14 | file://fixed-perl-path.patch" | 15 | file://fixed-perl-path.patch" |
15 | 16 | ||
16 | SRC_URI[md5sum] = "2c3aa122498baecc9d69194057ca88f5" | 17 | SRC_URI[md5sum] = "2c3aa122498baecc9d69194057ca88f5" |