arch: add option to let gccdecide what floating point to use

Add an ARCH_FLOAT_AUTO option to avoid passing float options
to gcc and allow it to choose

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: slightly reword the commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <088489641f4790262685.1399687813@localhost>
Patchwork-Id: 347584
This commit is contained in:
Cody Schafer 2014-05-09 19:10:08 -07:00
parent 8cb9ce9357
commit 13fcbed86e

View File

@ -296,6 +296,15 @@ choice
prompt "Floating point:"
depends on ARCH_SUPPORTS_WITH_FLOAT
config ARCH_FLOAT_AUTO
bool
prompt "auto (let gcc decide)"
help
Instead of explicitly passing a float option, don't
pass any float options and let gcc figure it out.
For multilib configurations, this may help.
config ARCH_FLOAT_HW
bool
prompt "hardware (FPU)"
@ -364,6 +373,7 @@ config TARGET_LDFLAGS
config ARCH_FLOAT
string
default "" if ! ARCH_SUPPORTS_WITH_FLOAT
default "auto" if ARCH_FLOAT_AUTO
default "hard" if ARCH_FLOAT_HW
default "soft" if ARCH_FLOAT_SW
default "softfp" if ARCH_FLOAT_SOFTFP