From: Valentin Rothberg Date: Thu, 2 Feb 2017 17:00:44 +0000 (+0100) Subject: checkkconfigsymbols.py: support Kconfig's 'imply' statement X-Git-Tag: v4.11-rc1~118^2~49 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3b28f4f2c2c7fcb6770cdfe5e8cd284ee1bc9783;p=karo-tx-linux.git checkkconfigsymbols.py: support Kconfig's 'imply' statement Support the new imply statement in Kconfig. The imply statement has been added by commit 237e3ad0f195 ("Kconfig: Introduce the "imply" keyword") and is a weak version of a select, but the target symbol can still be turned off. Signed-off-by: Andreas Ziegler Signed-off-by: Valentin Rothberg Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/checkkconfigsymbols.py b/scripts/checkkconfigsymbols.py index f1d6b14081ac..8cd16c65d3c5 100755 --- a/scripts/checkkconfigsymbols.py +++ b/scripts/checkkconfigsymbols.py @@ -24,7 +24,7 @@ SYMBOL = r"(?:\w*[A-Z0-9]\w*){2,}" DEF = r"^\s*(?:menu){,1}config\s+(" + SYMBOL + r")\s*" EXPR = r"(?:" + OPERATORS + r"|\s|" + SYMBOL + r")+" DEFAULT = r"default\s+.*?(?:if\s.+){,1}" -STMT = r"^\s*(?:if|select|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR +STMT = r"^\s*(?:if|select|imply|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR SOURCE_SYMBOL = r"(?:\W|\b)+[D]{,1}CONFIG_(" + SYMBOL + r")" # regex objects