Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] nios2: Add new architecture
@ 2013-08-20 11:59 Ezequiel Garcia
  2013-08-20 11:59 ` [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II Ezequiel Garcia
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Ezequiel Garcia @ 2013-08-20 11:59 UTC (permalink / raw)
  To: buildroot

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.
+	  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

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-20 11:59 [Buildroot] [PATCH 1/2] nios2: Add new architecture Ezequiel Garcia
@ 2013-08-20 11:59 ` Ezequiel Garcia
  2013-08-21  6:15   ` Arnout Vandecappelle
  2013-08-20 21:13 ` [Buildroot] [PATCH 1/2] nios2: Add new architecture Thomas De Schampheleire
  2013-08-21  6:13 ` Arnout Vandecappelle
  2 siblings, 1 reply; 14+ messages in thread
From: Ezequiel Garcia @ 2013-08-20 11:59 UTC (permalink / raw)
  To: buildroot

From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>

This commit adds the pre-built Sourcery CodeBench toolchains
currently available for the Nios-II architecture.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
---
 toolchain/toolchain-external/Config.in   | 26 ++++++++++++++++++++++++++
 toolchain/toolchain-external/ext-tool.mk |  6 ++++++
 2 files changed, 32 insertions(+)

diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index ad1f203..9c0ffb1 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -402,6 +402,30 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
 comment "Sourcery CodeBench toolchains are only available for MIPS/MIPS64 o32 and n64"
 	depends on BR2_MIPS_NABI32
 
+config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12
+	bool "Sourcery CodeBench Nios-II 2013.05-12"
+	depends on BR2_nios2
+	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_INSTALL_LIBSTDCPP
+	select BR2_HOSTARCH_NEEDS_IA32_LIBS
+	help
+	  Sourcery CodeBench toolchain for the Nios-II architecture,
+	  from Mentor Graphics.
+
+config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43
+	bool "Sourcery CodeBench Nios-II 2013.05-43"
+	depends on BR2_nios2
+	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_INSTALL_LIBSTDCPP
+	select BR2_HOSTARCH_NEEDS_IA32_LIBS
+	help
+	  Sourcery CodeBench toolchain for the Nios-II architecture,
+	  from Mentor Graphics.
+
 config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103
 	bool "Sourcery CodeBench PowerPC 2011.03"
 	depends on BR2_powerpc
@@ -818,6 +842,8 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
 	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
 	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201209
 	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201305
+	default "nios2-linux-gnu"        if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43
+	default "nios2-linux-gnu"        if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12
 	default "powerpc-linux-gnu"      if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009
 	default "powerpc-linux-gnu"      if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103
 	default "sh-linux-gnu"           if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH201103
diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index 01be85c..1d7b2f4 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -247,6 +247,12 @@ TOOLCHAIN_EXTERNAL_SOURCE = mips-2012.09-99-mips-linux-gnu-i686-pc-linux-gnu.tar
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201305),y)
 TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/mips-linux-gnu/
 TOOLCHAIN_EXTERNAL_SOURCE = mips-2013.05-36-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2
+else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12),y)
+TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/nios2-linux-gnu/
+TOOLCHAIN_EXTERNAL_SOURCE = sourceryg++-2013.05-12-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
+else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43),y)
+TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/nios2-linux-gnu/
+TOOLCHAIN_EXTERNAL_SOURCE = sourceryg++-2013.05-43-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009),y)
 TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/powerpc-linux-gnu/
 TOOLCHAIN_EXTERNAL_SOURCE = freescale-2010.09-55-powerpc-linux-gnu-i686-pc-linux-gnu.tar.bz2
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/2] nios2: Add new architecture
  2013-08-20 11:59 [Buildroot] [PATCH 1/2] nios2: Add new architecture Ezequiel Garcia
  2013-08-20 11:59 ` [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II Ezequiel Garcia
@ 2013-08-20 21:13 ` Thomas De Schampheleire
  2013-08-20 23:59   ` Ezequiel García
  2013-08-21  6:13 ` Arnout Vandecappelle
  2 siblings, 1 reply; 14+ messages in thread
From: Thomas De Schampheleire @ 2013-08-20 21:13 UTC (permalink / raw)
  To: buildroot

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 at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130820/58c1b9a3/attachment.html>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/2] nios2: Add new architecture
  2013-08-20 21:13 ` [Buildroot] [PATCH 1/2] nios2: Add new architecture Thomas De Schampheleire
@ 2013-08-20 23:59   ` Ezequiel García
  0 siblings, 0 replies; 14+ messages in thread
From: Ezequiel García @ 2013-08-20 23:59 UTC (permalink / raw)
  To: buildroot

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,
-- 
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/2] nios2: Add new architecture
  2013-08-20 11:59 [Buildroot] [PATCH 1/2] nios2: Add new architecture Ezequiel Garcia
  2013-08-20 11:59 ` [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II Ezequiel Garcia
  2013-08-20 21:13 ` [Buildroot] [PATCH 1/2] nios2: Add new architecture Thomas De Schampheleire
@ 2013-08-21  6:13 ` Arnout Vandecappelle
  2013-08-21 13:30   ` Ezequiel García
  2 siblings, 1 reply; 14+ messages in thread
From: Arnout Vandecappelle @ 2013-08-21  6:13 UTC (permalink / raw)
  To: buildroot

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"
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-20 11:59 ` [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II Ezequiel Garcia
@ 2013-08-21  6:15   ` Arnout Vandecappelle
  2013-08-21 13:32     ` Ezequiel García
  0 siblings, 1 reply; 14+ messages in thread
From: Arnout Vandecappelle @ 2013-08-21  6:15 UTC (permalink / raw)
  To: buildroot

On 08/20/13 13:59, Ezequiel Garcia wrote:
> From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>
> This commit adds the pre-built Sourcery CodeBench toolchains
> currently available for the Nios-II architecture.
>
> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> ---
>   toolchain/toolchain-external/Config.in   | 26 ++++++++++++++++++++++++++
>   toolchain/toolchain-external/ext-tool.mk |  6 ++++++
>   2 files changed, 32 insertions(+)
>
> diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
> index ad1f203..9c0ffb1 100644
> --- a/toolchain/toolchain-external/Config.in
> +++ b/toolchain/toolchain-external/Config.in
> @@ -402,6 +402,30 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
>   comment "Sourcery CodeBench toolchains are only available for MIPS/MIPS64 o32 and n64"
>   	depends on BR2_MIPS_NABI32
>
> +config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12
> +	bool "Sourcery CodeBench Nios-II 2013.05-12"
> +	depends on BR2_nios2
> +	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> +	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
> +	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
> +	select BR2_INSTALL_LIBSTDCPP
> +	select BR2_HOSTARCH_NEEDS_IA32_LIBS
> +	help
> +	  Sourcery CodeBench toolchain for the Nios-II architecture,
> +	  from Mentor Graphics.

  The help text should say which gcc and glibc version are included.

> +
> +config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43
> +	bool "Sourcery CodeBench Nios-II 2013.05-43"

  Why do you want to support two patchlevels of the same base version?

  Regards,
  Arnout

> +	depends on BR2_nios2
> +	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> +	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
> +	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
> +	select BR2_INSTALL_LIBSTDCPP
> +	select BR2_HOSTARCH_NEEDS_IA32_LIBS
> +	help
> +	  Sourcery CodeBench toolchain for the Nios-II architecture,
> +	  from Mentor Graphics.
> +
>   config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103
>   	bool "Sourcery CodeBench PowerPC 2011.03"
>   	depends on BR2_powerpc
> @@ -818,6 +842,8 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
>   	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
>   	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201209
>   	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201305
> +	default "nios2-linux-gnu"        if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43
> +	default "nios2-linux-gnu"        if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12
>   	default "powerpc-linux-gnu"      if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009
>   	default "powerpc-linux-gnu"      if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103
>   	default "sh-linux-gnu"           if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH201103
> diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
> index 01be85c..1d7b2f4 100644
> --- a/toolchain/toolchain-external/ext-tool.mk
> +++ b/toolchain/toolchain-external/ext-tool.mk
> @@ -247,6 +247,12 @@ TOOLCHAIN_EXTERNAL_SOURCE = mips-2012.09-99-mips-linux-gnu-i686-pc-linux-gnu.tar
>   else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201305),y)
>   TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/mips-linux-gnu/
>   TOOLCHAIN_EXTERNAL_SOURCE = mips-2013.05-36-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2
> +else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12),y)
> +TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/nios2-linux-gnu/
> +TOOLCHAIN_EXTERNAL_SOURCE = sourceryg++-2013.05-12-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
> +else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43),y)
> +TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/nios2-linux-gnu/
> +TOOLCHAIN_EXTERNAL_SOURCE = sourceryg++-2013.05-43-nios2-linux-gnu-i686-pc-linux-gnu.tar.bz2
>   else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009),y)
>   TOOLCHAIN_EXTERNAL_SITE = http://sourcery.mentor.com/public/gnu_toolchain/powerpc-linux-gnu/
>   TOOLCHAIN_EXTERNAL_SOURCE = freescale-2010.09-55-powerpc-linux-gnu-i686-pc-linux-gnu.tar.bz2
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/2] nios2: Add new architecture
  2013-08-21  6:13 ` Arnout Vandecappelle
@ 2013-08-21 13:30   ` Ezequiel García
  2013-08-21 18:52     ` Thomas Petazzoni
  0 siblings, 1 reply; 14+ messages in thread
From: Ezequiel García @ 2013-08-21 13:30 UTC (permalink / raw)
  To: buildroot

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,
-- 
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-21  6:15   ` Arnout Vandecappelle
@ 2013-08-21 13:32     ` Ezequiel García
  2013-08-21 16:57       ` Arnout Vandecappelle
  2013-08-21 18:47       ` Thomas Petazzoni
  0 siblings, 2 replies; 14+ messages in thread
From: Ezequiel García @ 2013-08-21 13:32 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On 21 August 2013 03:15, 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 the pre-built Sourcery CodeBench toolchains
>> currently available for the Nios-II architecture.
>>
>> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>> ---
>>   toolchain/toolchain-external/Config.in   | 26 ++++++++++++++++++++++++++
>>   toolchain/toolchain-external/ext-tool.mk |  6 ++++++
>>   2 files changed, 32 insertions(+)
>>
>> diff --git a/toolchain/toolchain-external/Config.in
>> b/toolchain/toolchain-external/Config.in
>> index ad1f203..9c0ffb1 100644
>> --- a/toolchain/toolchain-external/Config.in
>> +++ b/toolchain/toolchain-external/Config.in
>> @@ -402,6 +402,30 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
>>   comment "Sourcery CodeBench toolchains are only available for
>> MIPS/MIPS64 o32 and n64"
>>         depends on BR2_MIPS_NABI32
>>
>> +config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12
>> +       bool "Sourcery CodeBench Nios-II 2013.05-12"
>> +       depends on BR2_nios2
>> +       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
>> +       select BR2_TOOLCHAIN_EXTERNAL_GLIBC
>> +       select BR2_TOOLCHAIN_HAS_NATIVE_RPC
>> +       select BR2_INSTALL_LIBSTDCPP
>> +       select BR2_HOSTARCH_NEEDS_IA32_LIBS
>> +       help
>> +         Sourcery CodeBench toolchain for the Nios-II architecture,
>> +         from Mentor Graphics.
>
>
>  The help text should say which gcc and glibc version are included.
>
>

Yes, I was aware of that. I tried to find such information, but couldn't :-(

Any idea how do I get that information from the toolchain itself?

>> +
>> +config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43
>> +       bool "Sourcery CodeBench Nios-II 2013.05-43"
>
>
>  Why do you want to support two patchlevels of the same base version?
>

Not sure, actually. Just added all the options currently available.

Do you think is silly? Should I leave the latest one alone?

Thanks,
-- 
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-21 13:32     ` Ezequiel García
@ 2013-08-21 16:57       ` Arnout Vandecappelle
  2013-08-21 19:23         ` Ezequiel García
  2013-08-21 18:47       ` Thomas Petazzoni
  1 sibling, 1 reply; 14+ messages in thread
From: Arnout Vandecappelle @ 2013-08-21 16:57 UTC (permalink / raw)
  To: buildroot

On 08/21/13 15:32, Ezequiel Garc?a wrote:
> Hi Arnout,
>
> On 21 August 2013 03:15, 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 the pre-built Sourcery CodeBench toolchains
>>> currently available for the Nios-II architecture.
>>>
>>> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>>> ---
>>>    toolchain/toolchain-external/Config.in   | 26 ++++++++++++++++++++++++++
>>>    toolchain/toolchain-external/ext-tool.mk |  6 ++++++
>>>    2 files changed, 32 insertions(+)
>>>
>>> diff --git a/toolchain/toolchain-external/Config.in
>>> b/toolchain/toolchain-external/Config.in
>>> index ad1f203..9c0ffb1 100644
>>> --- a/toolchain/toolchain-external/Config.in
>>> +++ b/toolchain/toolchain-external/Config.in
>>> @@ -402,6 +402,30 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
>>>    comment "Sourcery CodeBench toolchains are only available for
>>> MIPS/MIPS64 o32 and n64"
>>>          depends on BR2_MIPS_NABI32
>>>
>>> +config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_12
>>> +       bool "Sourcery CodeBench Nios-II 2013.05-12"
>>> +       depends on BR2_nios2
>>> +       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
>>> +       select BR2_TOOLCHAIN_EXTERNAL_GLIBC
>>> +       select BR2_TOOLCHAIN_HAS_NATIVE_RPC
>>> +       select BR2_INSTALL_LIBSTDCPP
>>> +       select BR2_HOSTARCH_NEEDS_IA32_LIBS
>>> +       help
>>> +         Sourcery CodeBench toolchain for the Nios-II architecture,
>>> +         from Mentor Graphics.
>>
>>
>>   The help text should say which gcc and glibc version are included.
>>
>>
>
> Yes, I was aware of that. I tried to find such information, but couldn't :-(
>
> Any idea how do I get that information from the toolchain itself?

cross-gcc --version
cross-gdb --version
cross-ar --version
ls -l output/staging/lib*/libc-*.so

  Kernel version is a bit more difficult: cat 
output/staging/usr/include/linux/version.h and convert the decimal 
version number to hex.

  Look at the rest of the toolchain-external/Config.in for examples.

  The supported architectures should also be mentioned, but that may be 
more difficult.

>
>>> +
>>> +config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305_43
>>> +       bool "Sourcery CodeBench Nios-II 2013.05-43"
>>
>>
>>   Why do you want to support two patchlevels of the same base version?
>>
>
> Not sure, actually. Just added all the options currently available.
>
> Do you think is silly? Should I leave the latest one alone?

  Yes, only the latest one.

  We do usually keep an older version around as well, but I'm not really 
sure why. For the Sourcery toolchains it makes sense because they have 
different gcc versions, but the Linaro toolchains often only have 
bugfixes between one version and the next.


  Regards,
  Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-21 13:32     ` Ezequiel García
  2013-08-21 16:57       ` Arnout Vandecappelle
@ 2013-08-21 18:47       ` Thomas Petazzoni
  2013-08-21 19:18         ` Ezequiel García
  1 sibling, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2013-08-21 18:47 UTC (permalink / raw)
  To: buildroot

Dear Ezequiel Garc?a,

On Wed, 21 Aug 2013 10:32:25 -0300, Ezequiel Garc?a wrote:

> Yes, I was aware of that. I tried to find such information, but couldn't :-(
> 
> Any idea how do I get that information from the toolchain itself?

Usually, all the Sourcery CodeBench toolchain have a document in
share/doc/<tuple>/pdf/getting-started.pdf with many details about the
toolchain.

Otherwise:

 * nios-linux-gcc -v
 * nios-linux-gdb -v
 * find . -name 'ld-*.so' will identify which ld-2.xx.so, which will
   tell you the version of glibc

> >  Why do you want to support two patchlevels of the same base version?
> >
> 
> Not sure, actually. Just added all the options currently available.

Hum?

> Do you think is silly? Should I leave the latest one alone?

You can support multiple versions, but not multiple patchlevel of the
same version, because it's silly.

Since I know you know how kernel versions work, what you did is like
supporting 3.10.6 and 3.10.7: it's pointless, 3.10.7 is basically the
same as 3.10.6 with a few additional fixes. Of course, supporting both
3.9 and 3.10 might make sense.

Look at the other Sourcery Codebench toolchain entries in Buildroot. We
support multiple versions, but not multiple patchlevel of the same
version.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/2] nios2: Add new architecture
  2013-08-21 13:30   ` Ezequiel García
