summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-01-01 22:34:58 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-01-01 22:34:58 -0500
commitc18c061c2f422d3fa1589e7d40aca62e23963e1d (patch)
tree1e545d8c545a407165df1da8a8812c7f1c433a45
parentbc06547e059f7d8be2913fedf26b07c71236c700 (diff)
downloadmcu_base-c18c061c2f422d3fa1589e7d40aca62e23963e1d.tar.gz
mcu_base-c18c061c2f422d3fa1589e7d40aca62e23963e1d.tar.bz2
mcu_base-c18c061c2f422d3fa1589e7d40aca62e23963e1d.zip
build: Explicitly set -mfloat-abi=soft for all non-FPU targets.
-rw-r--r--libs/efm32g.mk4
-rw-r--r--libs/efm32gg.mk4
-rw-r--r--libs/efm32lg.mk4
-rw-r--r--libs/efm32tg.mk4
-rw-r--r--libs/efm32wg.mk4
-rw-r--r--libs/samd20.mk4
-rw-r--r--libs/stm32f0xx.mk4
-rw-r--r--libs/stm32f10x.mk4
-rw-r--r--libs/stm32f2xx.mk4
-rw-r--r--libs/stm32f30x.mk4
-rw-r--r--libs/stm32f37x.mk4
-rw-r--r--libs/stm32l1xx.mk4
12 files changed, 24 insertions, 24 deletions
diff --git a/libs/efm32g.mk b/libs/efm32g.mk
index 044975b..351f9ef 100644
--- a/libs/efm32g.mk
+++ b/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 =
diff --git a/libs/efm32gg.mk b/libs/efm32gg.mk
index 26f91c3..30822f8 100644
--- a/libs/efm32gg.mk
+++ b/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 =
diff --git a/libs/efm32lg.mk b/libs/efm32lg.mk
index 332331d..4fbc57d 100644
--- a/libs/efm32lg.mk
+++ b/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 =
diff --git a/libs/efm32tg.mk b/libs/efm32tg.mk
index 0a90a59..a40b6f2 100644
--- a/libs/efm32tg.mk
+++ b/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 =
diff --git a/libs/efm32wg.mk b/libs/efm32wg.mk
index 67a303e..1b22ffb 100644
--- a/libs/efm32wg.mk
+++ b/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 =
diff --git a/libs/samd20.mk b/libs/samd20.mk
index b1d4b28..5947348 100644
--- a/libs/samd20.mk
+++ b/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 \
diff --git a/libs/stm32f0xx.mk b/libs/stm32f0xx.mk
index 8aaf16c..b3c222f 100644
--- a/libs/stm32f0xx.mk
+++ b/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
diff --git a/libs/stm32f10x.mk b/libs/stm32f10x.mk
index 875bee1..7552dc4 100644
--- a/libs/stm32f10x.mk
+++ b/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
diff --git a/libs/stm32f2xx.mk b/libs/stm32f2xx.mk
index 89308b4..c46cbf8 100644
--- a/libs/stm32f2xx.mk
+++ b/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
diff --git a/libs/stm32f30x.mk b/libs/stm32f30x.mk
index dd5dff9..dfb15fd 100644
--- a/libs/stm32f30x.mk
+++ b/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
diff --git a/libs/stm32f37x.mk b/libs/stm32f37x.mk
index 4f91b41..04719a9 100644
--- a/libs/stm32f37x.mk
+++ b/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
diff --git a/libs/stm32l1xx.mk b/libs/stm32l1xx.mk
index 08bb79c..8a5bcd1 100644
--- a/libs/stm32l1xx.mk
+++ b/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