GNU toolchain for AndesCore
$ git clone https://github.com/andestech/nds-gnu-toolchain.git -b <branch_name>
$ git submodule update --init --recursive
Several standard packages are needed to build the toolchain.
On Ubuntu, executing the following command should suffice:
$ sudo apt-get install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev
On Fedora/CentOS/RHEL OS, executing the following command should suffice:
$ sudo yum install autoconf automake python3 libmpc-devel mpfr-devel gmp-devel gawk bison flex texinfo patchutils gcc gcc-c++ zlib-devel expat-devel
First, you must define the variables in script "build_elf_toolchain.sh" as shown in the table. Then, you can execute the script to build and install toolcahin. The default setting is "nds32le-elf-newlib-v5".
Toolchain | ARCH | ABI | CPU | TARGET |
---|---|---|---|---|
nds32le-elf-newlib-v5 | rv32imcxv5 | ilp32 | n25 | riscv32-elf |
nds32le-elf-newlib-v5f | rv32imfcxv5 | ilp32f | n25 | riscv32-elf |
nds32le-elf-newlib-v5d | rv32imfdcxv5 | ilp32d | n25 | riscv32-elf |
nds64le-elf-newlib-v5 | rv64imcxv5 | lp64 | nx25 | riscv64-elf |
nds64le-elf-newlib-v5f | rv64imfcxv5 | lp64f | nx25 | riscv64-elf |
nds64le-elf-newlib-v5d | rv64imfdcxv5 | lp64d | nx25 | riscv64-elf |
First, you must define the variables in script "build_linux_toolchain.sh" as shown in the table. Then, you can execute the script to build and install toolcahin. The default setting is "nds32le-linux-glibc-v5d".
Toolchain | ARCH | ABI | CPU | TARGET |
---|---|---|---|---|
nds32le-linux-glibc-v5 | rv32imacxv5 | ilp32 | n25 | riscv32-elf |
nds32le-linux-glibc-v5d | rv32imafdcxv5 | ilp32d | n25 | riscv32-elf |
nds64le-linux-glibc-v5 | rv64imacxv5 | lp64 | nx25 | riscv64-elf |
nds64le-linux-glibc-v5d | rv64imacfdxv5 | lp64d | nx25 | riscv64-elf |