mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
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:
parent
0af741187f
commit
087be35e22
@ -137,7 +137,7 @@ config BR2_MIPS_SOFT_FLOAT
|
|||||||
choice
|
choice
|
||||||
prompt "FP mode"
|
prompt "FP mode"
|
||||||
depends on !BR2_ARCH_IS_64 && !BR2_MIPS_SOFT_FLOAT
|
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
|
help
|
||||||
MIPS32 supports different FP modes (32,xx,64). Information about FP
|
MIPS32 supports different FP modes (32,xx,64). Information about FP
|
||||||
modes can be found here:
|
modes can be found here:
|
||||||
@ -150,6 +150,7 @@ config BR2_MIPS_FP32_MODE_32
|
|||||||
|
|
||||||
config BR2_MIPS_FP32_MODE_XX
|
config BR2_MIPS_FP32_MODE_XX
|
||||||
bool "xx"
|
bool "xx"
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_MFPXX_OPTION
|
||||||
|
|
||||||
config BR2_MIPS_FP32_MODE_64
|
config BR2_MIPS_FP32_MODE_64
|
||||||
bool "64"
|
bool "64"
|
||||||
|
@ -346,6 +346,10 @@ config BR2_TOOLCHAIN_HAS_MNAN_OPTION
|
|||||||
bool
|
bool
|
||||||
default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
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
|
config BR2_TOOLCHAIN_HAS_SYNC_1
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user