Browse Source

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

master
Solomon Peachy 3 years ago
parent
commit
f0b846c40a
  1. 4
      libs/efm32g.mk
  2. 4
      libs/efm32gg.mk
  3. 4
      libs/efm32lg.mk
  4. 4
      libs/efm32tg.mk
  5. 4
      libs/efm32wg.mk
  6. 4
      libs/samd20.mk
  7. 4
      libs/stm32f0xx.mk
  8. 4
      libs/stm32f10x.mk
  9. 4
      libs/stm32f2xx.mk
  10. 4
      libs/stm32f30x.mk
  11. 4
      libs/stm32f37x.mk
  12. 4
      libs/stm32l1xx.mk

4
libs/efm32g.mk

@ -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 =

4
libs/efm32gg.mk

@ -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 =

4
libs/efm32lg.mk

@ -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 =

4
libs/efm32tg.mk

@ -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 =

4
libs/efm32wg.mk

@ -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 =

4
libs/samd20.mk

@ -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 \

4
libs/stm32f0xx.mk

@ -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

4
libs/stm32f10x.mk

@ -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

4
libs/stm32f2xx.mk

@ -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

4
libs/stm32f30x.mk

@ -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

4
libs/stm32f37x.mk

@ -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

4
libs/stm32l1xx.mk

@ -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

Loading…
Cancel
Save