summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2024-01-22 13:00:41 +0100
committerFelix Fietkau <nbd@nbd.name>2024-01-22 13:01:31 +0100
commit7ad6e8c312d0f46b8c4aca86aee15aaad46f1191 (patch)
tree14ec7aeee71c2d7ad1dc3b294b4ce8aab614fb52 /scripts
parentfd46680966e9b9bc282b665282e2e6a22a27c26e (diff)
downloadopenwrt-7ad6e8c312d0f46b8c4aca86aee15aaad46f1191.tar.gz
openwrt-7ad6e8c312d0f46b8c4aca86aee15aaad46f1191.tar.bz2
openwrt-7ad6e8c312d0f46b8c4aca86aee15aaad46f1191.zip
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 <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rstrip.sh2
1 files changed, 1 insertions, 1 deletions
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=":"