docs: getting started guide 3rd party toolchains fixes

Using 3rd Party Toolchains page find out that warning message
can be moved to the top of the page.
Add Windows example in OneAPI.
Style fixing.

Signed-off-by: Maksim Masalski <maksim.masalski@intel.com>
This commit is contained in:
Maksim Masalski 2021-06-25 14:13:24 +08:00 committed by Anas Nashif
commit fa97ed2771

View file

@ -11,13 +11,16 @@ external organization. Several of these are available.
GNU ARM Embedded GNU ARM Embedded
**************** ****************
.. warning::
Do not install the toolchain into a path with spaces.
#. Download and install a `GNU ARM Embedded`_ build for your operating system #. Download and install a `GNU ARM Embedded`_ build for your operating system
and extract it on your file system. and extract it on your file system.
.. warning:: .. note::
Do not install the toolchain into a path with spaces. On On Windows, we'll assume you install into the directory
Windows, we'll assume you install into the directory
:file:`C:\\gnu_arm_embedded`. :file:`C:\\gnu_arm_embedded`.
.. warning:: .. warning::
@ -44,7 +47,7 @@ GNU ARM Embedded
$ echo $GNUARMEMB_TOOLCHAIN_PATH $ echo $GNUARMEMB_TOOLCHAIN_PATH
/home/you/Downloads/gnu_arm_embedded /home/you/Downloads/gnu_arm_embedded
# Windows # Windows:
> echo %ZEPHYR_TOOLCHAIN_VARIANT% > echo %ZEPHYR_TOOLCHAIN_VARIANT%
gnuarmemb gnuarmemb
> echo %GNUARMEMB_TOOLCHAIN_PATH% > echo %GNUARMEMB_TOOLCHAIN_PATH%
@ -58,7 +61,7 @@ GNU ARM Embedded
- Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``gnuarmemb``. - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``gnuarmemb``.
- Set :envvar:`GNUARMEMB_TOOLCHAIN_PATH` to the brew installation directory (something like ``/usr/local``) - Set :envvar:`GNUARMEMB_TOOLCHAIN_PATH` to the brew installation directory (something like ``/usr/local``)
Intel oneApi Toolkits Intel oneAPI Toolkit
********************* *********************
#. Download `Intel oneAPI Base Toolkit #. Download `Intel oneAPI Base Toolkit
@ -67,9 +70,13 @@ Intel oneApi Toolkits
#. Assuming the toolkit is installed in ``/opt/intel/oneApi``, set environment #. Assuming the toolkit is installed in ``/opt/intel/oneApi``, set environment
using:: using::
# Linux, macOS:
export ONEAPI_TOOLCHAIN_PATH=/opt/intel/oneapi export ONEAPI_TOOLCHAIN_PATH=/opt/intel/oneapi
source $ONEAPI_TOOLCHAIN_PATH/compiler/latest/env/vars.sh source $ONEAPI_TOOLCHAIN_PATH/compiler/latest/env/vars.sh
# Windows:
> set ONEAPI_TOOLCHAIN_PATH=C:\Users\Intel\oneapi
To setup the complete oneApi environment, use:: To setup the complete oneApi environment, use::
source /opt/intel/oneapi/setvars.sh source /opt/intel/oneapi/setvars.sh
@ -106,7 +113,7 @@ DesignWare ARC MetaWare Development Toolkit (MWDT)
$ echo $ARCMWDT_TOOLCHAIN_PATH $ echo $ARCMWDT_TOOLCHAIN_PATH
/home/you/ARC/MWDT_2019.12/ /home/you/ARC/MWDT_2019.12/
# Windows # Windows:
> echo %ZEPHYR_TOOLCHAIN_VARIANT% > echo %ZEPHYR_TOOLCHAIN_VARIANT%
arcmwdt arcmwdt
> echo %ARCMWDT_TOOLCHAIN_PATH% > echo %ARCMWDT_TOOLCHAIN_PATH%