diff options
author | Mikhail Durnev <Mikhail_Durnev@mentor.com> | 2014-09-03 13:01:50 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-03 16:00:28 +0100 |
commit | 628875eb21e9012564cdb324a422f6ad95c1908f (patch) | |
tree | da77f45727c2e8dae93d6d21088f147ecf287cf5 /meta | |
parent | af28cada543b658f8737eaae37775ca7d9732cfc (diff) | |
download | poky-628875eb21e9012564cdb324a422f6ad95c1908f.tar.gz |
systemtap: Cross compilation fix
This is a cross compilation fix. It allows systemtap to find the
kernel map file in the right place, i.e. in the kernel build tree.
Without this fix it takes a map file from the build host, if available.
(From OE-Core rev: 787bed708676fc04aee2850825e803273152f657)
Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap/system_map_location.patch | 23 | ||||
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.inc | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/system_map_location.patch b/meta/recipes-kernel/systemtap/systemtap/system_map_location.patch new file mode 100644 index 0000000000..013af5c3a4 --- /dev/null +++ b/meta/recipes-kernel/systemtap/systemtap/system_map_location.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | systemtap: Cross compilation fix | ||
2 | |||
3 | This is a cross compilation fix. It allows systemtap to find | ||
4 | the kernel map file in the right place, i.e. in the kernel build tree. | ||
5 | Without this fix it takes a map file from the build host, if available. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com> | ||
10 | |||
11 | Index: git/session.cxx | ||
12 | =================================================================== | ||
13 | --- git.orig/session.cxx | ||
14 | +++ git/session.cxx | ||
15 | @@ -1634,7 +1634,7 @@ systemtap_session::parse_kernel_function | ||
16 | clog << _F("Kernel symbol table %s unavailable, (%s)", | ||
17 | system_map_path.c_str(), strerror(errno)) << endl; | ||
18 | |||
19 | - system_map_path = "/boot/System.map-" + kernel_release; | ||
20 | + system_map_path = kernel_build_tree + "/System.map-" + kernel_release; | ||
21 | system_map.clear(); | ||
22 | system_map.open(system_map_path.c_str(), ifstream::in); | ||
23 | if (! system_map.is_open()) | ||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc index 3e1e80a727..33aa136f74 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.inc +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc | |||
@@ -6,6 +6,7 @@ PV = "2.5+git${SRCPV}" | |||
6 | SRC_URI = "git://sourceware.org/git/systemtap.git \ | 6 | SRC_URI = "git://sourceware.org/git/systemtap.git \ |
7 | file://docproc-build-fix.patch \ | 7 | file://docproc-build-fix.patch \ |
8 | file://obsolete_automake_macros.patch \ | 8 | file://obsolete_automake_macros.patch \ |
9 | file://system_map_location.patch \ | ||
9 | file://tapset-linux-sendfile-syscall.patch \ | 10 | file://tapset-linux-sendfile-syscall.patch \ |
10 | " | 11 | " |
11 | 12 | ||