stm32/mboot/Makefile: Define "BUILDING_MBOOT" when building mboot.

So boards can configure their settings based on whether mboot or the main
firmware is being built.
This commit is contained in:
Damien George 2019-08-22 11:16:01 +10:00
parent b1e04848ef
commit 68d74b0074
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>'
CFLAGS += -DBOARD_$(BOARD)
CFLAGS += -DAPPLICATION_ADDR=$(TEXT0_ADDR)
CFLAGS += -DFFCONF_H=\"ports/stm32/mboot/ffconf.h\"
CFLAGS += -DBUILDING_MBOOT=1
LDFLAGS = -nostdlib -L . -T stm32_generic.ld -Map=$(@:.elf=.map) --cref
LIBS = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)