Commit 8ef17fa2ef8be74b946e725c2afb0e2a54981da1

Authored by Steven Rostedt
Committed by Steven Rostedt
1 parent 20d1904733

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

scripts/kconfig/streamline_config.pl
... ... @@ -174,9 +174,9 @@
174 174 }
175 175  
176 176 # configs found
177   - if (/^\s*config\s+(\S+)\s*$/) {
  177 + if (/^\s*(menu)?config\s+(\S+)\s*$/) {
178 178 $state = "NEW";
179   - $config = $1;
  179 + $config = $2;
180 180  
181 181 for (my $i = 0; $i < $iflevel; $i++) {
182 182 if ($i) {