From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/5] arch/mips: add option for toolchains supporting -mfpxx
Date: Fri, 21 Jul 2017 18:06:32 +0100 [thread overview]
Message-ID: <20170721170635.41202-2-Vincent.Riera@imgtec.com> (raw)
In-Reply-To: <20170721170635.41202-1-Vincent.Riera@imgtec.com>
-mfpxx option was added in gcc-5.1.0 so make sure that users cannot
select the "xx" fp32 mode when using toolchains that have a gcc older
than 5.1.0.
-mfp32 and -mfp64 were added in gcc-4.1.0, so given the older gcc
version we support in Buildroot (in the GCC_AT_LEAST options) is 4.3 we
don't need to do anything else for them.
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
arch/Config.in.mips | 3 ++-
toolchain/toolchain-common.in | 4 ++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/Config.in.mips b/arch/Config.in.mips
index 3d2dfe3f49..de37f0eb82 100644
--- a/arch/Config.in.mips
+++ b/arch/Config.in.mips
@@ -137,7 +137,7 @@ config BR2_MIPS_SOFT_FLOAT
choice
prompt "FP mode"
depends on !BR2_ARCH_IS_64 && !BR2_MIPS_SOFT_FLOAT
- default BR2_MIPS_FP32_MODE_XX
+ default BR2_MIPS_FP32_MODE_XX if BR2_TOOLCHAIN_HAS_MFPXX_OPTION
help
MIPS32 supports different FP modes (32,xx,64). Information about FP
modes can be found here:
@@ -149,6 +149,7 @@ config BR2_MIPS_FP32_MODE_32
depends on !BR2_MIPS_CPU_MIPS32R6
config BR2_MIPS_FP32_MODE_XX
+ depends on BR2_TOOLCHAIN_HAS_MFPXX_OPTION
bool "xx"
config BR2_MIPS_FP32_MODE_64
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 0002682e12..dd192b9ba4 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -346,6 +346,10 @@ config BR2_TOOLCHAIN_HAS_MNAN_OPTION
bool
default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+config BR2_TOOLCHAIN_HAS_MFPXX_OPTION
+ bool
+ default y if BR2_TOOLCHAIN_GCC_AT_LEAST_5
+
config BR2_TOOLCHAIN_HAS_SYNC_1
bool
default y
--
2.13.0
next prev parent reply other threads:[~2017-07-21 17:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 17:06 [Buildroot] [PATCH 1/5] arch/mips: add option for toolchains supporting -mnan Vicente Olivert Riera
2017-07-21 17:06 ` Vicente Olivert Riera [this message]
2017-07-21 21:00 ` [Buildroot] [PATCH 2/5] arch/mips: add option for toolchains supporting -mfpxx Thomas Petazzoni
2017-07-21 17:06 ` [Buildroot] [PATCH 3/5] arch/mips: add DSP support Vicente Olivert Riera
2018-03-31 14:57 ` Arnout Vandecappelle
2017-07-21 17:06 ` [Buildroot] [PATCH 4/5] toolchains/mips: state that Codescape toolchains support -mdspr3 Vicente Olivert Riera
2017-07-21 17:06 ` [Buildroot] [PATCH 5/5] arch/mips: add MSA support Vicente Olivert Riera
2017-07-21 20:59 ` [Buildroot] [PATCH 1/5] arch/mips: add option for toolchains supporting -mnan Thomas Petazzoni
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=20170721170635.41202-2-Vincent.Riera@imgtec.com \
--to=vincent.riera@imgtec.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