scripts: gen-dependencies.sh: fix kmod dependency generation
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 29 Jan 2015 21:59:10 +0000 (21:59 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 29 Jan 2015 21:59:10 +0000 (21:59 +0000)
commit1df0a4df3bfac4b69a0b3861221efbefa34977e5
tree5eb28d8f4f90ac45ec7c1aa03b84d6de8ef8b054
parentd86096c47ffc40888cb2514ec581d87e8f01d556
scripts: gen-dependencies.sh: fix kmod dependency generation

Do not output faulty ".ko" dependency if a scanned .ko file has an empty
"depends=" specification, also replace the `grep | sed | awk` chain with a
single sed program.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44206
scripts/gen-dependencies.sh