gcc-package-sdk: skip stripping *.py files
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 25 Jun 2010 02:14:31 +0000 (02:14 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 25 Jun 2010 13:13:12 +0000 (15:13 +0200)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@openembedded.org>
recipes/gcc/gcc-package-sdk.inc

index dd32ec7..014897a 100644 (file)
@@ -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
 }