stmhal/Makefile: Automatically fetch stm32lib submodule if needed.

This commit is contained in:
Damien George 2017-08-29 13:50:24 +10:00
parent 293e81f31e
commit 6568001c00
1 changed files with 6 additions and 1 deletions

View File

@ -345,7 +345,12 @@ $(PY_BUILD)/formatfloat.o: COPT += -Os
$(PY_BUILD)/parsenum.o: COPT += -Os
$(PY_BUILD)/mpprint.o: COPT += -Os
all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
all: $(TOP)/lib/stm32lib/ $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
# For convenience, automatically fetch required submodules if they don't exist
$(ECHO) "stm32lib submodule not found, fetching it now..."
(cd $(TOP) && git submodule update --init lib/stm32lib)
ifneq ($(FROZEN_DIR),)
# To use frozen source modules, put your .py files in a subdirectory (eg scripts/)