浏览代码

kconfig: fix savedefconfig to handle TPL correctly

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>
Masahiro Yamada 10 年之前
父节点
当前提交
dee745bf3d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/multiconfig.sh

+ 3 - 3
scripts/multiconfig.sh

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