Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain
@ 2011-05-06 14:23 Phil Edworthy
  2011-05-08 18:28 ` Thomas Petazzoni
  2011-07-12 21:30 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Phil Edworthy @ 2011-05-06 14:23 UTC (permalink / raw)
  To: buildroot

Added the CodeSourcery uCLinux/uClibc toolchain for the SH2A big
endian devices.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
---
 toolchain/toolchain-external/Config.in   |   13 +++++++++++++
 toolchain/toolchain-external/ext-tool.mk |    3 +++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index c95945f..cb489bd 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -101,6 +101,18 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH201009
             - SH4A, uClibc, little endian
             - SH4A, uClibc, big endian
 
+config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH2A_201009
+	bool "CodeSoucery SH 2010.09"
+	depends on BR2_sh2a_nofpueb || BR2_sh2eb
+	select BR2_TOOLCHAIN_EXTERNAL_UCLIBC
+	select BR2_INSTALL_LIBSTDCPP
+	help
+	  Toolchain for the SuperH architecture, from CodeSourcery. It
+	  uses gcc 4.5.1, binutils 2.20, uClibc 0.9.30, gdb 7.2.50 and
+	  kernel headers 2.6.35.2. It has support for
+	  the following variants:
+            - SH2A, uClibc, big endian
+
 config BR2_TOOLCHAIN_EXTERNAL_CUSTOM
        bool "Custom toolchain"
        help
@@ -138,6 +150,7 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
 	default "mips-linux-gnu"         if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS44
 	default "powerpc-linux-gnu"      if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009
 	default "sh-linux-gnu"           if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH201009
+	default "sh-uclinux"             if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH2A_201009
 	default $(BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX) \
 					 if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
 
diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index 328f908..e23af99 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -179,6 +179,9 @@ TOOLCHAIN_EXTERNAL_SOURCE=freescale-2010.09-55-powerpc-linux-gnu-i686-pc-linux-g
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH201009),y)
 TOOLCHAIN_EXTERNAL_SITE=http://www.codesourcery.com/sgpp/lite/superh/portal/package7783/public/sh-linux-gnu/
 TOOLCHAIN_EXTERNAL_SOURCE=renesas-2010.09-45-sh-linux-gnu-i686-pc-linux-gnu.tar.bz2
+else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_SH2A_201009),y)
+TOOLCHAIN_EXTERNAL_SITE=http://www.codesourcery.com/sgpp/lite/superh/portal/package7859/public/sh-uclinux/
+TOOLCHAIN_EXTERNAL_SOURCE=renesas-2010.09-60-sh-uclinux-i686-pc-linux-gnu.tar.bz2
 else
 # A value must be set (even if unused), otherwise the
 # $(DL_DIR)/$(TOOLCHAIN_EXTERNAL_SOURCE) rule would override the main
-- 
1.7.1

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

* [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain
  2011-05-06 14:23 [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain Phil Edworthy
@ 2011-05-08 18:28 ` Thomas Petazzoni
  2011-05-09  6:54   ` PHIL.EDWORTHY at renesas.com
  2011-07-12 21:30 ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2011-05-08 18:28 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 06 May 2011 15:23:04 +0100
Phil Edworthy <PHIL.EDWORTHY@renesas.com> wrote:

> Added the CodeSourcery uCLinux/uClibc toolchain for the SH2A big
> endian devices.

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

However, I have a question regarding the sh2a_nofpueb and sh2eb target
architecture variants to which this toolchain applies. In Buildroot, we
use the target architecture variant to build the host tuple, which is
then used as the --host=XXX-YYY argument to build autotools-based
packages.

So for example, when sh2eb is selected, we pass "--host=sh2eb-linux" to
the ./configure script of all autotools-based packages.

Unfortunately, neither sh2a_nofpueb nor sh2eb are recognized as correct
machine types by config.sub. From packages/gnuconfig/config.sub:

        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
        | sh64 | sh64le \

So, a package such as dropbear fails to build with:

checking host system type... Invalid configuration `sh2eb-linux': machine `sh2eb' not recognized

I don't know anything about the various CPU types in the SuperH world,
so I can't fix it myself, but obviously the target variants do need
some cleanup/improvements. Could you help us to improve this ?

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] 4+ messages in thread

* [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain
  2011-05-08 18:28 ` Thomas Petazzoni
@ 2011-05-09  6:54   ` PHIL.EDWORTHY at renesas.com
  0 siblings, 0 replies; 4+ messages in thread
From: PHIL.EDWORTHY at renesas.com @ 2011-05-09  6:54 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

> On Fri, 06 May 2011 15:23:04 +0100
> Phil Edworthy <PHIL.EDWORTHY@renesas.com> wrote:
>
> > Added the CodeSourcery uCLinux/uClibc toolchain for the SH2A big
> > endian devices.
>
> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>
> However, I have a question regarding the sh2a_nofpueb and sh2eb target
> architecture variants to which this toolchain applies. In Buildroot, we
> use the target architecture variant to build the host tuple, which is
> then used as the --host=XXX-YYY argument to build autotools-based
> packages.
>
> So for example, when sh2eb is selected, we pass "--host=sh2eb-linux" to
> the ./configure script of all autotools-based packages.
>
> Unfortunately, neither sh2a_nofpueb nor sh2eb are recognized as correct
> machine types by config.sub. From packages/gnuconfig/config.sub:
>
>         | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
>         | sh64 | sh64le \
>
> So, a package such as dropbear fails to build with:
>
> checking host system type... Invalid configuration `sh2eb-linux': machine `sh2eb' not recognized

Ah, I see. I just checked busybox built for sh2a.


> I don't know anything about the various CPU types in the SuperH world,
> so I can't fix it myself, but obviously the target variants do need
> some cleanup/improvements. Could you help us to improve this ?

Hmm, SuperH has a lengthy mix of cpu types & pretty much everything I have done is with sh4a devices. I'll ask around to find out a bit more about sh2
devices and attempt to clean this up.

Thanks for pointing this out!
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110509/946da4b6/attachment.html>

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

* [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain
  2011-05-06 14:23 [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain Phil Edworthy
  2011-05-08 18:28 ` Thomas Petazzoni
@ 2011-07-12 21:30 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-07-12 21:30 UTC (permalink / raw)
  To: buildroot

>>>>> "Phil" == Phil Edworthy <PHIL.EDWORTHY@renesas.com> writes:

 Phil> Added the CodeSourcery uCLinux/uClibc toolchain for the SH2A big
 Phil> endian devices.

 Phil> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2011-07-12 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 14:23 [Buildroot] [PATCH] sh: Add SH2A CodeSourcery external toolchain Phil Edworthy
2011-05-08 18:28 ` Thomas Petazzoni
2011-05-09  6:54   ` PHIL.EDWORTHY at renesas.com
2011-07-12 21:30 ` Peter Korsgaard

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