X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fgen-dependencies.sh;h=c6b6f75f55dcd80a813ae0afd3be63a4cb88ad98;hb=6ba0253ad26efa97eb3485d8af01bdbe1d01cf07;hp=85962e74b2a24b9d8583cb7a0de5fdb2fb078d58;hpb=227b3b2d614c1d034feb85d2de79d7417d33c10e;p=openwrt.git diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index 85962e74b2..c6b6f75f55 100755 --- a/scripts/gen-dependencies.sh +++ b/scripts/gen-dependencies.sh @@ -28,8 +28,6 @@ tmp=`mktemp $TMP_DIR/dep.XXXXXXXX` for kmod in `find $TARGETS -type f -name \*.ko`; do $OBJCOPY -O binary -j .modinfo $kmod $tmp sed -e 's,\x00,\n,g' $tmp | \ - egrep -a '^depends=' | \ - sed -e 's,^depends=,,' -e 's/,/\n/g' | \ - awk '{ print $1 ".ko" }' + sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }' done | sort -u rm -f $tmp