Commit 630b210b authored by Stefan Weil's avatar Stefan Weil Committed by Michael Tokarev
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 814bb12a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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