integration/export/triple: use LITEX_ENV_CC_TRIPLE instead of TRIPLE.

triple can be used internally, but is too generic as an environment variable.
This commit is contained in:
Florent Kermarrec 2021-01-27 08:25:48 +01:00
parent f331ddace8
commit b8bcbc522f

View file

@ -64,7 +64,7 @@ def get_cpu_mak(cpu, compile_software):
r = None r = None
if not isinstance(triple, tuple): if not isinstance(triple, tuple):
triple = (triple,) triple = (triple,)
override = os.getenv( "TRIPLE" ) override = os.getenv("LITEX_ENV_CC_TRIPLE")
if override: if override:
triple = (override,) + triple triple = (override,) + triple
p = get_platform() p = get_platform()