Skip to content
Snippets Groups Projects
Commit 302699eb authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

make: move cpu specific CFLAGS into cpu makefile

parent 625497e0
No related branches found
No related tags found
No related merge requests found
...@@ -5,12 +5,6 @@ include $(RIOTBOARD)/Makefile.include.gnu ...@@ -5,12 +5,6 @@ include $(RIOTBOARD)/Makefile.include.gnu
# use cortex name of CPU folder, but enable board Makefile to override # use cortex name of CPU folder, but enable board Makefile to override
export MCPU ?= $(CORTEX) export MCPU ?= $(CORTEX)
#
# CPU model specifics
ifeq ($(CORTEX),cortex-m4)
CFLAGS_FPU += -mfloat-abi=hard -mfpu=fpv4-sp-d16
endif
# define build specific options # define build specific options
export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb -mno-thumb-interwork $(CFLAGS_FPU) export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb -mno-thumb-interwork $(CFLAGS_FPU)
export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes
......
# This CPU implementation is using the new core/CPU interface: # This CPU implementation is using the new core/CPU interface:
export CFLAGS += -DCOREIF_NG=1 export CFLAGS += -DCOREIF_NG=1
# CPU model specifics
ifeq ($(CORTEX),cortex-m4)
export CFLAGS_FPU += -mfloat-abi=hard -mfpu=fpv4-sp-d16
endif
# Tell the build system that the CPU depends on the Cortex-M common files: # Tell the build system that the CPU depends on the Cortex-M common files:
export USEMODULE += $(CORTEX)_common export USEMODULE += $(CORTEX)_common
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment