aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-package-cross.inc
diff options
context:
space:
mode:
authorRoman Khimov <khimov@altell.ru>2010-04-18 22:41:40 +0000
committerRoman I Khimov <khimov@altell.ru>2010-04-25 17:13:15 +0400
commit23e874a12711ee156bba5f1bbcd9fa8dd3f2ef83 (patch)
tree54e0523244d3710850111f6c95b1a1c62923ad14 /recipes/gcc/gcc-package-cross.inc
parentdd7c2be839a8db7d4afaab6e700b4f81c24fb489 (diff)
downloadopenembedded-23e874a12711ee156bba5f1bbcd9fa8dd3f2ef83.tar.gz
change INHIBIT_PACKAGE_STRIP to PACKAGE_STRIP with more options
Originally approached with "package.bbclass: introduce KEEP_GNU_DEBUGLINK": http://patchwork.openembedded.org/patch/886/ Redone with a change from INHIBIT_PACKAGE_STRIP to PACKAGE_STRIP which allows more options. By default it does exactly the same thing as is done today, strips the binary, but keeps the gnu.debuglink section. When set to "no", stripping is not done at all, when set to "full" the gnu.debuglink section is not re-added to the binary. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'recipes/gcc/gcc-package-cross.inc')
-rw-r--r--recipes/gcc/gcc-package-cross.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/gcc/gcc-package-cross.inc b/recipes/gcc/gcc-package-cross.inc
index 0f918611cf..f23d7fd848 100644
--- a/recipes/gcc/gcc-package-cross.inc
+++ b/recipes/gcc/gcc-package-cross.inc
@@ -1,6 +1,6 @@
-INHIBIT_PACKAGE_STRIP ?= ""
-OLD_INHIBIT_PACKAGE_STRIP := "${INHIBIT_PACKAGE_STRIP}"
-INHIBIT_PACKAGE_STRIP = "1"
+PACKAGE_STRIP ?= ""
+OLD_PACKAGE_STRIP := "${PACKAGE_STRIP}"
+PACKAGE_STRIP = "no"
PACKAGES = "libgcc libssp libstdc++ libg2c libgfortran"
@@ -58,7 +58,7 @@ do_install () {
# Manually run the target stripper since we won't get it run by
# the packaging.
- if [ "x${OLD_INHIBIT_PACKAGE_STRIP}" != "x1" ]; then
+ if [ "x${OLD_PACKAGE_STRIP}" != "xno" ]; then
${TARGET_PREFIX}strip ${D}${target_libdir}/libstdc++.so.* || true
${TARGET_PREFIX}strip ${D}${target_libdir}/libg2c.so.* || true
${TARGET_PREFIX}strip ${D}${target_base_libdir}/libgcc_s.so.* || true