From 0886bf46ca31148b33d3b99d3c68e5b8359d7c5d Mon Sep 17 00:00:00 2001 From: Tobias Thyrrestrup Date: Tue, 17 Aug 2021 13:16:39 +0200 Subject: [PATCH] stm32/Makefile: Allow GIT_SUBMODULES and LIBS to be extended. Signed-off-by: Tobias Thyrrestrup --- ports/stm32/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 20426861b0..a6804ee616 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -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