From 7bc468a54e99143fadc11cf00131c8652e3d91b5 Mon Sep 17 00:00:00 2001
From: Johann Fischer <j.fischer@phytec.de>
Date: Wed, 27 May 2015 18:13:02 +0200
Subject: [PATCH] Makefile.include.cortex_common: enhancement for
 kinetis_common

Add a exception for common startup
---
 cpu/Makefile.include.cortexm_common | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpu/Makefile.include.cortexm_common b/cpu/Makefile.include.cortexm_common
index c58fcfbe4b..2c118460ff 100644
--- a/cpu/Makefile.include.cortexm_common
+++ b/cpu/Makefile.include.cortexm_common
@@ -29,7 +29,9 @@ export INCLUDES += -I$(RIOTCPU)/$(CPU)/include
 
 # Explicitly tell the linker to link the startup code.
 #   Without this the interrupt vectors will not be linked correctly!
+ifeq ($(COMMON_STARTUP),)
 export UNDEF += $(BINDIR)cpu/startup.o
+endif
 
 # CPU depends on the cortex-m common module, so include it:
 include $(RIOTCPU)/cortexm_common/Makefile.include
-- 
GitLab