aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/gen-dependencies.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh
index 85962e74b2..567fe151a0 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/gp; q }'
done | sort -u
rm -f $tmp