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

Commit 8ef17fa2 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

kconfig: Have streamline_config process menuconfigs too



Some menuconfigs in the Kconfig files have prompts and dependencies.
Currently, streamline_config misses these, and this can cause
streamline_config to keep modules enabled that should not be, and
even worse, not enable those that should.

This patch makes streamline_config process menuconfigs just like it
would process a config.

Reported-by: default avatarmember graysky <graysky@archlinux.us>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 20d19047
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -174,9 +174,9 @@ sub read_kconfig {
	}

	# configs found
	if (/^\s*config\s+(\S+)\s*$/) {
	if (/^\s*(menu)?config\s+(\S+)\s*$/) {
	    $state = "NEW";
	    $config = $1;
	    $config = $2;

	    for (my $i = 0; $i < $iflevel; $i++) {
		if ($i) {