summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hunter <david.hunter.linux@gmail.com>2024-10-14 17:13:32 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-06 02:46:33 +0300
commit90edd30b8696833a995ab6196a6bee70fb9fcf2c (patch)
tree6ca72071c4904e889fff4980e598a3dcbfa7462f
parentf16c8c08185420092d04edce6066eaf4a454bb20 (diff)
downloadlinux-90edd30b8696833a995ab6196a6bee70fb9fcf2c.tar.xz
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>
-rwxr-xr-xscripts/kconfig/streamline_config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index a85d6a3108a1..85f4712e2bf3 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -220,7 +220,7 @@ sub read_kconfig {
$depends{$config} = $1;
} elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) {
$depends{$config} .= " " . $1;
- } elsif ($state eq "DEP" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) {
+ } elsif ($state ne "NONE" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) {
my $dep = $3;
if ($dep !~ /^\s*(y|m|n)\s*$/) {
$dep =~ s/.*\sif\s+//;