kconfig: Have streamline_config process menuconfigs too
authorSteven Rostedt <srostedt@redhat.com>
Fri, 29 Oct 2010 02:21:57 +0000 (22:21 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Oct 2010 05:07:23 +0000 (01:07 -0400)
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>
scripts/kconfig/streamline_config.pl

index ebba407ac5ebbde9fa990797303d223fa3457ffa..fd81fc33d6338858fc8352c82034937f26010ce8 100644 (file)
@@ -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) {