Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] binutils: package libbfd seperately
@ 2017-05-02 19:20 Cody P Schafer
  0 siblings, 0 replies; only message in thread
From: Cody P Schafer @ 2017-05-02 19:20 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/recipes-devtools/binutils/binutils.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 7efe13fdf6..068dce8ee0 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -21,6 +21,10 @@ EXTRANATIVEPATH_append_class-target = " chrpath-native"
 
 inherit autotools gettext multilib_header texinfo
 
+# Split out libbfd-*.so so including perf doesn't include extra stuff
+PACKAGE_BEFORE_PN += "libbfd"
+FILES_libbfd = "${libdir}/libbfd-*.so"
+
 FILES_${PN} = " \
 	${bindir}/${TARGET_PREFIX}* \
 	${libdir}/lib*-*.so \
-- 
2.12.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-02 19:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-02 19:20 [PATCH] binutils: package libbfd seperately Cody P Schafer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox