[oe-commits] Richard Purdie : gcc-cross-canadian: Enable stripping and packaging of binaries

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 11:10:15 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 6cc2985e454de25e2ea7561745107beb7943e496
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6cc2985e454de25e2ea7561745107beb7943e496

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Mar 20 10:38:37 2015 +0000

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

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

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index 0f79533..750a4f2 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -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} \



More information about the Openembedded-commits mailing list