DesignWare ARC MetaWare Development Toolkit (MWDT)
You need to have ARC MWDT installed on your host.
Set these environment variables:
Set
ZEPHYR_TOOLCHAIN_VARIANTtoarcmwdt.Set
ARCMWDT_TOOLCHAIN_PATHto the toolchain installation directory. MWDT installation providesMETAWARE_ROOTso simply setARCMWDT_TOOLCHAIN_PATHto$METAWARE_ROOT/../(Linux) or%METAWARE_ROOT%\..\(Windows)
Note
Even though ARC MWDT compiler is used for Zephyr RTOS sources compilation, still the GNU preprocessor & GNU objcopy might be used for some steps like DTS preprocessing and
.binfile generation. Hence we need to have either ARC or host GNU tools inPATH. Currently Zephyr looks for:objcopy binaries:
arc-elf32-objcopyorarc-linux-objcopyorobjcopygcc binaries:
arc-elf32-gccorarc-linux-gccorgcc
This list can be extended or modified in future.
To check that you have set these variables correctly in your current environment, follow these example shell sessions (the
ARCMWDT_TOOLCHAIN_PATHvalues may be different on your system):# Linux: $ echo $ZEPHYR_TOOLCHAIN_VARIANT arcmwdt $ echo $ARCMWDT_TOOLCHAIN_PATH /home/you/ARC/MWDT_2019.12/ # Windows: > echo %ZEPHYR_TOOLCHAIN_VARIANT% arcmwdt > echo %ARCMWDT_TOOLCHAIN_PATH% C:\ARC\MWDT_2019.12\