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] arch/mips: Restrict n32 for Sourcery CodeBench toolchains.
Date: Mon, 12 Aug 2013 19:42:42 +0200	[thread overview]
Message-ID: <20130812194242.6fd25c55@skate> (raw)
In-Reply-To: <1376311394-17106-1-git-send-email-markos.chandras@imgtec.com>

Dear Markos Chandras,

On Mon, 12 Aug 2013 13:43:14 +0100, Markos Chandras wrote:
> n32 is not supported in Sourcery CodeBench toolchains.
> 
> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
> ---
> See
> https://sourcery.mentor.com/GNUToolchain/release2477?@template=datasheet
> --- arch/Config.in.mips | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/Config.in.mips b/arch/Config.in.mips
> index 6242bcc..a01d6bb 100644
> --- a/arch/Config.in.mips
> +++ b/arch/Config.in.mips
> @@ -46,7 +46,10 @@ config BR2_MIPS_OABI32
>  	bool "o32"
>  config BR2_MIPS_NABI32
>  	bool "n32"
> -	depends on BR2_ARCH_IS_64
> +	depends on BR2_ARCH_IS_64 && \
> +		!BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201305 && \
> +		!BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201209 && \
> +		!BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201203
>  config BR2_MIPS_NABI64
>  	bool "n64"
>  	depends on BR2_ARCH_IS_64

I am not sure it's the right way of writing this: in the menuconfig,
the ABI selection comes first, and then we have the toolchain
selection. So it is quite likely that the user will chose the ABI
first, and the enter the toolchain menu to make its toolchain
configuration.

With your proposal, if the user chooses n32, then goes in the toolchain
menu and selects one of the CodeSourcery toolchain, the result would be
a change in the ABI selection.

I think I would prefer to add a depends on !BR2_MIPS_NABI32 on the
affected toolchains (to prevent them from being selected), and then add
something like:

comment "CodeSourcery toolchains are only available for MIPS o32 and n64"
	depends on BR2_MIPS_NABI32

(of course adapt the comment to the reality)

Would you mind reworking the patch in this direction?

Thanks!

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

  reply	other threads:[~2013-08-12 17:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-12 12:43 [Buildroot] [PATCH] arch/mips: Restrict n32 for Sourcery CodeBench toolchains Markos Chandras
2013-08-12 17:42 ` Thomas Petazzoni [this message]
2013-08-12 18:02   ` Markos Chandras

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=20130812194242.6fd25c55@skate \
    --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