@ 2013-08-21 18:52     ` Thomas Petazzoni
  0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2013-08-21 18:52 UTC (permalink / raw)
  To: buildroot

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
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-21 18:47       ` Thomas Petazzoni
@ 2013-08-21 19:18         ` Ezequiel García
  0 siblings, 0 replies; 14+ messages in thread
From: Ezequiel García @ 2013-08-21 19:18 UTC (permalink / raw)
  To: buildroot

On 21 August 2013 15:47, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Ezequiel Garc?a,
>
> On Wed, 21 Aug 2013 10:32:25 -0300, Ezequiel Garc?a wrote:
>
>> Yes, I was aware of that. I tried to find such information, but couldn't :-(
>>
>> Any idea how do I get that information from the toolchain itself?
>
> Usually, all the Sourcery CodeBench toolchain have a document in
> share/doc/<tuple>/pdf/getting-started.pdf with many details about the
> toolchain.
>

Ah, good hint. The PDFs have many details, indeed.

> Otherwise:
>
>  * nios-linux-gcc -v
>  * nios-linux-gdb -v

Yup, I manage to get up to here....

>  * find . -name 'ld-*.so' will identify which ld-2.xx.so, which will
>    tell you the version of glibc
>

.. and I couldn't get to get the libc and binutils version.

>> >  Why do you want to support two patchlevels of the same base version?
>> >
>>
>> Not sure, actually. Just added all the options currently available.
>
> Hum?
>
>> Do you think is silly? Should I leave the latest one alone?
>
> You can support multiple versions, but not multiple patchlevel of the
> same version, because it's silly.
>
> Since I know you know how kernel versions work, what you did is like
> supporting 3.10.6 and 3.10.7: it's pointless, 3.10.7 is basically the
> same as 3.10.6 with a few additional fixes. Of course, supporting both
> 3.9 and 3.10 might make sense.
>
> Look at the other Sourcery Codebench toolchain entries in Buildroot. We
> support multiple versions, but not multiple patchlevel of the same
> version.
>

Sure. Now I see why it was silly.
-- 
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-21 16:57       ` Arnout Vandecappelle
@ 2013-08-21 19:23         ` Ezequiel García
  2013-08-21 19:27           ` Arnout Vandecappelle
  0 siblings, 1 reply; 14+ messages in thread
