From 13d1d4cf8edabcfcffc0b8f44e4bf265775d4fe8 Mon Sep 17 00:00:00 2001 From: Gary Wong Date: Fri, 22 Jan 2021 11:58:14 -0700 Subject: [PATCH] integration/export: allow manually specifying toolchain triple. If the environment variable TRIPLE is defined, use its value as the highest priority candidate. Useful for testing new cross-compilers, or selecting among toolchains in a different priority than the built-in list. --- litex/soc/integration/export.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index e2fabb35d..2296f6a6e 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -64,6 +64,9 @@ def get_cpu_mak(cpu, compile_software): r = None if not isinstance(triple, tuple): triple = (triple,) + override = os.getenv( "TRIPLE" ) + if override: + triple = (override,) + triple p = get_platform() for i in range(len(triple)): t = triple[i]