diff options
| author | Damien George | 2019-08-22 11:16:01 +1000 |
|---|---|---|
| committer | Damien George | 2019-08-28 12:37:13 +1000 |
| commit | 68d74b00743124ade07df0876bd93034d3542780 (patch) | |
| tree | e2cc74fbd3a99d6ad65344ef6bb69f6d6e412293 | |
| parent | b1e04848ef62d20db42b0b30f24304307c4e6765 (diff) | |
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.
| -rwxr-xr-x | ports/stm32/mboot/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/mboot/Makefile b/ports/stm32/mboot/Makefile index f2c3baecc..19635b918 100755 --- a/ports/stm32/mboot/Makefile +++ b/ports/stm32/mboot/Makefile @@ -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) |
