1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

make: move cpu specific CFLAGS into cpu makefile

This commit is contained in:
Kaspar Schleiser 2015-05-26 10:41:30 +02:00
parent 625497e093
commit 302699eb02
2 changed files with 5 additions and 6 deletions

View File

@ -5,12 +5,6 @@ include $(RIOTBOARD)/Makefile.include.gnu
# use cortex name of CPU folder, but enable board Makefile to override
export MCPU ?= $(CORTEX)
#
# CPU model specifics
ifeq ($(CORTEX),cortex-m4)
CFLAGS_FPU += -mfloat-abi=hard -mfpu=fpv4-sp-d16
endif
# define build specific options
export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb -mno-thumb-interwork $(CFLAGS_FPU)
export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes

View File

@ -1,6 +1,11 @@
# This CPU implementation is using the new core/CPU interface:
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:
export USEMODULE += $(CORTEX)_common