summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorDavid Hunter <david.hunter.linux@gmail.com>2024-10-14 16:13:32 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-06 00:46:33 +0100
commit90edd30b8696833a995ab6196a6bee70fb9fcf2c (patch)
tree6ca72071c4904e889fff4980e598a3dcbfa7462f /scripts/kconfig
parentstreamline_config.pl: fix missing variable operator in debug print (diff)
downloadlinux-90edd30b8696833a995ab6196a6bee70fb9fcf2c.tar.xz
linux-90edd30b8696833a995ab6196a6bee70fb9fcf2c.zip
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>
Diffstat (limited to 'scripts/kconfig')
-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+//;