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 <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38943 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
5f6881f7e2
commit
0fdebf9347
|
@ -232,8 +232,8 @@ ifeq ($(DUMP),1)
|
||||||
CPU_CFLAGS_mpcore = -march=armv6k -mtune=mpcore
|
CPU_CFLAGS_mpcore = -march=armv6k -mtune=mpcore
|
||||||
CPU_CFLAGS_xscale = -march=armv5te -mtune=xscale
|
CPU_CFLAGS_xscale = -march=armv5te -mtune=xscale
|
||||||
ifneq ($(CONFIG_SOFT_FLOAT),)
|
ifneq ($(CONFIG_SOFT_FLOAT),)
|
||||||
CPU_CFLAGS_vfp = -mfpu=vfp -mfloat-abi=softfp
|
CPU_CFLAGS_vfp = -mfpu=vfp
|
||||||
CPU_CFLAGS_vfpv3 = -mfpu=vfpv3-d16 -mfloat-abi=softfp
|
CPU_CFLAGS_vfpv3 = -mfpu=vfpv3-d16
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),powerpc)
|
ifeq ($(ARCH),powerpc)
|
||||||
|
|
|
@ -71,7 +71,7 @@ endif
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(UBOOT_CONFIG)_config
|
USE_PRIVATE_LIBGCC=yes $(UBOOT_CONFIG)_config
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
|
|
@ -73,7 +73,7 @@ endif
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(UBOOT_CONFIG)_config
|
USE_PRIVATE_LIBGCC=yes $(UBOOT_CONFIG)_config
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
|
9
rules.mk
9
rules.mk
|
@ -168,9 +168,16 @@ TARGET_PATH_PKG:=$(STAGING_DIR)/host/bin:$(TARGET_PATH)
|
||||||
|
|
||||||
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
||||||
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
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
|
else
|
||||||
SOFT_FLOAT_CONFIG_OPTION:=
|
SOFT_FLOAT_CONFIG_OPTION:=
|
||||||
|
ifeq ($(CONFIG_arm),y)
|
||||||
|
TARGET_CFLAGS+= -mfloat-abi=hard
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export PATH:=$(TARGET_PATH)
|
export PATH:=$(TARGET_PATH)
|
||||||
|
|
Loading…
Reference in New Issue