cortexm.inc.mk: allow configuring vectors.o path

This allows providing 'vectors.o' by another module than 'cpu' by overwriting
VECTORS_O variable.
This commit is contained in:
Gaëtan Harter 2018-01-29 15:15:18 +01:00
parent 21450612ab
commit a3bc341878

View File

@ -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: