From ce8b47b75c201bb96309d7486af6347774499093 Mon Sep 17 00:00:00 2001
From: Kaspar Schleiser <kaspar@schleiser.de>
Date: Thu, 11 Jun 2015 20:41:21 +0200
Subject: [PATCH] cpu: cortexm_common: set default value for CPU_MODEL

---
 cpu/Makefile.include.cortexm_common | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpu/Makefile.include.cortexm_common b/cpu/Makefile.include.cortexm_common
index 2c118460ff..a430cf7dc5 100644
--- a/cpu/Makefile.include.cortexm_common
+++ b/cpu/Makefile.include.cortexm_common
@@ -8,6 +8,9 @@ export USEMODULE += periph
 # all cortex MCU's use newlib as libc
 export USEMODULE += newlib
 
+# set default for CPU_MODEL
+export CPU_MODEL ?= $(CPU)
+
 # export the CPU model and architecture
 MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
 export CFLAGS += -DCPU_MODEL_$(MODEL)
-- 
GitLab