Merge pull request #3509 from kszaq/topic/strip_executables

scripts/build: strip all executables in /usr
This commit is contained in:
MilhouseVH 2019-05-22 19:41:52 +03:00 committed by GitHub
commit 8d274fbb7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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