16 lines
402 B
Makefile
16 lines
402 B
Makefile
|
|
# Added if USE_BOOTLOADER=yes in Makefile
|
|
BOOTLOADERSRC= $(PROJECT_DIR)/bootloader/bootloader_storage.c
|
|
|
|
ifeq ($(BOOTLOADERINC),)
|
|
BOOTLOADERINC=$(PROJECT_DIR)/bootloader
|
|
endif
|
|
|
|
USE_OPT += -Wl,--defsym=BOOTLOADER=1
|
|
|
|
# Add bootloader code to the firmware
|
|
DDEFS += -DEFI_BOOTLOADER_INCLUDE_CODE=TRUE
|
|
|
|
# Relocate interrupt vectors for the new application start address
|
|
DDEFS += -DCORTEX_VTOR_INIT=0x8000
|