diff options
-rw-r--r-- | scripts/kconfig/streamline_config.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 4606cdfb859d..31331723e810 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl | |||
@@ -219,6 +219,13 @@ sub read_kconfig { | |||
219 | $depends{$config} = $1; | 219 | $depends{$config} = $1; |
220 | } elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) { | 220 | } elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) { |
221 | $depends{$config} .= " " . $1; | 221 | $depends{$config} .= " " . $1; |
222 | } elsif ($state eq "DEP" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { | ||
223 | my $dep = $3; | ||
224 | if ($dep !~ /^\s*(y|m|n)\s*$/) { | ||
225 | $dep =~ s/.*\sif\s+//; | ||
226 | $depends{$config} .= " " . $dep; | ||
227 | dprint "Added default depends $dep to $config\n"; | ||
228 | } | ||
222 | 229 | ||
223 | # Get the configs that select this config | 230 | # Get the configs that select this config |
224 | } elsif ($state ne "NONE" && /^\s*select\s+(\S+)/) { | 231 | } elsif ($state ne "NONE" && /^\s*select\s+(\S+)/) { |