From: Ezequiel García @ 2013-08-21 19:23 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On 21 August 2013 13:57, Arnout Vandecappelle <arnout@mind.be> wrote:
[...]
>
>  Kernel version is a bit more difficult: cat
> output/staging/usr/include/linux/version.h and convert the decimal version
> number to hex.
>

Right.

>  The supported architectures should also be mentioned, but that may be more
> difficult.
>

Mmm... what do you mean by supported architectures?
I'm not an expert Nios-II user (just started working on it) but there doesn't
seem to be any architectural variants.

>
>  We do usually keep an older version around as well, but I'm not really sure
> why. For the Sourcery toolchains it makes sense because they have different
> gcc versions, but the Linaro toolchains often only have bugfixes between one
> version and the next.
>

Speaking of toolchains. Any recomendations on how to *choose* a toolchain?

Should I safely use Sourcery?
Should I prefer Buildroot internal (when we add support for it)?
Which should be the rationale behind such decision? (aside from the
fact the buildroot toolchain allows to be tuned)

Thanks a lot for the help!
-- 
Ezequiel Garc?a, VanguardiaSur
www.vanguardiasur.com.ar

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II
  2013-08-21 19:23         ` Ezequiel García
@ 2013-08-21 19:27           ` Arnout Vandecappelle
  0 siblings, 0 replies; 14+ messages in thread
