Commit 0886bf46 authored by Tobias Thyrrestrup's avatar Tobias Thyrrestrup Committed by Damien George

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

Signed-off-by: default avatarTobias Thyrrestrup <tt@LEGO.com>
parent b352db7a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment