From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751700AbcDKAGz (ORCPT ); Sun, 10 Apr 2016 20:06:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:42292 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbcDKAGy (ORCPT ); Sun, 10 Apr 2016 20:06:54 -0400 From: Benjamin Poirier To: Steven Rostedt Cc: Michal Marek , joeyli , "Yann E . MORIN " , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] localmodconfig: Recognize more keywords that end a menu entry Date: Sun, 10 Apr 2016 17:06:30 -0700 Message-Id: <1460333193-16361-1-git-send-email-bpoirier@suse.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20160410235234.GA13689@f1.synalogic.ca> References: <20160410235234.GA13689@f1.synalogic.ca> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Benjamin Poirier --- 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 514735d..c5b388c 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.7.4