]> code.ossystems Code Review - openembedded-core.git/commitdiff
binutils: package libbfd seperately
authorCody P Schafer <dev@codyps.com>
Tue, 2 May 2017 19:20:35 +0000 (15:20 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 May 2017 13:01:39 +0000 (14:01 +0100)
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 <dev@codyps.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/binutils/binutils_2.28.bb

index b51437bbc38193a0ed0ce6e09c7c3335c4fdef27..51a9748906ab7de519aaed5228f572b95d182262 100644 (file)
@@ -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"