From 834e11c9d0d9725ed187752f985b16758979e82e Mon Sep 17 00:00:00 2001 From: kszaq Date: Mon, 13 May 2019 21:05:10 +0200 Subject: [PATCH] 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. --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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