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)
commite09cec721ec300f7bd4052d72894277f36eeb994
tree5eb28d8f4f90ac45ec7c1aa03b84d6de8ef8b054
parent3609351bdee061722deea92460c17bbda70c7851
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44206 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/gen-dependencies.sh