From: Felix Fietkau Date: Mon, 22 Jan 2024 12:00:41 +0000 (+0100) Subject: scripts/rstrip.sh: ignore /lib/firmware X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7ad6e8c312d0f46b8c4aca86aee15aaad46f1191;p=openwrt%2Fstaging%2Fblocktrron.git scripts/rstrip.sh: ignore /lib/firmware On some platforms, some firmware files might look like executables. These need to be ignored in order to avoid messing them up. Signed-off-by: Felix Fietkau --- diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index e47960a941..2aa7e96fda 100755 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -20,7 +20,7 @@ TARGETS=$* exit 1 } -find $TARGETS -type f -a -exec file {} \; | \ +find $TARGETS -not -path \*/lib/firmware/\* -a -type f -a -exec file {} \; | \ sed -n -e 's/^\(.*\):.*ELF.*\(executable\|relocatable\|shared object\).*,.*/\1:\2/p' | \ ( IFS=":"