diff mbox

[1/2] nios2: Add new architecture

Message ID 1376999946-3314-1-git-send-email-ezequiel.garcia@free-electrons.com
State Superseded
Headers show

Commit Message

Ezequiel Garcia Aug. 20, 2013, 11:59 a.m. UTC
From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>

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.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
---
 arch/Config.in       | 11 +++++++++++
 arch/Config.in.nios2 |  5 +++++
 2 files changed, 16 insertions(+)
 create mode 100644 arch/Config.in.nios2

Comments

Thomas De Schampheleire Aug. 20, 2013, 9:13 p.m. UTC | #1
Op 20-aug.-2013 14:07 schreef "Ezequiel Garcia" <
ezequiel.garcia@free-electrons.com> het volgende:
>
> From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>
> 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.
>
> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> ---
>  arch/Config.in       | 11 +++++++++++
>  arch/Config.in.nios2 |  5 +++++
>  2 files changed, 16 insertions(+)
>  create mode 100644 arch/Config.in.nios2
>
> diff --git a/arch/Config.in b/arch/Config.in
> index 0b5b218..2495110 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -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 Coporation.

This should probably be 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
> index 0000000..ed63898
> --- /dev/null
> +++ b/arch/Config.in.nios2
> @@ -0,0 +1,5 @@
> +config BR2_ARCH
> +       default "nios2"
> +
> +config BR2_ENDIAN
> +       default "LITTLE"
> --
> 1.8.1.5
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Ezequiel Garcia Aug. 20, 2013, 11:59 p.m. UTC | #2
On 20 August 2013 18:13, Thomas De Schampheleire
<patrickdepinguin+buildroot@gmail.com> wrote:
>
[...]
>>
>> +config BR2_nios2
>> +       bool "Nios II"
>> +       help
>> +         Nios II is a soft core processor from Altera Coporation.
>
> This should probably be Corporation.
>

Yes, of course.

Thanks,
Arnout Vandecappelle Aug. 21, 2013, 6:13 a.m. UTC | #3
On 08/20/13 13:59, Ezequiel Garcia wrote:
> From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>
> 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.

  Then you probably want to exclude it from the buildroot toolchain.

  Regards,
  Arnout

>
> 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.
>
> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> ---
>   arch/Config.in       | 11 +++++++++++
>   arch/Config.in.nios2 |  5 +++++
>   2 files changed, 16 insertions(+)
>   create mode 100644 arch/Config.in.nios2
>
> diff --git a/arch/Config.in b/arch/Config.in
> index 0b5b218..2495110 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -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 Coporation.
> +	  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
> index 0000000..ed63898
> --- /dev/null
> +++ b/arch/Config.in.nios2
> @@ -0,0 +1,5 @@
> +config BR2_ARCH
> +	default "nios2"
> +
> +config BR2_ENDIAN
> +	default "LITTLE"
>
Ezequiel Garcia Aug. 21, 2013, 1:30 p.m. UTC | #4
On 21 August 2013 03:13, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 08/20/13 13:59, Ezequiel Garcia wrote:
>>
>> From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>>
>> 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.
>
>
>  Then you probably want to exclude it from the buildroot toolchain.
>

Ok, I'll take a look.

I want to support buildroot toolchain, but I'm not sure when I'll be able
to do that.

Thanks,
Thomas Petazzoni Aug. 21, 2013, 6:52 p.m. UTC | #5
Dear Ezequiel García,

On Wed, 21 Aug 2013 10:30:21 -0300, Ezequiel García wrote:
> On 21 August 2013 03:13, Arnout Vandecappelle <arnout@mind.be> wrote:
> > On 08/20/13 13:59, Ezequiel Garcia wrote:
> >>
> >> From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> >>
> >> 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.
> >
> >
> >  Then you probably want to exclude it from the buildroot toolchain.
> >
> 
> Ok, I'll take a look.

See toolchain/Config.in. You can add a !BR2_nios2 in both
BR2_TOOLCHAIN_BUILDROOT and BR2_TOOLCHAIN_CTNG.

> I want to support buildroot toolchain, but I'm not sure when I'll be able
> to do that.

You can do that later. Just exclude the internal and crosstool-ng
backends for now.

Best regards,

Thomas
diff mbox

Patch

diff --git a/arch/Config.in b/arch/Config.in
index 0b5b218..2495110 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -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 Coporation.
+	  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
index 0000000..ed63898
--- /dev/null
+++ b/arch/Config.in.nios2
@@ -0,0 +1,5 @@ 
+config BR2_ARCH
+	default "nios2"
+
+config BR2_ENDIAN
+	default "LITTLE"