ignore the fpu if we're doing soft-float
authorImre Kaloz <kaloz@openwrt.org>
Fri, 29 Nov 2013 10:44:04 +0000 (10:44 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Fri, 29 Nov 2013 10:44:04 +0000 (10:44 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 38941

include/target.mk

index 7ca556e5558be231a62cc134178f62f5bd3393f0..0f3145df593afe76409d1abd74d287db89b1ac78 100644 (file)
@@ -231,8 +231,10 @@ ifeq ($(DUMP),1)
     CPU_CFLAGS_fa526 = -march=armv4 -mtune=fa526
     CPU_CFLAGS_mpcore = -march=armv6k -mtune=mpcore
     CPU_CFLAGS_xscale = -march=armv5te -mtune=xscale
-    CPU_CFLAGS_vfp = -mfpu=vfp -mfloat-abi=softfp
-    CPU_CFLAGS_vfpv3 = -mfpu=vfpv3-d16 -mfloat-abi=softfp
+    ifneq ($(CONFIG_SOFT_FLOAT),)
+      CPU_CFLAGS_vfp = -mfpu=vfp -mfloat-abi=softfp
+      CPU_CFLAGS_vfpv3 = -mfpu=vfpv3-d16 -mfloat-abi=softfp
+    endif
   endif
   ifeq ($(ARCH),powerpc)
     CPU_CFLAGS_603e:=-mcpu=603e