Skip to content

Commit 0886bf4

Browse files
Tobias Thyrrestrupdpgeorge
Tobias Thyrrestrup
authored andcommitted
stm32/Makefile: Allow GIT_SUBMODULES and LIBS to be extended.
Signed-off-by: Tobias Thyrrestrup <[email protected]>
1 parent b352db7 commit 0886bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/stm32/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MBOOT_TEXT0_ADDR ?= 0x08000000
3434
# include py core make definitions
3535
include $(TOP)/py/py.mk
3636

37-
GIT_SUBMODULES = lib/libhydrogen lib/lwip lib/mbedtls lib/stm32lib
37+
GIT_SUBMODULES += lib/libhydrogen lib/lwip lib/mbedtls lib/stm32lib
3838

3939
MCU_SERIES_UPPER = $(shell echo $(MCU_SERIES) | tr '[:lower:]' '[:upper:]')
4040
CMSIS_MCU_LOWER = $(shell echo $(CMSIS_MCU) | tr '[:upper:]' '[:lower:]')
@@ -130,7 +130,7 @@ endif
130130

131131
LDFLAGS = -nostdlib -L $(LD_DIR) $(addprefix -T,$(LD_FILES)) -Map=$(@:.elf=.map) --cref
132132
LDFLAGS += --defsym=_estack_reserve=8
133-
LIBS = "$(shell $(CC) $(CFLAGS) -print-libgcc-file-name)"
133+
LIBS += "$(shell $(CC) $(CFLAGS) -print-libgcc-file-name)"
134134

135135
# Remove uncalled code from the final image.
136136
CFLAGS += -fdata-sections -ffunction-sections

0 commit comments

Comments
 (0)