diff options
author | Roman Khimov <khimov@altell.ru> | 2010-04-18 22:41:40 +0000 |
---|---|---|
committer | Roman I Khimov <khimov@altell.ru> | 2010-04-25 17:13:15 +0400 |
commit | 23e874a12711ee156bba5f1bbcd9fa8dd3f2ef83 (patch) | |
tree | 54e0523244d3710850111f6c95b1a1c62923ad14 /recipes/gcc | |
parent | dd7c2be839a8db7d4afaab6e700b4f81c24fb489 (diff) |
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')
-rw-r--r-- | recipes/gcc/gcc-package-cross.inc | 8 | ||||
-rw-r--r-- | recipes/gcc/gcc-package-sdk.inc | 8 |
2 files changed, 8 insertions, 8 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 diff --git a/recipes/gcc/gcc-package-sdk.inc b/recipes/gcc/gcc-package-sdk.inc index dcf2c890e4..dd32ec7561 100644 --- a/recipes/gcc/gcc-package-sdk.inc +++ b/recipes/gcc/gcc-package-sdk.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" # Having anything auto depending on gcc-cross-sdk is a really bad idea... EXCLUDE_FROM_SHLIBS = "1" @@ -54,7 +54,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}${prefix}/${TARGET_SYS}/lib/libstdc++.so.* ${TARGET_PREFIX}strip ${D}${prefix}/${TARGET_SYS}/lib/libg2c.so.* || true ${TARGET_PREFIX}strip ${D}${prefix}/${TARGET_SYS}/lib/libgcc_s.so.* |