summaryrefslogtreecommitdiff
path: root/include/target.mk
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2013-11-29 10:44:04 +0000
committerImre Kaloz <kaloz@openwrt.org>2013-11-29 10:44:04 +0000
commit7429c4621455ff3e66819a28c09f78ffd74c2ebc (patch)
tree52eb361b9df767faf32b5227ba3eaaaa2a19c29e /include/target.mk
parent5de876bc78b7b47db6dd369067e87c254fd467e7 (diff)
downloadmtk-20170518-7429c4621455ff3e66819a28c09f78ffd74c2ebc.zip
mtk-20170518-7429c4621455ff3e66819a28c09f78ffd74c2ebc.tar.gz
mtk-20170518-7429c4621455ff3e66819a28c09f78ffd74c2ebc.tar.bz2
ignore the fpu if we're doing soft-float
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 38941
Diffstat (limited to 'include/target.mk')
-rw-r--r--include/target.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/target.mk b/include/target.mk
index 7ca556e..0f3145d 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