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

Commit a77ed525 authored by Benjamin Poirier's avatar Benjamin Poirier Committed by Steven Rostedt
Browse files

localmodconfig: Fix parsing of "help" text

Help text may start with "help" or "---help---". This patch fixes
read_kconfig() to recognize the second variant.

This removes useless junk from %depends and %selects. That junk is due to
help text that contains the words "selects" and "depends".

Link: http://lkml.kernel.org/r/1460333193-16361-2-git-send-email-bpoirier@suse.com



Signed-off-by: default avatarBenjamin Poirier <bpoirier@suse.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 27b71568
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ sub read_kconfig {
	    $iflevel-- if ($iflevel);

	# stop on "help" and keywords that end a menu entry
	} elsif (/^\s*help\s*$/ || /^(comment|choice|menu)\b/) {
	} elsif (/^\s*(---)?help(---)?\s*$/ || /^(comment|choice|menu)\b/) {
	    $state = "NONE";
	}
    }