Skip to contentSkip to conversation

binutils: package libbfd seperately

PATCH New Cody P Schafer 1 participant 1 message May 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-devtools/binutils/binutils.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/binutils/binutils.inc +4 -0
index 7efe13fdf6..068dce8ee0 100644
@@ -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 \
Signature · 1 line
2.12.2