Moved the BL_APP_VECTOR_TABLE_ADDRESS define into Makedefs.mk

This commit is contained in:
Kristian Sloth Lauszus
2018-05-02 02:35:03 +02:00
parent 2214f00667
commit b8268f55a3
2 changed files with 11 additions and 11 deletions

View File

@@ -19,8 +19,11 @@ SEMIHOSTING ?= 0
# Build directory.
BUILD_DIR ?= build_make
# Preprocessor directives.
BUILD_FLAGS += -D__NEWLIB__ -D__USE_CMSIS -D__MCUXPRESSO -DCPU_$(PART) -D__STARTUP_CLEAR_BSS
# Set default value (no bootloader) for the bootloader vector table address.
BL_APP_VECTOR_TABLE_ADDRESS ?= 0
# Preprocessor directives.
BUILD_FLAGS += -D__NEWLIB__ -D__USE_CMSIS -D__MCUXPRESSO -DCPU_$(PART) -D__STARTUP_CLEAR_BSS -DBL_APP_VECTOR_TABLE_ADDRESS=$(BL_APP_VECTOR_TABLE_ADDRESS)
# Path to project object file.
PROJECT_OBJ = $(BUILD_DIR)/$(PROJECT_NAME).axf
@@ -86,9 +89,6 @@ ifdef TRAVIS
CFLAGS += -Werror
endif
# Set default value for the bootloader vector table address.
BL_APP_VECTOR_TABLE_ADDRESS ?= 0
# The flags passed to the linker.
LDFLAGS = --specs=nano.specs -mthumb $(CPU) $(FPU) -T $(LDSCRIPT) -Wl,-Map=$(PROJECT_OBJ:.axf=.map),--gc-sections,-print-memory-usage,-no-wchar-size-warning,--defsym=__heap_size__=$(HEAP_SIZE),--defsym=__stack_size__=$(STACK_SIZE),--defsym=__bl_app_vector_table_address__=$(BL_APP_VECTOR_TABLE_ADDRESS)