提交 a77ed525 编写于 作者: B Benjamin Poirier 提交者: Steven Rostedt

localmodconfig: Fix parsing of "help" text

Help text may start with "help" or "---help---". This patch fixes
read_kconfig() to recognize the second variant.

This removes useless junk from %depends and %selects. That junk is due to
help text that contains the words "selects" and "depends".

Link: http://lkml.kernel.org/r/1460333193-16361-2-git-send-email-bpoirier@suse.comSigned-off-by: NBenjamin Poirier <bpoirier@suse.com>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 27b71568
...@@ -257,7 +257,7 @@ sub read_kconfig { ...@@ -257,7 +257,7 @@ sub read_kconfig {
$iflevel-- if ($iflevel); $iflevel-- if ($iflevel);
# stop on "help" and keywords that end a menu entry # stop on "help" and keywords that end a menu entry
} elsif (/^\s*help\s*$/ || /^(comment|choice|menu)\b/) { } elsif (/^\s*(---)?help(---)?\s*$/ || /^(comment|choice|menu)\b/) {
$state = "NONE"; $state = "NONE";
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册