X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Frstrip.sh;h=5efc866524b8dd63dcc23a50f92383c29f1c8ed6;hb=90daea06850eaf6355748fb0574e516d4f261938;hp=6dd44f2ed272c65e84fbedc8d90a42d7dc627864;hpb=267cc36546d4741ed2b1bf63f6cae18bbfa3b2e2;p=openwrt.git 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"