Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 744ffcb

Browse files
Steven Rostedtrostedt
authored andcommitted
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>
1 parent ea2c189 commit 744ffcb

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

scripts/kconfig/streamline_config.pl

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,31 @@ sub parse_config_dep_select
256256
# Finally, read the .config file and turn off any module enabled that
257257
# we could not find a reason to keep enabled.
258258
while(<CIN>) {
259-
if (/^(CONFIG.*)=(m|y)/) {
260-
if (defined($configs{$1})) {
261-
$setconfigs{$1} = $2;
262-
print;
263-
} elsif ($2 eq "m") {
264-
print "# $1 is not set\n";
265-
} else {
266-
print;
267-
}
259+
260+
if (/CONFIG_IKCONFIG/) {
261+
if (/# CONFIG_IKCONFIG is not set/) {
262+
# enable IKCONFIG at least as a module
263+
print "CONFIG_IKCONFIG=m\n";
264+
# don't ask about PROC
265+
print "# CONFIG_IKCONFIG is not set\n";
266+
} else {
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";
268278
} else {
269-
print;
279+
print;
270280
}
281+
} else {
282+
print;
283+
}
271284
}
272285
close(CIN);
273286

0 commit comments

Comments
 (0)