From: Luis R. Rodriguez Date: Thu, 6 Nov 2014 20:16:33 +0000 (-0800) Subject: backports: grant parsers access to kconfig config and menuconfig X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6792a6d1ef5ea3dabf3ebf347a8db8b562b59f24;p=openwrt%2Fstaging%2Fblogic.git backports: grant parsers access to kconfig config and menuconfig Allow parsers to query the type of option used, either config or menuconfig. This will be used later. Signed-off-by: Luis R. Rodriguez --- diff --git a/lib/kconfig.py b/lib/kconfig.py index 179121a55d63..356263087be8 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.*)')