From: Cody P Schafer Date: Tue, 2 May 2017 19:20:35 +0000 (-0400) Subject: binutils: package libbfd seperately X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21407 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d57109e44f1a32d0e39d250ad7e71d7d80757d35;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git binutils: package libbfd seperately Some tools (my issue was with 'perf') only need the libbfd component of binutils, so we can save space in images by splitting it out. Previously, instead of `perf` pulling in `libbfd-VERSION.so`, it pulled in all the libraries and binaries from binutils. Signed-off-by: Cody P Schafer Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/binutils/binutils_2.28.bb b/meta/recipes-devtools/binutils/binutils_2.28.bb index b51437bbc38..51a9748906a 100644 --- a/meta/recipes-devtools/binutils/binutils_2.28.bb +++ b/meta/recipes-devtools/binutils/binutils_2.28.bb @@ -42,4 +42,8 @@ do_install_class-native () { rmdir ${D}/${libdir}64 || : } +# Split out libbfd-*.so so including perf doesn't include extra stuff +PACKAGE_BEFORE_PN += "libbfd" +FILES_libbfd = "${libdir}/libbfd-*.so" + BBCLASSEXTEND = "native nativesdk"