Skip to content

Commit

Permalink
stm32/mboot/Makefile: Define "BUILDING_MBOOT" when building mboot.
Browse files Browse the repository at this point in the history
So boards can configure their settings based on whether mboot or the main
firmware is being built.
  • Loading branch information
dpgeorge committed Aug 28, 2019
1 parent b1e0484 commit 68d74b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ports/stm32/mboot/Makefile
Expand Up @@ -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)
Expand Down

0 comments on commit 68d74b0

Please sign in to comment.