projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scripts: gen-dependencies.sh: fix kmod dependency generation
[openwrt/openwrt.git]
/
scripts
/
gen-dependencies.sh
diff --git
a/scripts/gen-dependencies.sh
b/scripts/gen-dependencies.sh
index 85962e74b2a24b9d8583cb7a0de5fdb2fb078d58..567fe151a03f5920ea43412a217d523aced62cb4 100755
(executable)
--- 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 | \
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
done | sort -u
rm -f $tmp