[oe-commits] Martin Jansa : gcc-package-sdk: skip stripping *.py files

git version control git at git.openembedded.org
Fri Jun 25 13:13:30 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: e1f208e7e1d90a76a91f8ef97d9f72705f595e29
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e1f208e7e1d90a76a91f8ef97d9f72705f595e29

Author: Martin Jansa <martin.jansa at gmail.com>
Date:   Fri Jun 25 02:14:31 2010 +0000

gcc-package-sdk: skip stripping *.py files

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 recipes/gcc/gcc-package-sdk.inc |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/recipes/gcc/gcc-package-sdk.inc b/recipes/gcc/gcc-package-sdk.inc
index dd32ec7..014897a 100644
--- a/recipes/gcc/gcc-package-sdk.inc
+++ b/recipes/gcc/gcc-package-sdk.inc
@@ -55,8 +55,14 @@ do_install () {
 	# Manually run the target stripper since we won't get it run by
 	# the packaging.
 	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.*
+		for soFile in ${D}${prefix}/${TARGET_SYS}/lib/libstdc++.so.* ${D}${prefix}/${TARGET_SYS}/lib/libg2c.so.* ${D}${prefix}/${TARGET_SYS}/lib/libgcc_s.so.*; do
+			if echo ${soFile} | grep '.py$' ; then 
+				echo "Not stripping .py file ${soFile}"
+			elif echo ${soFile} | grep '*' ; then 
+				echo "Not stripping non-existent mask ${soFile}"
+			else
+				${TARGET_PREFIX}strip ${soFile}
+			fi
+		done
 	fi
 }





More information about the Openembedded-commits mailing list