Fixed ARMv7-M Toolchain setting.

- Cortex-M4 only have Single Precision FPU.
This commit is contained in:
Hidetaka Takano 2017-06-14 11:24:19 +09:00
parent 9edf43abc1
commit 5591fc6b16

View File

@ -128,11 +128,7 @@ ifeq ($(CONFIG_ARCH_CORTEXM4),y)
TOOLCHAIN_MTUNE := -mtune=cortex-m4
TOOLCHAIN_MARCH := -march=armv7e-m
ifeq ($(CONFIG_ARCH_FPU),y)
ifeq ($(CONFIG_ARCH_DPFPU),y)
TOOLCHAIN_MFLOAT := -mfpu=fpv4-sp -mfloat-abi=hard
else
TOOLCHAIN_MFLOAT := -mfpu=fpv4-sp-d16 -mfloat-abi=hard
endif
else
TOOLCHAIN_MFLOAT := -mfloat-abi=soft
endif