[oe-commits] [openembedded-core] 83/92: valgrind: Skip vgpreload_memcheck shared object from stripping

git at git.openembedded.org git at git.openembedded.org
Tue Jan 8 20:20:41 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch thud
in repository openembedded-core.

commit 49e38e029a21c02ca44d6db1bc91190f7c6e11ca
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Mon Dec 3 20:51:35 2018 -0800

    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)
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/recipes-devtools/valgrind/valgrind_3.14.0.bb | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.14.0.bb
index 97e58a4..50f8221 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 () {
 
 TUNE = "${@strip_mcpu(d)}"
 
+VALGRINDARCH ?= "${TARGET_ARCH}"
+VALGRINDARCH_aarch64 = "arm64"
+VALGRINDARCH_x86-64 = "amd64"
+VALGRINDARCH_x86 = "x86"
+VALGRINDARCH_mips = "mips32"
+VALGRINDARCH_mipsel = "mips32"
+VALGRINDARCH_mips64el = "mips64"
+VALGRINDARCH_powerpc = "ppc"
+VALGRINDARCH_powerpc64 = "ppc64"
+VALGRINDARCH_powerpc64el = "ppc64le"
+
+INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so"
+
 RDEPENDS_${PN} += "perl"
 
 # valgrind needs debug information for ld.so at runtime in order to

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list