summaryrefslogtreecommitdiff
path: root/scripts/kconfig/streamline_config.pl
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2016-04-11 03:06:30 +0300
committerSteven Rostedt <rostedt@goodmis.org>2016-04-26 17:04:42 +0300
commit27b7156886d875f2f54fab8790144e1fa80b7160 (patch)
treea6b27878227f21b6e07fe8e0a07dcde72c63060c /scripts/kconfig/streamline_config.pl
parent296471ad51780996d3b1f2dfb65bc4dbdea69a1e (diff)
downloadlinux-27b7156886d875f2f54fab8790144e1fa80b7160.tar.xz
localmodconfig: Recognize more keywords that end a menu entry
Based on the list in Documentation/kbuild/kconfig-language.txt This removes junk from %depends because parsing of a menu entry spilled over to another menu entry. Link: http://lkml.kernel.org/r/1460333193-16361-1-git-send-email-bpoirier@suse.com Signed-off-by: Benjamin Poirier <bpoirier@suse.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/kconfig/streamline_config.pl')
-rwxr-xr-xscripts/kconfig/streamline_config.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index 7036ae306db6..64d750cc5ae4 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -256,8 +256,8 @@ sub read_kconfig {
$iflevel-- if ($iflevel);
- # stop on "help"
- } elsif (/^\s*help\s*$/) {
+ # stop on "help" and keywords that end a menu entry
+ } elsif (/^\s*help\s*$/ || /^(comment|choice|menu)\b/) {
$state = "NONE";
}
}