diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-10-28 22:21:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-10-29 01:07:23 -0400 |
commit | 8ef17fa2ef8be74b946e725c2afb0e2a54981da1 (patch) | |
tree | f1b2d0a064fbabd8f502406d03fba61afeba7adc /scripts/kconfig | |
parent | 20d190473328b90755eb2434cf2d26b73a53ef23 (diff) |
kconfig: Have streamline_config process menuconfigs too
Some menuconfigs in the Kconfig files have prompts and dependencies.
Currently, streamline_config misses these, and this can cause
streamline_config to keep modules enabled that should not be, and
even worse, not enable those that should.
This patch makes streamline_config process menuconfigs just like it
would process a config.
Reported-by: member graysky <graysky@archlinux.us>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/streamline_config.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index ebba407ac5eb..fd81fc33d633 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl | |||
@@ -174,9 +174,9 @@ sub read_kconfig { | |||
174 | } | 174 | } |
175 | 175 | ||
176 | # configs found | 176 | # configs found |
177 | if (/^\s*config\s+(\S+)\s*$/) { | 177 | if (/^\s*(menu)?config\s+(\S+)\s*$/) { |
178 | $state = "NEW"; | 178 | $state = "NEW"; |
179 | $config = $1; | 179 | $config = $2; |
180 | 180 | ||
181 | for (my $i = 0; $i < $iflevel; $i++) { | 181 | for (my $i = 0; $i < $iflevel; $i++) { |
182 | if ($i) { | 182 | if ($i) { |