diff options
-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 | ||