MAKEALL: allow regex matches for -s option

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@nvidia.com>
This commit is contained in:
Stephen Warren 2013-03-05 11:15:01 +00:00 committed by Tom Rini
parent 8b906a9f0b
commit f32c08da82
1 changed files with 2 additions and 2 deletions

View File

@ -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 ;;