]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
kconfig: fix savedefconfig to handle TPL correctly
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 3 Sep 2014 20:41:33 +0000 (05:41 +0900)
committerTom Rini <trini@ti.com>
Tue, 16 Sep 2014 16:23:58 +0000 (12:23 -0400)
Since 3ff291f371fa9858426774f3732924bacb61ed1c
(kconfig: convert Kconfig helper script into a shell script),
"make savedefconfig" of TPL boards has not been working.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.o.rg
Acked-by: Simon Glass <sjg@chromium.org>
scripts/multiconfig.sh

index 7606193102451a11f0906ae67993b54c1a8a3e52..a5790428c852422a3d330e4d7089afa818737c92 100644 (file)
@@ -194,14 +194,14 @@ do_savedefconfig () {
                        for i in $output_lines
                        do
                                case "$i" in
-                               "[+A-Z]*:$line")
+                               [+A-Z]*:$line)
                                        tmp="$tmp%$unmatched"
                                        i=$(echo "$i" | \
-                                           sed -e "s/^\([^:]\)*/\1$symbol/")
+                                           sed -e "s/^\([^:]*\)/\1$symbol/")
                                        tmp="$tmp%$i"
                                        match=1
                                        ;;
-                               "$line")
+                               $line)
                                        tmp="$tmp%$unmatched"
                                        tmp="$tmp%+$symbol:$i"
                                        match=1