projects
/
openwrt
/
staging
/
ldir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd46680
)
scripts/rstrip.sh: ignore /lib/firmware
author
Felix Fietkau
<nbd@nbd.name>
Mon, 22 Jan 2024 12:00:41 +0000
(13:00 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 22 Jan 2024 12:01:31 +0000
(13:01 +0100)
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>
scripts/rstrip.sh
patch
|
blob
|
history
diff --git
a/scripts/rstrip.sh
b/scripts/rstrip.sh
index e47960a941ae203810fc26f003d44d6df1b075ce..2aa7e96fdac6fb8af02f04a29a3cbb146a545cda 100755
(executable)
--- 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=":"