From f3a7515d34b27ba18bc2cd01b8e6566a6344d017 Mon Sep 17 00:00:00 2001 From: Hauke Petersen <hauke.petersen@fu-berlin.de> Date: Fri, 29 May 2015 13:56:41 +0200 Subject: [PATCH] cpu/cortexm: disabled hard floats for M4F CPUs --- cpu/Makefile.include.cortexm_common | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cpu/Makefile.include.cortexm_common b/cpu/Makefile.include.cortexm_common index d1fd0bf0b8..c58fcfbe4b 100644 --- a/cpu/Makefile.include.cortexm_common +++ b/cpu/Makefile.include.cortexm_common @@ -16,11 +16,13 @@ export CFLAGS += -DCPU_ARCH_$(ARCH) # set the compiler specific CPU and FPU options ifeq ($(CPU_ARCH),cortex-m4f) -export CFLAGS_FPU += -mfloat-abi=hard -mfpu=fpv4-sp-d16 +# TODO: enable hard floating points for the M4F once the context save/restore +# code is adjusted to take care of FPU registers +#export CFLAGS_FPU += -mfloat-abi=hard -mfpu=fpv4-sp-d16 export MCPU := cortex-m4 -else -export MCPU ?= $(CPU_ARCH) endif +CFLAGS_FPU ?= -mfloat-abi=soft +export MCPU ?= $(CPU_ARCH) # Include CPU specific includes: export INCLUDES += -I$(RIOTCPU)/$(CPU)/include -- GitLab