Skip to content

Commit

Permalink
kconfig: Have streamline_config process menuconfigs too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and rostedt committed Oct 29, 2010
1 parent 20d1904 commit 8ef17fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ sub read_kconfig {
}

# configs found
if (/^\s*config\s+(\S+)\s*$/) {
if (/^\s*(menu)?config\s+(\S+)\s*$/) {
$state = "NEW";
$config = $1;
$config = $2;

for (my $i = 0; $i < $iflevel; $i++) {
if ($i) {
Expand Down

0 comments on commit 8ef17fa

Please sign in to comment.