Skip to content

Commit

Permalink
ARC: scripts: twister: fix toolchain filtering
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
evgeniy-paltsev authored and nashif committed Aug 5, 2023
1 parent 108b38b commit 438bd1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/pylib/twister/twisterlib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ def load(self, platform_file):
self.supported_toolchains = []

support_toolchain_variants = {
"arc": ["zephyr", "cross-compile", "xtools", "arcmwdt"],
# we don't provide defaults 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.
"arm": ["zephyr", "gnuarmemb", "xtools", "armclang", "llvm"],
"arm64": ["zephyr", "cross-compile"],
"mips": ["zephyr", "xtools"],
Expand Down

0 comments on commit 438bd1d

Please sign in to comment.