aboutsummaryrefslogtreecommitdiff
path: root/ports/minimal/Makefile
diff options
context:
space:
mode:
authorDamien George2019-07-01 22:41:47 +1000
committerDamien George2019-07-01 22:48:05 +1000
commit999733b1fb08fb07a31846115998dbf43a913327 (patch)
treecdbe6a82a952c154263a55eceefa2884d7dd3ad1 /ports/minimal/Makefile
parent9ca478913040d0fe6fe72582a432c400ec1386ac (diff)
minimal: Use soft float for CROSS=1 Cortex-M4 target.
When compiled with hard float the system should enable FP access when it starts or else FP instructions lead to a fault. But this minimal port does not enable (or use) FP and so, to keep it minimal, switch to use soft floating point. (This became an issue due to the recent commit 34c04d2319cdfae01ed7bf7f9e341d69b86d751a which saves/restores FP registers in the NLR state.)
Diffstat (limited to 'ports/minimal/Makefile')
-rw-r--r--ports/minimal/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/minimal/Makefile b/ports/minimal/Makefile
index 64ad3cc0b..b3e27509f 100644
--- a/ports/minimal/Makefile
+++ b/ports/minimal/Makefile
@@ -19,7 +19,7 @@ INC += -I$(BUILD)
ifeq ($(CROSS), 1)
DFU = $(TOP)/tools/dfu.py
PYDFU = $(TOP)/tools/pydfu.py
-CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
+CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -fsingle-precision-constant -Wdouble-promotion
CFLAGS = $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
LDFLAGS = -nostdlib -T stm32f405.ld -Map=$@.map --cref --gc-sections
else