From 339fb7cd155de4baf47f65dc4943dfd404390f18 Mon Sep 17 00:00:00 2001 From: Artur Paszkiewicz Date: Mon, 3 Feb 2020 14:24:32 +0100 Subject: [PATCH] genconfig.py: allow numbers in config option names To make it possible to add CONFIG_RAID5. Change-Id: I1712bde5bae552811343fb1865f1224d3adb1c7e Signed-off-by: Artur Paszkiewicz Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/854 Reviewed-by: Paul Luse Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto Tested-by: SPDK CI Jenkins --- scripts/genconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/genconfig.py b/scripts/genconfig.py index 87781e0b77..cd4f175100 100755 --- a/scripts/genconfig.py +++ b/scripts/genconfig.py @@ -5,7 +5,7 @@ import re import sys comment = re.compile(r'^\s*#') -assign = re.compile(r'^\s*([a-zA-Z_]+)\s*(\?)?=\s*([^#]*)') +assign = re.compile(r'^\s*([a-zA-Z0-9_]+)\s*(\?)?=\s*([^#]*)') args = os.environ.copy() for arg in sys.argv: