From 302699eb02f66ac8cc2646975da17bfb16de31b8 Mon Sep 17 00:00:00 2001
From: Kaspar Schleiser <kaspar@schleiser.de>
Date: Tue, 26 May 2015 10:41:30 +0200
Subject: [PATCH] make: move cpu specific CFLAGS into cpu makefile

---
 boards/Makefile.include.cortex_common | 6 ------
 cpu/Makefile.include.cortex_common    | 5 +++++
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/boards/Makefile.include.cortex_common b/boards/Makefile.include.cortex_common
index 93965c98e8..521638cf8b 100644
--- a/boards/Makefile.include.cortex_common
+++ b/boards/Makefile.include.cortex_common
@@ -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
diff --git a/cpu/Makefile.include.cortex_common b/cpu/Makefile.include.cortex_common
index 1358aa985f..af4d0d8817 100644
--- a/cpu/Makefile.include.cortex_common
+++ b/cpu/Makefile.include.cortex_common
@@ -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
 
-- 
GitLab