stmhal/Makefile: Automatically fetch stm32lib submodule if needed.
This commit is contained in:
parent
293e81f31e
commit
6568001c00
@ -345,7 +345,12 @@ $(PY_BUILD)/formatfloat.o: COPT += -Os
|
|||||||
$(PY_BUILD)/parsenum.o: COPT += -Os
|
$(PY_BUILD)/parsenum.o: COPT += -Os
|
||||||
$(PY_BUILD)/mpprint.o: COPT += -Os
|
$(PY_BUILD)/mpprint.o: COPT += -Os
|
||||||
|
|
||||||
all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
|
all: $(TOP)/lib/stm32lib/README.md $(BUILD)/firmware.dfu $(BUILD)/firmware.hex
|
||||||
|
|
||||||
|
# For convenience, automatically fetch required submodules if they don't exist
|
||||||
|
$(TOP)/lib/stm32lib/README.md:
|
||||||
|
$(ECHO) "stm32lib submodule not found, fetching it now..."
|
||||||
|
(cd $(TOP) && git submodule update --init lib/stm32lib)
|
||||||
|
|
||||||
ifneq ($(FROZEN_DIR),)
|
ifneq ($(FROZEN_DIR),)
|
||||||
# To use frozen source modules, put your .py files in a subdirectory (eg scripts/)
|
# To use frozen source modules, put your .py files in a subdirectory (eg scripts/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user