The liboil Makefile will use "-mcpu=vfp" when building for ARM.

The VFP is only available for a few ARM CPUs at the moment,
so this breaks the liboil build.

A patch is available upstream which only enables "-mfpu=vfp"
if "--enable-vfp" is given to "configure".
Autotools needs to be run for liboil for this to take effect.

A new configuration BR2_VFP_FLOAT is added to allow enabling vfp.
If this is "yes", then "-mfpu=vfp" is added to CFLAGS.
This commit is contained in:
Ulf Samuelsson
2009-01-18 10:51:53 +00:00
parent c86f23b770
commit 6da70de503
4 changed files with 37 additions and 4 deletions

View File

@@ -42,8 +42,17 @@ config BR2_SOFT_FLOAT
Most people will answer N.
#config BR2_SOFT_FLOAT_FP
# bool "Use softfp"
config BR2_VFP_FLOAT
bool "Use ARM Vector Floating Point unit"
depends on !BR2_SOFT_FLOAT
depends on BR2_arm || BR2_armeb
help
Setting this option will enable the "-mfpu=vfp" option.
If your ARM CPU has a Vector Floating Point Unit (VFP)
and the toolchain supports the option, then the
code can be optimized.
Most people will answer N.
config BR2_TARGET_OPTIMIZATION
string "Target Optimizations"