Skip to content

Commit

Permalink
kconfig: do not warn about modules built in
Browse files Browse the repository at this point in the history
The streamline_config.pl finds all the configs that are needed to
compile the currently loaded modules. After it creates the .config
file, it tests to make sure all the configs that are needed were
set.

It only looks at the configs that are modules, it does not look
at the builtin configs. This causes unnecessary warnings about modules
not being covered.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Aug 19, 2009
1 parent 74398d3 commit ea2c189
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
@@ -256,12 +256,14 @@ sub parse_config_dep_select
# Finally, read the .config file and turn off any module enabled that
# we could not find a reason to keep enabled.
while(<CIN>) {
if (/^(CONFIG.*)=m/) {
if (/^(CONFIG.*)=(m|y)/) {
if (defined($configs{$1})) {
$setconfigs{$1} = 1;
$setconfigs{$1} = $2;
print;
} else {
} elsif ($2 eq "m") {
print "# $1 is not set\n";
} else {
print;
}
} else {
print;

0 comments on commit ea2c189

Please sign in to comment.