]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MAKEALL: allow regex matches for -s option
authorStephen Warren <swarren@nvidia.com>
Tue, 5 Mar 2013 11:15:01 +0000 (11:15 +0000)
committerTom Rini <trini@ti.com>
Wed, 27 Mar 2013 19:29:32 +0000 (15:29 -0400)
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>
MAKEALL

diff --git a/MAKEALL b/MAKEALL
index c1d895725643f41ae7a0cbaffbe693033bc9f472..91fa495ea7f43ce2b7edb6ca6ca5b8d0d8ebd643 100755 (executable)
--- 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 ;;