diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2009-04-30 12:15:10 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2009-08-18 21:58:54 -0400 |
| commit | 744ffcbe867b81e9f467503c85bc5e4f9a586294 (patch) | |
| tree | 724f067dc72301a7969ba6c89bfbfa724943a439 /scripts | |
| parent | ea2c1894b66301bce565471d6914d49ce91ee015 (diff) | |
kconfig: enable CONFIG_IKCONFIG from streamline_config.pl
Ingo Molnar suggested that the streamline_config.pl should enable
CONFIG_IKCONFIG to keep the current config in the kernel.
Then we can use scripts/extract-ikconfig to find the current
modules.
This patch changes streamline_config.pl to check if CONFIG_IKCONFIG
is not set, and if it is not, it enables it to be a module.
[ Impact: make current config options easier to find ]
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/streamline_config.pl | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index caac952212ef..233464185a92 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl | |||
| @@ -256,18 +256,31 @@ my %setconfigs; | |||
| 256 | # Finally, read the .config file and turn off any module enabled that | 256 | # Finally, read the .config file and turn off any module enabled that |
| 257 | # we could not find a reason to keep enabled. | 257 | # we could not find a reason to keep enabled. |
| 258 | while(<CIN>) { | 258 | while(<CIN>) { |
| 259 | if (/^(CONFIG.*)=(m|y)/) { | 259 | |
| 260 | if (defined($configs{$1})) { | 260 | if (/CONFIG_IKCONFIG/) { |
| 261 | $setconfigs{$1} = $2; | 261 | if (/# CONFIG_IKCONFIG is not set/) { |
| 262 | print; | 262 | # enable IKCONFIG at least as a module |
| 263 | } elsif ($2 eq "m") { | 263 | print "CONFIG_IKCONFIG=m\n"; |
| 264 | print "# $1 is not set\n"; | 264 | # don't ask about PROC |
| 265 | } else { | 265 | print "# CONFIG_IKCONFIG is not set\n"; |
| 266 | print; | 266 | } else { |
| 267 | } | 267 | print; |
| 268 | } | ||
| 269 | next; | ||
| 270 | } | ||
| 271 | |||
| 272 | if (/^(CONFIG.*)=(m|y)/) { | ||
| 273 | if (defined($configs{$1})) { | ||
| 274 | $setconfigs{$1} = $2; | ||
| 275 | print; | ||
| 276 | } elsif ($2 eq "m") { | ||
| 277 | print "# $1 is not set\n"; | ||
| 268 | } else { | 278 | } else { |
| 269 | print; | 279 | print; |
| 270 | } | 280 | } |
| 281 | } else { | ||
| 282 | print; | ||
| 283 | } | ||
| 271 | } | 284 | } |
| 272 | close(CIN); | 285 | close(CIN); |
| 273 | 286 | ||