From: Arnout Vandecappelle @ 2013-08-21 19:27 UTC (permalink / raw)
  To: buildroot

On 21/08/13 21:23, Ezequiel Garc?a wrote:
[snip]
> Speaking of toolchains. Any recomendations on how to *choose* a toolchain?
>
> Should I safely use Sourcery?
> Should I prefer Buildroot internal (when we add support for it)?
> Which should be the rationale behind such decision? (aside from the
> fact the buildroot toolchain allows to be tuned)

  External toolchain has the advantage that you don't have to spend time 
(about an hour) on building it.

  Internal toolchain has the advantage that it is configurable, and can 
be uClibc based and therefore smaller. The difference between uClibc and 
glibc is in the order of 1MB, so it only really makes sense when you want 
a really small rootfs.

  Regards,
  Arnout
-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-08-21 19:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-20 11:59 [Buildroot] [PATCH 1/2] nios2: Add new architecture Ezequiel Garcia
2013-08-20 11:59 ` [Buildroot] [PATCH 2/2] toolchain-external: Add Sourcery CodeBench for Nios-II Ezequiel Garcia
2013-08-21  6:15   ` Arnout Vandecappelle
2013-08-21 13:32     ` Ezequiel García
2013-08-21 16:57       ` Arnout Vandecappelle
2013-08-21 19:23         ` Ezequiel García
2013-08-21 19:27           ` Arnout Vandecappelle
2013-08-21 18:47       ` Thomas Petazzoni
2013-08-21 19:18         ` Ezequiel García
2013-08-20 21:13 ` [Buildroot] [PATCH 1/2] nios2: Add new architecture Thomas De Schampheleire
2013-08-20 23:59   ` Ezequiel García
2013-08-21  6:13 ` Arnout Vandecappelle
2013-08-21 13:30   ` Ezequiel García
2013-08-21 18:52     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox