Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

streamline_config.pl: ensure all defaults are tracked

Track default options on the second line. On the second line of some
config entries, default and dependency options sometimes appear. In those
instances, the state will be "NEW" and not "DEP".

Signed-off-by: David Hunter <david.hunter.linux@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

David Hunter and committed by
Masahiro Yamada
90edd30b f16c8c08

+1 -1
+1 -1
scripts/kconfig/streamline_config.pl
··· 220 220 $depends{$config} = $1; 221 221 } elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) { 222 222 $depends{$config} .= " " . $1; 223 - } elsif ($state eq "DEP" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { 223 + } elsif ($state ne "NONE" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { 224 224 my $dep = $3; 225 225 if ($dep !~ /^\s*(y|m|n)\s*$/) { 226 226 $dep =~ s/.*\sif\s+//;