[U-Boot] [PATCH] MAKEALL: allow regex matches for -s option
Stephen Warren
swarren at wwwdotorg.org
Tue Mar 5 22:15:01 CET 2013
From: Stephen Warren <swarren at nvidia.com>
This allows:
MAKEALL -s tegra*
to replace:
MAKEALL -s tegra20 -s tegra30 -s tegra114
Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
MAKEALL | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAKEALL b/MAKEALL
index 5b06c54..0ed6986 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -101,9 +101,9 @@ while true ; do
-s|--soc)
# echo "Option SoC: argument \`$2'"
if [ "$opt_s" ] ; then
- opt_s="${opt_s%)} || \$6 == \"$2\")"
+ opt_s="${opt_s%)} || \$6 == \"$2\" || \$6 ~ /$2/)"
else
- opt_s="(\$6 == \"$2\")"
+ opt_s="(\$6 == \"$2\" || \$6 ~ /$2/)"
fi
SELECTED='y'
shift 2 ;;
--
1.7.10.4
More information about the U-Boot
mailing list