]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross-canadian: Enable stripping and packaging of binaries
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Mar 2015 10:38:37 +0000 (10:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Mar 2015 23:51:28 +0000 (23:51 +0000)
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@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-cross-canadian.inc

index 0f7953377176849f5565b8221e0c003e9b90b53a..750a4f2113a306c075831759ab877bdc68df7de5 100644 (file)
@@ -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} \