aboutsummaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorGravatar Nylon Chen <nylon7@andestech.com>2019-04-16 15:25:44 +0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-17 09:18:27 +0200
commitef058dcdb78185d132ae84de079c82cb2ce5d64f (patch)
tree0446b0c7d409a50d4581c6b4f18b1c9ed70e5a33 /toolchain
parent1ad1d3d5cff33d4d28775450a5368148ccfedaa2 (diff)
downloadbuildroot-ef058dcdb78185d132ae84de079c82cb2ce5d64f.tar.gz
buildroot-ef058dcdb78185d132ae84de079c82cb2ce5d64f.tar.bz2
toolchain/toolchain-external-andes-nds32: new package
This commit adds a new package for the Andes external toolchain for the nds32 Little Endian architecture. https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521/nds32le-linux-glibc-v3-upstream.tar.gz Signed-off-by: Che-Wei Chuang <cnoize@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Nylon Chen <nylon7@andestech.com> [Thomas: - rename .mk and .hash files to carry the proper package name - fix <pkg>_SITE variable, which was incorrect - add prompt in Config.in - add missing include of Config.in in toolchain/toolchain-external/Config.in - add missing selects for RPC and SSP, since the toolchain supports both - drop BR2_TOOLCHAIN_EXTERNAL_URL option, the toolchain URL is provided by the .mk file] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/toolchain-external/Config.in6
-rw-r--r--toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in12
-rw-r--r--toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in.options9
-rw-r--r--toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.hash2
-rw-r--r--toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.mk10
5 files changed, 39 insertions, 0 deletions
diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index 1f14f0350a..d234c1c552 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -23,6 +23,9 @@ source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config
# ARC
source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in"
+# Andes
+source "toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in"
+
# ARM (use ARM toolchain by default)
source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in"
source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in"
@@ -124,6 +127,9 @@ source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config
# ARC
source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
+# Andes
+source "toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in.options"
+
# ARM
source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options"
source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
diff --git a/toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in b/toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in
new file mode 100644
index 0000000000..e2fe63677d
--- /dev/null
+++ b/toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in
@@ -0,0 +1,12 @@
+config BR2_TOOLCHAIN_EXTERNAL_ANDES_NDS32
+ bool "Andes nds32"
+ depends on BR2_nds32
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_8
+ select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
+ select BR2_TOOLCHAIN_HAS_NATIVE_RPC
+ select BR2_TOOLCHAIN_HAS_SSP
+ help
+ nds32 toolchain for the nds32 architecture. It uses GCC
+ 8.2.1, GDB 8.1.1, glibc 2.28, Binutils 2.30. It generates
+ code that runs on ae3xx platform
diff --git a/toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in.options b/toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in.options
new file mode 100644
index 0000000000..7d11ae2098
--- /dev/null
+++ b/toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in.options
@@ -0,0 +1,9 @@
+if BR2_TOOLCHAIN_EXTERNAL_ANDES_NDS32
+
+config BR2_TOOLCHAIN_EXTERNAL_PREFIX
+ default "nds32le-linux"
+
+config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
+ default "toolchain-external-andes-nds32"
+
+endif
diff --git a/toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.hash b/toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.hash
new file mode 100644
index 0000000000..4314bb1f55
--- /dev/null
+++ b/toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.hash
@@ -0,0 +1,2 @@
+# From https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521/nds32le-linux-glibc-v3-upstream.tar.gz
+sha256 6050601df85ad93a4c211c1d57ed3773edb62aa505f7e07d7d555652e83af2cc nds32le-linux-glibc-v3-upstream.tar.gz
diff --git a/toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.mk b/toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.mk
new file mode 100644
index 0000000000..fa29490b4f
--- /dev/null
+++ b/toolchain/toolchain-external/toolchain-external-andes-nds32/toolchain-external-andes-nds32.mk
@@ -0,0 +1,10 @@
+################################################################################
+#
+# toolchain-external-andes-nds32
+#
+################################################################################
+
+TOOLCHAIN_EXTERNAL_ANDES_NDS32_SITE = https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521
+TOOLCHAIN_EXTERNAL_ANDES_NDS32_SOURCE = nds32le-linux-glibc-v3-upstream.tar.gz
+
+$(eval $(toolchain-external-package))