Author: jow Date: 2015-01-29 22:59:10 +0100 (Thu, 29 Jan 2015) New Revision: 44206
Modified: trunk/scripts/gen-dependencies.sh Log: 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 <[email protected]> Modified: trunk/scripts/gen-dependencies.sh =================================================================== --- trunk/scripts/gen-dependencies.sh 2015-01-29 21:59:03 UTC (rev 44205) +++ trunk/scripts/gen-dependencies.sh 2015-01-29 21:59:10 UTC (rev 44206) @@ -28,8 +28,6 @@ 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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
