summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-29 10:44:04 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-29 10:44:04 +0000
commit3bb819031d7dcfddfb89bf1b8d374d641ab1ab6e (patch)
tree21763963ac3821ac767113bbe5d11d2c3055f92b /include
parentb33d30d9ae4aa21f2733872d9e27aa9839d652cd (diff)
ignore the fpu if we're doing soft-float
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38941 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/target.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/target.mk b/include/target.mk
index 7ca556e555..0f3145df59 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -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