Skip to content

Commit

Permalink
localmodconfig: Fix parsing of "help" text
Browse files Browse the repository at this point in the history
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/[email protected]

Signed-off-by: Benjamin Poirier <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
gobenji authored and rostedt committed Apr 26, 2016
1 parent 27b7156 commit a77ed52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
Expand Down

0 comments on commit a77ed52

Please sign in to comment.