From 630b210b9abbf362905a2096c22c5eb1d6224e77 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 13 Oct 2016 20:29:30 +0200 Subject: Fix build for less common build directories names scripts/tracetool generates a C preprocessor macro from the name of the build directory. Any characters which are possible in a directory name but not allowed in a macro name must be substituted, otherwise builds will fail. Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev --- scripts/tracetool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/tracetool.py') diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 629b2593c8..fe9c9e904b 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -70,7 +70,7 @@ def make_group_name(filename): if dirname == "": return "common" - return re.sub(r"/|-", "_", dirname) + return re.sub(r"[^A-Za-z0-9]", "_", dirname) def main(args): global _SCRIPT -- cgit v1.2.3-55-g7522