From: Stefan Weil Date: Thu, 13 Oct 2016 18:29:30 +0000 (+0200) Subject: Fix build for less common build directories names X-Git-Tag: v2.8.0-rc0~46^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=630b210b9abbf362905a2096c22c5eb1d6224e77;p=thirdparty%2Fqemu.git 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 --- diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 629b2593c84..fe9c9e904b0 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