Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc20d12e authored by Steven Rostedt's avatar Steven Rostedt
Browse files

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent c1be5a5b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -396,6 +396,15 @@ foreach my $module (keys(%modules)) {
	foreach my $conf (@arr) {
	    $configs{$conf} = $module;
	    dprint "$conf added by direct ($module)\n";
	    if ($debugprint) {
		my $c=$conf;
		$c =~ s/^CONFIG_//;
		if (defined($depends{$c})) {
		    dprint " deps = $depends{$c}\n";
		} else {
		    dprint " no deps\n";
		}
	    }
	}
    } else {
	# Most likely, someone has a custom (binary?) module loaded.