diff options
Diffstat (limited to 'meta/recipes-devtools/valgrind')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch | 30 | ||||
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/valgrind_3.5.0-svn_r11264.patch.bz2 | bin | 0 -> 3681800 bytes | |||
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind_3.5.0.bb | 24 |
3 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch new file mode 100644 index 0000000000..a5c273c45b --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/fix_issue_caused_by_ccache.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | The script does not expect use of ccache, hence fix it to recognise it. | ||
2 | |||
3 | 2010/08/17 | ||
4 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
5 | |||
6 | Index: valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
7 | =================================================================== | ||
8 | --- valgrind-3.5.0.orig/coregrind/link_tool_exe_linux.in | ||
9 | +++ valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
10 | @@ -62,6 +62,11 @@ die "Bogus alt-load address" | ||
11 | |||
12 | # The cc invokation to do the final link | ||
13 | my $cc = $ARGV[1]; | ||
14 | +my $next = 2; | ||
15 | +if ("$cc" eq "ccache") { | ||
16 | + $cc = "$cc $ARGV[2]"; | ||
17 | + $next = 3; | ||
18 | +} | ||
19 | |||
20 | # and the 'restargs' are argv[2 ..] | ||
21 | |||
22 | @@ -71,7 +76,7 @@ my $cc = $ARGV[1]; | ||
23 | my $cmd="$cc -static -Wl,-Ttext=$ala"; | ||
24 | |||
25 | # Add the rest of the parameters | ||
26 | -foreach my $n (2 .. $#ARGV) { | ||
27 | +foreach my $n ($next .. $#ARGV) { | ||
28 | $cmd = "$cmd $ARGV[$n]"; | ||
29 | } | ||
30 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind/valgrind_3.5.0-svn_r11264.patch.bz2 b/meta/recipes-devtools/valgrind/valgrind/valgrind_3.5.0-svn_r11264.patch.bz2 new file mode 100644 index 0000000000..66b3698f25 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/valgrind_3.5.0-svn_r11264.patch.bz2 | |||
Binary files differ | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.5.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.5.0.bb new file mode 100644 index 0000000000..c1a73f878d --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind_3.5.0.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Valgrind memory debugger" | ||
2 | HOMEPAGE = "http://valgrind.org/" | ||
3 | BUGTRACKER = "http://valgrind.org/support/bug_reports.html" | ||
4 | LICENSE = "GPLv2+ & BSD & FDLv1.2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \ | ||
6 | file://include/pub_tool_basics.h;beginline=1;endline=29;md5=b4765f122b7672cdf9b2e8fd75a33172 \ | ||
7 | file://include/valgrind.h;beginline=1;endline=56;md5=13a71cedba99112334d8596162aec37e \ | ||
8 | file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215" | ||
9 | DEPENDS = "virtual/libx11" | ||
10 | PR = "r3" | ||
11 | |||
12 | SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ | ||
13 | file://valgrind_3.5.0-svn_r11264.patch.bz2 \ | ||
14 | file://fix_issue_caused_by_ccache.patch " | ||
15 | |||
16 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | ||
17 | |||
18 | inherit autotools | ||
19 | |||
20 | EXTRA_OECONF = "--enable-tls" | ||
21 | EXTRA_OEMAKE = "-w" | ||
22 | PARALLEL_MAKE = "" | ||
23 | |||
24 | FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug/*" | ||