[U-Boot] [PATCH V2] MAKEALL: allow regex matches for -s option

Stephen Warren swarren at wwwdotorg.org
Wed Mar 27 18:51:25 CET 2013


From: Stephen Warren <swarren at nvidia.com>

This allows:

MAKEALL -s tegra

to replace:

MAKEALL -s tegra20 -s tegra30 -s tegra114

The following also works:

MAKEALL -s tegra -s omap

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
v2: Modified the commit description marginally to s/tegra*/tegra/ in the
first example MAKEALL command; it's a regex match so a substring, so the
* isn't needed. Also add the dual tegra/omap example command.

 MAKEALL |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index c1d8957..91fa495 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -104,9 +104,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