Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] sh: Fix Buildroot sh targets to match gnuconfig targets
Date: Tue, 10 May 2011 08:47:04 +0200	[thread overview]
Message-ID: <20110510084704.7cd44147@surf> (raw)
In-Reply-To: <1304946773-5734-1-git-send-email-phil.edworthy@renesas.com>

Hello,

On Mon, 09 May 2011 14:12:53 +0100
Phil Edworthy <PHIL.EDWORTHY@renesas.com> wrote:

> sh2eb and sh2a_nofpueb gnuconfig targets are no longer supported
> in Buildroot. This patch replaces these Buildroot targets with sh2
> and sh2a respectively, and adds sh4a targets as these are widely
> used.
> 
> To build for devices without an fpu, the relevant toolchain flags
> will have to be specified.

Thanks a lot for coming back so quickly with an updated patch and
clarification about SuperH support. That's really nice!

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

A few questions/comments below, though.

> diff --git a/fs/jffs2/Config.in b/fs/jffs2/Config.in
> index 5748fbb..9a96d7d 100644
> --- a/fs/jffs2/Config.in
> +++ b/fs/jffs2/Config.in
> @@ -94,8 +94,8 @@ choice
>  	prompt "Endianess"
>  	default BR2_TARGET_ROOTFS_JFFS2_BE if BR2_armeb || \
>  			BR2_avr32 || BR2_m68k || BR2_mips || \
> -			BR2_powerpc || BR2_sh2a_nofpueb || BR2_sh2eb || \
> -			BR2_sh3eb || BR2_sh4eb || BR2_sparc
> +			BR2_powerpc || BR2_sh2 || BR2_sh2a || \
> +			BR2_sh3eb || BR2_sh4eb || BR2_sh4aeb || BR2_sparc

Not your fault, but we should probably try to use BR2_ENDIAN here, in
order to have the big/little endian list of architectures in a common
location and not duplicated here in JFFS2. But that's a separate
matter, and should be fixed in a separate patch.

> diff --git a/toolchain/elf2flt/elf2flt/config.sub b/toolchain/elf2flt/elf2flt/config.sub
> index 4279c84..2072457 100755
> --- a/toolchain/elf2flt/elf2flt/config.sub
> +++ b/toolchain/elf2flt/elf2flt/config.sub

Just curious, as I have never used Buildroot to build a toolchain for
non-MMU platforms (only used pre-built Blackfin toolchains so far). How
does this elf2flt thing fits into the toolchain build process ?

Instead of patching this config.sub file, wouldn't it be possible to
use the one we have in package/gnuconfig/ ? Or, put it differently, is
there an upstream location for elf2flt we could use instead of having
its source code directly into the Buildroot tree ?

Regards,

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

  reply	other threads:[~2011-05-10  6:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09 13:12 [Buildroot] [PATCH] sh: Fix Buildroot sh targets to match gnuconfig targets Phil Edworthy
2011-05-10  6:47 ` Thomas Petazzoni [this message]
2011-05-10  7:34   ` PHIL.EDWORTHY at renesas.com
2011-05-10  7:48     ` Thomas Petazzoni
2011-05-10  8:01   ` Yann E. MORIN
2011-05-10  8:20     ` Thomas Petazzoni
2011-05-10  8:35       ` Yann E. MORIN
2011-07-18 21:26 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110510084704.7cd44147@surf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox