projects
/
openwrt
/
staging
/
yousong.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scripts: fix 64bit uclibc external toolchain detection
[openwrt/staging/yousong.git]
/
scripts
/
gen-dependencies.sh
diff --git
a/scripts/gen-dependencies.sh
b/scripts/gen-dependencies.sh
index 889255a16731807cc7ad8bee8e7478b8dbb24db4..c6b6f75f55dcd80a813ae0afd3be63a4cb88ad98 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" }'
- rm -f $tmp
+ sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }'
done | sort -u
done | sort -u
+rm -f $tmp