Skip to contentSkip to conversation

gcc-cross-canadian: Enable stripping and packaging of binaries

PATCH New Richard Purdie 1 participant 1 message Mar 20, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc-cross-canadian: Enable stripping and packaging of binaries

This seems to have been disabled since the dawn of time for now good reason. Enable the .debug stripping and packaging allowing for a smaller SDK.

meta/recipes-devtools/gcc/gcc-cross-canadian.inc +6 -3
index 0f79533..750a4f2 100644
@@ -62,12 +62,10 @@ do_compile () {
 	oe_runmake all-host configure-target-libgcc
 }
 
-INHIBIT_PACKAGE_STRIP = "1"
-
 # Having anything auto depending on gcc-cross-sdk is a really bad idea...
 EXCLUDE_FROM_SHLIBS = "1"
 
-PACKAGES = "${PN} ${PN}-doc"
+PACKAGES = "${PN}-dbg ${PN} ${PN}-doc"
 
 FILES_${PN} = "\
     ${exec_prefix}/bin/* \
@@ -86,6 +84,11 @@ FILES_${PN} = "\
 "
 INSANE_SKIP_${PN} += "dev-so"
 
+FILES_${PN}-dbg += " \
+    ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/.debug \
+    ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/plugin/.debug \
+"
+
 FILES_${PN}-doc = "\
     ${infodir} \
     ${mandir} \