scripts/build: strip all executables in /usr

Some packages install outside /usr/*bin, e.g. /usr/lib/bluetooth
and executables remain unstripped. Try to strip everything
executable except .ko and .so which are handled in separate cases.
This commit is contained in:
kszaq 2019-05-13 21:05:10 +02:00
parent 0fffb04df6
commit 834e11c9d0

View File

@ -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