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 <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Stefan Weil 2016-10-13 20:29:30 +02:00 committed by Michael Tokarev
parent 814bb12a56
commit 630b210b9a
1 changed files with 1 additions and 1 deletions

View File

@ -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