File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ .. _toolchain_andes :
2
+
3
+ Andes Toolchain
4
+ ##############
5
+
6
+ #. Download and extract a toolchain from `Andes-Development-Kit `_ for your
7
+ operating system.
8
+
9
+ .. note ::
10
+ The currently supported release is **ast-v5_3_3-release ** and later for Linux
11
+ and MinGW-based Windows toolchain. Cygwin-based Windows toolchains
12
+ (e.g. *ast-v5_3_3-release-windows *) are **not ** supported.
13
+
14
+ #. :ref: `Set these environment variables <env_vars >`:
15
+
16
+ - Set :envvar: `ZEPHYR_TOOLCHAIN_VARIANT ` to ``andes `` or ``andes-clang ``.
17
+ - Set :envvar: `ANDES_TOOLCHAIN_PATH ` to the toolchain installation directory.
18
+
19
+ #. For example
20
+
21
+ #. Andes GCC:
22
+
23
+ .. code-block :: console
24
+ # Linux
25
+ export ZEPHYR_TOOLCHAIN_VARIANT=andes
26
+ export ANDES_TOOLCHAIN_PATH=/path/to/nds32le-elf-mculib-v5
27
+
28
+ #. Andes Clang:
29
+
30
+ .. code-block :: console
31
+ # Linux
32
+ export ZEPHYR_TOOLCHAIN_VARIANT=andes-clang
33
+ export ANDES_TOOLCHAIN_PATH=/path/to/nds32le-elf-mculib-v5
34
+
35
+ Andes Clang toolchain uses LLVM linker by default. You can choose the
36
+ linker via Kconfig:
37
+
38
+ - Set :envvar: `CONFIG_LLVM_USE_LLD=y ` to use LLVM linker.
39
+ - set :envvar: `CONFIG_LLVM_USE_LD=y ` to use the GNU LD linker.
40
+
41
+ .. _Andes-Development-Kit : https://github.com/andestech/Andes-Development-Kit/releases
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Guides on how to set up toolchains for Zephyr development.
10
10
11
11
zephyr_sdk.rst
12
12
13
+ andes_toolchain.rst
13
14
arm_compiler_6.rst
14
15
arm_toolchain_for_embedded.rst
15
16
cadence_xcc.rst
You can’t perform that action at this time.
0 commit comments