build: Explicitly set -mfloat-abi=soft for all non-FPU targets.

This commit is contained in:
Solomon Peachy 2020-01-01 22:34:58 -05:00
parent dfd5c4ed80
commit f0b846c40a
12 changed files with 24 additions and 24 deletions

View File

@ -5,8 +5,8 @@ MCU_CORE=cm3
include $(LIBDIR)/efm32_common.mk
# Set up CFLAGS
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# Any specific target?
EFM32G_OBJS =

View File

@ -5,8 +5,8 @@ MCU_CORE=cm3
include $(LIBDIR)/efm32_common.mk
# Set up CFLAGS
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# Any specific target?
EFM32GG_OBJS =

View File

@ -5,8 +5,8 @@ MCU_CORE=cm3
include $(LIBDIR)/efm32_common.mk
# Set up CFLAGS
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# Any specific target?
EFM32LG_OBJS =

View File

@ -5,8 +5,8 @@ MCU_CORE=cm3
include $(LIBDIR)/efm32_common.mk
# Set up CFLAGS
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# Any specific target?
EFM32TG_OBJS =

View File

@ -6,8 +6,8 @@ include $(LIBDIR)/efm32_common.mk
# Set up CFLAGS
MATH_CPPFLAGS += -D__FPU_PRESENT=1
MCU_CFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
MCU_CXXFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
# Any specific target?
EFM32WG_OBJS =

View File

@ -19,8 +19,8 @@ MCU_INCLUDE += -I$(LIBDIR)/ATMEL/common/utils/interrupt
# Set up CFLAGS
MCU_CPPFLAGS += -D__$(shell echo -n $(MCU_SUBTYPE) | tr a-z A-Z )__
MCU_CFLAGS += -mcpu=cortex-m0plus -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m0plus -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m0plus -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m0plus -mthumb -Wa,-mthumb -mfloat-abi=soft
# CMSIS & Peripheral Library
STARTUP_OBJS = utils/cmsis/samd20/source/system_samd20.o \

View File

@ -6,8 +6,8 @@ MCU_INCLUDE += -I$(LIBDIR)/STM32F0xx_StdPeriph_Driver/inc
# Set up CFLAGS
MCU_CPPFLAGS += -D"assert_param(expr)=((void)0)"
MCU_CFLAGS += -mcpu=cortex-m0 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m0 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m0 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m0 -mthumb -Wa,-mthumb -mfloat-abi=soft
# CMSIS
STARTUP_OBJS = $(LIBDIR)/CMSIS/Device/ST/STM32F0xx/Source/Templates/system_stm32f0xx.o $(LIBDIR)/startup_$(MCU).o

View File

@ -7,8 +7,8 @@ MCU_INCLUDE += -I$(LIBDIR)/STM32F10x_StdPeriph_Driver/inc
# Set up CFLAGS
MCU_CPPFLAGS += -D$(shell echo -n $(MCU_SUBTYPE) | tr a-z A-Z )
MCU_CPPFLAGS += -D"assert_param(expr)=((void)0)"
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# CMSIS
STARTUP_OBJS = $(LIBDIR)/CMSIS/Device/ST/STM32F10x/Source/Templates/system_stm32f10x.o $(LIBDIR)/startup_$(MCU_SUBTYPE).o

View File

@ -6,8 +6,8 @@ MCU_INCLUDE += -I$(LIBDIR)/STM32F2xx_StdPeriph_Driver/inc
# Set up CFLAGS
MCU_CPPFLAGS += -D"assert_param(expr)=((void)0)"
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# CMSIS
STARTUP_OBJS = $(LIBDIR)/CMSIS/Device/ST/STM32F2xx/Source/Templates/system_stm32f2xx.o $(LIBDIR)/startup_$(MCU).o

View File

@ -7,8 +7,8 @@ MCU_INCLUDE += -I$(LIBDIR)/STM32F30x_StdPeriph_Driver/inc
# Set up CFLAGS
MATH_CPPFLAGS += -D__FPU_PRESENT=1
MCU_CPPFLAGS += -D"assert_param(expr)=((void)0)"
MCU_CFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard
MCU_CXXFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard
# CMSIS
STARTUP_OBJS = $(LIBDIR)/CMSIS/Device/ST/STM32F30x/Source/Templates/system_stm32f30x.o $(LIBDIR)/startup_$(MCU).o

View File

@ -7,8 +7,8 @@ MCU_INCLUDE += -I$(LIBDIR)/STM32F37x_StdPeriph_Driver/inc
# Set up CFLAGS
MATH_CPPFLAGS += -D__FPU_PRESENT=1
MCU_CPPFLAGS += -D"assert_param(expr)=((void)0)"
MCU_CFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard
MCU_CXXFLAGS += -mcpu=cortex-m4 -mthumb -Wa,-mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard
# CMSIS
STARTUP_OBJS = $(LIBDIR)/CMSIS/Device/ST/STM32F37x/Source/Templates/system_stm32f37x.o $(LIBDIR)/startup_$(MCU).o

View File

@ -7,8 +7,8 @@ MCU_INCLUDE += -I$(LIBDIR)/STM32L1xx_StdPeriph_Driver/inc
# Set up CFLAGS
MCU_CPPFLAGS += -D$(shell echo -n $(MCU_SUBTYPE) | tr a-z A-Z )
MCU_CPPFLAGS += -D"assert_param(expr)=((void)0)"
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb
MCU_CFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
MCU_CXXFLAGS += -mcpu=cortex-m3 -mthumb -Wa,-mthumb -mfloat-abi=soft
# CMSIS
STM32L1xx_OBJS = $(LIBDIR)/CMSIS/Device/ST/STM32L1xx/Source/Templates/system_stm32l1xx.o