summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Thyrrestrup <tt@LEGO.com>2021-08-17 13:16:39 +0200
committerDamien George <damien@micropython.org>2021-08-19 22:56:39 +1000
commit0886bf46ca31148b33d3b99d3c68e5b8359d7c5d (patch)
tree762d2779fbda06a2129c3a5cbbb792268fb71d03
parentb352db7a6394b77fc8aa173557d00b3d93a05231 (diff)
stm32/Makefile: Allow GIT_SUBMODULES and LIBS to be extended.
Signed-off-by: Tobias Thyrrestrup <tt@LEGO.com>
-rw-r--r--ports/stm32/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index 20426861b..a6804ee61 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