lkml.org 
[lkml]   [2016]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[for-next][PATCH 2/6] localmodconfig: Recognize more keywords that end a menu entry
    From: Benjamin Poirier <bpoirier@suse.com>

    Based on the list in Documentation/kbuild/kconfig-language.txt

    This removes junk from %depends because parsing of a menu entry spilled
    over to another menu entry.

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

    Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    scripts/kconfig/streamline_config.pl | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
    index 7036ae306db6..64d750cc5ae4 100755
    --- a/scripts/kconfig/streamline_config.pl
    +++ b/scripts/kconfig/streamline_config.pl
    @@ -256,8 +256,8 @@ sub read_kconfig {

    $iflevel-- if ($iflevel);

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

    \
     
     \ /
      Last update: 2016-04-27 01:01    [W:2.493 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site