From 6da70de5034ae3933c6d072378a8860078686200 Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Sun, 18 Jan 2009 10:51:53 +0000 Subject: 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. --- toolchain/Config.in.2 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'toolchain') diff --git a/toolchain/Config.in.2 b/toolchain/Config.in.2 index b8c151506..9fbe60c14 100644 --- a/toolchain/Config.in.2 +++ b/toolchain/Config.in.2 @@ -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" -- cgit v1.2.3