aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/streamline_config.pl
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2013-04-29 15:17:40 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-04-29 15:17:40 -0400
commitbc20d12eca43028548e5a4f655c2070e57bede1c (patch)
treeb05f28e9bb9b0b72273b4f5ca878e7961807a838 /scripts/kconfig/streamline_config.pl
parentc1be5a5b1b355d40e6cf79cc979eb66dafa24ad1 (diff)
localmodconfig: Add debug prints for dependencies of module configs
When a config for a module is added to the list to save in the final config file, add a print to show what dependencies are used. This is useful to debug when a config is disabled by the make oldconfig after localmodconfig is finished. This print only appears if the environment variable LOCALMODCONFIG_DEBUG is defined. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/kconfig/streamline_config.pl')
-rw-r--r--scripts/kconfig/streamline_config.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index 33689396953a..343a56863660 100644
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -396,6 +396,15 @@ foreach my $module (keys(%modules)) {
396 foreach my $conf (@arr) { 396 foreach my $conf (@arr) {
397 $configs{$conf} = $module; 397 $configs{$conf} = $module;
398 dprint "$conf added by direct ($module)\n"; 398 dprint "$conf added by direct ($module)\n";
399 if ($debugprint) {
400 my $c=$conf;
401 $c =~ s/^CONFIG_//;
402 if (defined($depends{$c})) {
403 dprint " deps = $depends{$c}\n";
404 } else {
405 dprint " no deps\n";
406 }
407 }
399 } 408 }
400 } else { 409 } else {
401 # Most likely, someone has a custom (binary?) module loaded. 410 # Most likely, someone has a custom (binary?) module loaded.