From a3bc3418787d8a287aa5f7ac78963dd9d04fe56c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de> Date: Mon, 29 Jan 2018 15:15:18 +0100 Subject: [PATCH] cortexm.inc.mk: allow configuring vectors.o path This allows providing 'vectors.o' by another module than 'cpu' by overwriting VECTORS_O variable. --- makefiles/arch/cortexm.inc.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefiles/arch/cortexm.inc.mk b/makefiles/arch/cortexm.inc.mk index ad8dddfa96..8c7377c738 100644 --- a/makefiles/arch/cortexm.inc.mk +++ b/makefiles/arch/cortexm.inc.mk @@ -85,8 +85,9 @@ endif # Explicitly tell the linker to link the startup code. # Without this the interrupt vectors will not be linked correctly! +VECTORS_O ?= $(BINDIR)/cpu/vectors.o ifeq ($(COMMON_STARTUP),) -export UNDEF += $(BINDIR)/cpu/vectors.o +export UNDEF += $(VECTORS_O) endif # CPU depends on the cortex-m common module, so include it: -- GitLab