From ecacdd575fcadea1fa66c5b2b29f9329835b8c22 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 25 May 2015 13:47:22 +0200 Subject: Allow digits in $-references to symbols. Omission which didn't matter for the Linux kernel. sym_expand_string_value() in scripts/kconfig/symbol.c is the relevant part of the C implementation. Seems the Buildroot guys ran into it. --- kconfiglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kconfiglib.py b/kconfiglib.py index 47f4ba2..1da33e6 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2094,7 +2094,7 @@ set_re = re.compile(r"CONFIG_(\w+)=(.*)") unset_re = re.compile(r"# CONFIG_(\w+) is not set") # Regular expression for finding $-references to symbols in strings -sym_ref_re = re.compile(r"\$[A-Za-z_]+") +sym_ref_re = re.compile(r"\$[A-Za-z0-9_]+") # Integers representing symbol types UNKNOWN, BOOL, TRISTATE, STRING, HEX, INT = range(0, 6) -- cgit v1.2.3