Procházet zdrojové kódy

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 <[email protected]>
Felix Fietkau před 1 rokem
rodič
revize
7ad6e8c312
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      scripts/rstrip.sh

+ 1 - 1
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=":"