diff --git a/scripts/build b/scripts/build index 13a3545078..20c804ca89 100755 --- a/scripts/build +++ b/scripts/build @@ -488,7 +488,7 @@ if [ "$TARGET" = "target" -o "$TARGET" = "init" ]; then if [ "$TARGET" = "init" ]; then $STRIP $(find $INSTALL -type f -name "*.so*" 2>/dev/null) 2>/dev/null || : fi - $STRIP $(find $INSTALL/bin $INSTALL/usr/bin $INSTALL/sbin $INSTALL/usr/sbin \ + $STRIP $(find $INSTALL ! -name "*.so*" ! -name "*.ko" \ -type f -executable 2>/dev/null) 2>/dev/null || : fi fi