stm32/Makefile: Allow GIT_SUBMODULES and LIBS to be extended.

Signed-off-by: Tobias Thyrrestrup <tt@LEGO.com>
This commit is contained in:
Tobias Thyrrestrup 2021-08-17 13:16:39 +02:00 committed by Damien George
parent b352db7a63
commit 0886bf46ca

View File

@ -34,7 +34,7 @@ MBOOT_TEXT0_ADDR ?= 0x08000000
# include py core make definitions
include $(TOP)/py/py.mk
GIT_SUBMODULES = lib/libhydrogen lib/lwip lib/mbedtls lib/stm32lib
GIT_SUBMODULES += lib/libhydrogen lib/lwip lib/mbedtls lib/stm32lib
MCU_SERIES_UPPER = $(shell echo $(MCU_SERIES) | tr '[:lower:]' '[:upper:]')
CMSIS_MCU_LOWER = $(shell echo $(CMSIS_MCU) | tr '[:upper:]' '[:lower:]')
@ -130,7 +130,7 @@ endif
LDFLAGS = -nostdlib -L $(LD_DIR) $(addprefix -T,$(LD_FILES)) -Map=$(@:.elf=.map) --cref
LDFLAGS += --defsym=_estack_reserve=8
LIBS = "$(shell $(CC) $(CFLAGS) -print-libgcc-file-name)"
LIBS += "$(shell $(CC) $(CFLAGS) -print-libgcc-file-name)"
# Remove uncalled code from the final image.
CFLAGS += -fdata-sections -ffunction-sections