]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - scripts/multiconfig.sh
kconfig: fix savedefconfig to handle TPL correctly
[karo-tx-uboot.git] / 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