Skip to content

Commit

Permalink
make: move cpu specific CFLAGS into cpu makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed May 26, 2015
1 parent 625497e commit 302699e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions boards/Makefile.include.cortex_common
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions cpu/Makefile.include.cortex_common
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 302699e

Please sign in to comment.