Move STM32 bootloader address config to separate .h file.

This commit is contained in:
flabbergast 2015-10-05 10:23:31 +01:00
parent 438559f11d
commit 88c053f78e
6 changed files with 51 additions and 31 deletions

View file

@ -207,6 +207,14 @@ UDEFS = $(OPT_DEFS)
# Define ASM defines here
UADEFS = $(OPT_DEFS)
# bootloader definitions may be used in the startup .s file
ifneq ("$(wildcard $(TARGET_DIR)/bootloader_defs.h)","")
UADEFS += -include $(TARGET_DIR)/bootloader_defs.h
UDEFS += -include $(TARGET_DIR)/bootloader_defs.h
else ifneq ("$(wildcard $(TARGET_DIR)/boards/$(BOARD)/bootloader_defs.h)","")
UADEFS += -include $(TARGET_DIR)/boards/$(BOARD)/bootloader_defs.h
UDEFS += -include $(TARGET_DIR)/boards/$(BOARD)/bootloader_defs.h
endif
# List all user directories here
UINCDIR =