Commit f32c08da82eed03d2d1a00f141f531db58330f93

Authored by Stephen Warren
Committed by Tom Rini
1 parent 8b906a9f0b

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -104,9 +104,9 @@
104 104 -s|--soc)
105 105 # echo "Option SoC: argument \`$2'"
106 106 if [ "$opt_s" ] ; then
107   - opt_s="${opt_s%)} || \$6 == \"$2\")"
  107 + opt_s="${opt_s%)} || \$6 == \"$2\" || \$6 ~ /$2/)"
108 108 else
109   - opt_s="(\$6 == \"$2\")"
  109 + opt_s="(\$6 == \"$2\" || \$6 ~ /$2/)"
110 110 fi
111 111 SELECTED='y'
112 112 shift 2 ;;