summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-05-25 13:47:22 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-05-25 13:50:12 +0200
commitecacdd575fcadea1fa66c5b2b29f9329835b8c22 (patch)
tree17310fa1361db5bf42671a69e9d5dd01846dd4ff /kconfiglib.py
parentadd5d35159189c95761a87ba4102861f5b9a265e (diff)
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.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
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)