diff --git a/bcmkernel/scripts/rstrip_and_set_rpath.sh b/bcmkernel/scripts/rstrip_and_set_rpath.sh index b0f135132807f4171dbbe02b289f57d7fb90d61f..23aa29ec7faa98500cbd18711e8b555aaf9f46c8 100755 --- a/bcmkernel/scripts/rstrip_and_set_rpath.sh +++ b/bcmkernel/scripts/rstrip_and_set_rpath.sh @@ -1,12 +1,14 @@ #!/bin/sh -eux "$RSTRIP_SH" "$@" +# we want to run it on all ELF files for the target, but not on other ELF files such as WiFi firmware. +# by looking for executables bit for executables and for .so* for libraries we should catch everything find \ "$@" \ -type f \ -not -name 'ld-linux*.so*' \ '(' \ - -name '*.so' \ + -name '*.so*' \ -or \ -executable \ ')' \