arch: add support for Andes 32-bit (nds32)
authorNylon Chen <nylon7@andestech.com>
Tue, 16 Apr 2019 07:25:42 +0000 (15:25 +0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 17 Apr 2019 07:03:37 +0000 (09:03 +0200)
This commit provides basic support for the Andes 32-bit (nds32)
architecture.

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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
arch/Config.in
arch/Config.in.nds32 [new file with mode: 0644]

index 45986c9dc7c3b90fb7b264b0e30d3c7637ed358c..db2c27c423e7c8c67d5ca0d63d4819611da48c3e 100644 (file)
@@ -1667,6 +1667,9 @@ F:        package/trousers/
 N:     Norbert Lange <nolange79@gmail.com>
 F:     package/tcf-agent/
 
+N:     Nylon Chen <nylon7@andestech.com>
+F:     arch/Config.in.nds32
+
 N:     Olaf Rempel <razzor@kopf-tisch.de>
 F:     package/ctorrent/
 
index f50760a0cff90c914bc4593ab82ea2a381742dd0..d82803c82828f4ee70acf8442eb96ec81ff2a064 100644 (file)
@@ -154,6 +154,14 @@ config BR2_mips64el
          http://www.mips.com/
          http://en.wikipedia.org/wiki/MIPS_Technologies
 
+config BR2_nds32
+       bool "nds32"
+       select BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT
+       select BR2_ARCH_HAS_MMU_MANDATORY
+       help
+         nds32 is a 32-bit architecture developed by Andes Technology.
+         https://en.wikipedia.org/wiki/Andes_Technology
+
 config BR2_nios2
        bool "Nios II"
        select BR2_ARCH_HAS_MMU_MANDATORY
@@ -419,6 +427,10 @@ if BR2_mips || BR2_mips64 || BR2_mipsel || BR2_mips64el
 source "arch/Config.in.mips"
 endif
 
+if BR2_nds32
+source "arch/Config.in.nds32"
+endif
+
 if BR2_nios2
 source "arch/Config.in.nios2"
 endif
diff --git a/arch/Config.in.nds32 b/arch/Config.in.nds32
new file mode 100644 (file)
index 0000000..9c5db20
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_ARCH
+       default "nds32"
+
+config BR2_GCC_TARGET_ARCH
+       default "v3"
+
+config BR2_ENDIAN
+       default "LITTLE"
+
+config BR2_READELF_ARCH_NAME
+       default "Andes Technology compact code size embedded RISC processor family"