Skip to content

Commit 438bd1d

Browse files
evgeniy-paltsevnashif
authored andcommitted
ARC: scripts: twister: fix toolchain filtering
Let's not provide default toolchains for 'arc' intentionally: some targets can't be built with GNU toolchain ("zephyr", "cross-compile", "xtools" options) and for some targets we haven't provided MWDT compiler / linker options in corresponding SoC file in Zephyr, so these targets can't be built with ARC MWDT toolchain ("arcmwdt" option) by Zephyr build system. Instead for 'arc' we rely on 'toolchain' option in board yaml configuration. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent 108b38b commit 438bd1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/pylib/twister/twisterlib/platform.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ def load(self, platform_file):
7575
self.supported_toolchains = []
7676

7777
support_toolchain_variants = {
78-
"arc": ["zephyr", "cross-compile", "xtools", "arcmwdt"],
78+
# we don't provide defaults for 'arc' intentionally: some targets can't be built with GNU
79+
# toolchain ("zephyr", "cross-compile", "xtools" options) and for some targets we haven't
80+
# provided MWDT compiler / linker options in corresponding SoC file in Zephyr, so these
81+
# targets can't be built with ARC MWDT toolchain ("arcmwdt" option) by Zephyr build system
82+
# Instead for 'arc' we rely on 'toolchain' option in board yaml configuration.
7983
"arm": ["zephyr", "gnuarmemb", "xtools", "armclang", "llvm"],
8084
"arm64": ["zephyr", "cross-compile"],
8185
"mips": ["zephyr", "xtools"],

0 commit comments

Comments
 (0)