X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fgen-dependencies.sh;h=85962e74b2a24b9d8583cb7a0de5fdb2fb078d58;hb=438fc0bd98e5ef97c8d683f4fef4cd41985d4fda;hp=f324ba6c44172fbe7be66c2619189175b2a4325e;hpb=d2f3ca4c6e48070cc7c14b3a4821793220e36b3c;p=openwrt.git diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index f324ba6c44..85962e74b2 100755 --- a/scripts/gen-dependencies.sh +++ b/scripts/gen-dependencies.sh @@ -20,7 +20,7 @@ XARGS="${XARGS:-xargs -r}" find $TARGETS -type f -a -exec file {} \; | \ sed -n -e 's/^\(.*\):.*ELF.*\(executable\|shared object\).*,.* stripped/\1/p' | \ - $XARGS -n1 readelf -d | \ + $XARGS -n1 $READELF -d | \ awk '$2 ~ /NEEDED/ && $NF !~ /interpreter/ && $NF ~ /^\[?lib.*\.so/ { gsub(/[\[\]]/, "", $NF); print $NF }' | \ sort -u @@ -31,4 +31,5 @@ for kmod in `find $TARGETS -type f -name \*.ko`; do egrep -a '^depends=' | \ sed -e 's,^depends=,,' -e 's/,/\n/g' | \ awk '{ print $1 ".ko" }' -done +done | sort -u +rm -f $tmp