From: Ralph Hempel Date: Mon, 2 Mar 2009 17:33:02 +0000 (+0000) Subject: strip relocatable binaries (not depending on the extension) X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=d499c25b041583ddb8128d13df304af928070e57;p=15.05%2Fopenwrt.git strip relocatable binaries (not depending on the extension) ( thanks to Thomas ) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14726 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 6dd44f2ed2..5efc866524 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"