arch/mips: add option for toolchains supporting -mfpxx

-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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Vicente Olivert Riera
2017-07-21 18:06:32 +01:00
committed by Thomas Petazzoni
parent 0af741187f
commit 087be35e22
2 changed files with 6 additions and 1 deletions

View File

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