summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-03 20:51:35 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 20:14:44 +0000
commit7c7daa3ec02156238a8386ee3605f693efc02254 (patch)
tree6c58eae6ff3757e48ef162cf24eb35dddcf3e04c /meta
parentee036060a876a02d15e20a5eee5a2f0aaffdd290 (diff)
downloadpoky-7c7daa3ec02156238a8386ee3605f693efc02254.tar.gz
valgrind: Skip vgpreload_memcheck shared object from stripping
This is a special library for memcheck tool, where it needs to have the symbols intact for the stack traces to work on target, current option is to install valgrind-dbg ( 151 MB uncompressed ) is quite big for some systems which may not have space to install it all. Leaving it unstripped adds about 200KB to image which is much better, this alone gets memcheck working, as an aside we might need same solution for other tools e.g. helgrind etc. when needed, they also have leading libraries installed (From OE-Core rev: 23da8f50b1e0a74777035c9f7b65b81456908f9f) (From OE-Core rev: 49e38e029a21c02ca44d6db1bc91190f7c6e11ca) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind_3.14.0.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb
index 97e58a446a..50f8221ebb 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb
@@ -96,6 +96,19 @@ do_install_append () {
96 96
97TUNE = "${@strip_mcpu(d)}" 97TUNE = "${@strip_mcpu(d)}"
98 98
99VALGRINDARCH ?= "${TARGET_ARCH}"
100VALGRINDARCH_aarch64 = "arm64"
101VALGRINDARCH_x86-64 = "amd64"
102VALGRINDARCH_x86 = "x86"
103VALGRINDARCH_mips = "mips32"
104VALGRINDARCH_mipsel = "mips32"
105VALGRINDARCH_mips64el = "mips64"
106VALGRINDARCH_powerpc = "ppc"
107VALGRINDARCH_powerpc64 = "ppc64"
108VALGRINDARCH_powerpc64el = "ppc64le"
109
110INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so"
111
99RDEPENDS_${PN} += "perl" 112RDEPENDS_${PN} += "perl"
100 113
101# valgrind needs debug information for ld.so at runtime in order to 114# valgrind needs debug information for ld.so at runtime in order to