Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752752AbaKKIPi (ORCPT ); Tue, 11 Nov 2014 03:15:38 -0500 Received: from mail-pd0-f175.google.com ([209.85.192.175]:37283 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbaKKIPg (ORCPT ); Tue, 11 Nov 2014 03:15:36 -0500 From: "Luis R. Rodriguez" To: backports@vger.kernel.org Cc: linux-kernel@vger.kernel.org, yann.morin.1998@free.fr, mmarek@suse.cz, sassmann@kpanic.de, "Luis R. Rodriguez" Subject: [PATCH v3 04/21] backports: grant parsers access to kconfig config and menuconfig Date: Tue, 11 Nov 2014 00:14:55 -0800 Message-Id: <1415693712-23743-5-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1415693712-23743-1-git-send-email-mcgrof@do-not-panic.com> References: <1415693712-23743-1-git-send-email-mcgrof@do-not-panic.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Luis R. Rodriguez" Allow parsers to query the type of option used, either config or menuconfig. This will be used later. Signed-off-by: Luis R. Rodriguez --- lib/kconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kconfig.py b/lib/kconfig.py index 179121a..3562630 100644 --- a/lib/kconfig.py +++ b/lib/kconfig.py @@ -7,7 +7,7 @@ import os, re src_line = re.compile(r'^\s*source\s+"?(?P[^\s"]*)"?\s*$') tri_line = re.compile(r'^(?P\s+)tristate') bool_line = re.compile(r'^(?P\s+)bool') -cfg_line = re.compile(r'^(config|menuconfig)\s+(?P[^\s]*)') +cfg_line = re.compile(r'^(?Pconfig|menuconfig)\s+(?P[^\s]*)') sel_line = re.compile(r'^(?P\s+)select\s+(?P[^\s]*)\s*$') backport_line = re.compile(r'^\s+#(?P[ch]-file|module-name)\s*(?P.*)') -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/