nios2: Add new architecture
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Thu, 29 Aug 2013 22:10:40 +0000 (19:10 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 2 Sep 2013 19:38:45 +0000 (21:38 +0200)
This commit adds very basic support to build for the Nios II
architecture. Toolchain support is still missing and instead
we need to use an external custom toolchain.

Notice that this architecture had been previously removed in
Buildroot 2010.05-rc1 release (as explained in the CHANGES file)
and this commit adds it back.

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
arch/Config.in
arch/Config.in.nios2 [new file with mode: 0644]
toolchain/Config.in

index 0b5b2187bc5259de800e18f2b6edf9165e1d75ba..14899ca068398b02da3f2898f6bf92fecd998ce5 100644 (file)
@@ -124,6 +124,13 @@ config BR2_mips64el
          http://www.mips.com/
          http://en.wikipedia.org/wiki/MIPS_Technologies
 
+config BR2_nios2
+       bool "Nios II"
+       help
+         Nios II is a soft core processor from Altera Corporation.
+         http://www.altera.com/
+         http://en.wikipedia.org/wiki/Nios_II
+
 config BR2_powerpc
        bool "PowerPC"
        help
@@ -305,6 +312,10 @@ if BR2_mips || BR2_mips64 || BR2_mipsel || BR2_mips64el
 source "arch/Config.in.mips"
 endif
 
+if BR2_nios2
+source "arch/Config.in.nios2"
+endif
+
 if BR2_powerpc
 source "arch/Config.in.powerpc"
 endif
diff --git a/arch/Config.in.nios2 b/arch/Config.in.nios2
new file mode 100644 (file)
index 0000000..ed63898
--- /dev/null
@@ -0,0 +1,5 @@
+config BR2_ARCH
+       default "nios2"
+
+config BR2_ENDIAN
+       default "LITTLE"
index 53d25736c2f0f3ef0f7274f0623714a406df17ce..9d1e68f8fce9bce9e0ca3c3bcfbbf8cc7e55c908 100644 (file)
@@ -25,7 +25,7 @@ choice
 
 config BR2_TOOLCHAIN_BUILDROOT
        bool "Buildroot toolchain"
-       depends on !BR2_microblaze && !BR2_aarch64
+       depends on !BR2_microblaze && !BR2_aarch64 && !BR2_nios2
        select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
 
 config BR2_TOOLCHAIN_EXTERNAL
@@ -38,7 +38,8 @@ config BR2_TOOLCHAIN_EXTERNAL
 config BR2_TOOLCHAIN_CTNG
        bool "Crosstool-NG toolchain"
        depends on BR2_DEPRECATED
-       depends on !BR2_microblaze && !BR2_aarch64 && !BR2_xtensa && !BR2_arc
+       depends on !BR2_microblaze && !BR2_aarch64 && !BR2_xtensa && \
+                  !BR2_arc && !BR2_nios2
        select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
        help
          Say 'y' if you want to generate the toolchain with crosstool-NG