4 # set up environment variable overrides, can use for different versions
5 # as well as native (TALOS-II POWER9) builds. detects ppc64le and
8 for cmd
in ['objcopy', 'as', 'ld', 'gcc', 'ar', 'gdb']:
9 if platform
.machine() == 'ppc64le':
12 default
= "powerpc64-linux-gnu-%s" % cmd
13 cmds
[cmd
] = os
.environ
.get(cmd
.upper(), default
)