Skip to content

Commit 90edd30

Browse files
David Huntermasahir0y
authored andcommitted
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 <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent f16c8c0 commit 90edd30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kconfig/streamline_config.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ sub read_kconfig {
220220
$depends{$config} = $1;
221221
} elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) {
222222
$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.*)$/) {
224224
my $dep = $3;
225225
if ($dep !~ /^\s*(y|m|n)\s*$/) {
226226
$dep =~ s/.*\sif\s+//;

0 commit comments

Comments
 (0)