summaryrefslogtreecommitdiff
path: root/scripts/rstrip.sh
diff options
context:
space:
mode:
authorRalph Hempel <ralph.hempel@lantiq.com>2009-03-02 17:33:02 +0000
committerRalph Hempel <ralph.hempel@lantiq.com>2009-03-02 17:33:02 +0000
commit91042e02a79a015f3e6c949838ea1f7f0f1f9c69 (patch)
treefb21a3f1065e0dbab2b96f49698bcf6d1d3e5f36 /scripts/rstrip.sh
parentbb17a3dd1b846c2c4e782a826a6da52cc0a38802 (diff)
downloadmtk-20170518-91042e02a79a015f3e6c949838ea1f7f0f1f9c69.zip
mtk-20170518-91042e02a79a015f3e6c949838ea1f7f0f1f9c69.tar.gz
mtk-20170518-91042e02a79a015f3e6c949838ea1f7f0f1f9c69.tar.bz2
strip relocatable binaries (not depending on the extension) ( thanks to Thomas )
SVN-Revision: 14726
Diffstat (limited to 'scripts/rstrip.sh')
-rwxr-xr-xscripts/rstrip.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh
index 6dd44f2..5efc866 100755
--- a/scripts/rstrip.sh
+++ b/scripts/rstrip.sh
@@ -45,7 +45,7 @@ find $TARGETS -type f -a -exec file {} \; | \
IFS=":"
while read F S; do
echo "$SELF: $F:$S"
- [ "${F##*\.}" = "o" -o "${F##*\.}" = "ko" ] && {
+ [ "${S}" = "relocatable" ] && {
eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F"
} || {
eval "$STRIP $F"