From f6b57149af3edf52773f9c3abf5e5e0454bcb49c Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Fri, 29 Nov 2013 10:59:51 +0000 Subject: FPU type should not interfere with the ABI selection. Also make sure we either do real soft-float or hard-float on ARM, with the right options. Signed-off-by: Imre Kaloz SVN-Revision: 38943 --- rules.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 80e07d1..47ba928 100644 --- a/rules.mk +++ b/rules.mk @@ -168,9 +168,16 @@ TARGET_PATH_PKG:=$(STAGING_DIR)/host/bin:$(TARGET_PATH) ifeq ($(CONFIG_SOFT_FLOAT),y) SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft - TARGET_CFLAGS+= -msoft-float + ifeq ($(CONFIG_arm),y) + TARGET_CFLAGS+= -mfloat-abi=soft + else + TARGET_CFLAGS+= -msoft-float + endif else SOFT_FLOAT_CONFIG_OPTION:= + ifeq ($(CONFIG_arm),y) + TARGET_CFLAGS+= -mfloat-abi=hard + endif endif export PATH:=$(TARGET_PATH) -- cgit v1.1