X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fgen-dependencies.sh;h=c6b6f75f55dcd80a813ae0afd3be63a4cb88ad98;hb=a6be1acdd0bde0cc8b9ba2780ab11b7d65a23ed2;hp=889255a16731807cc7ad8bee8e7478b8dbb24db4;hpb=de59998265e872bde91f4167135d23040d0e1a5b;p=openwrt.git diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index 889255a167..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" }' - rm -f $tmp + sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }' done | sort -u +rm -f $tmp