Skip to content

Commit 8fdb110

Browse files
committed
micropython.mk: Register automatic git submodules handling.
Signed-off-by: Andrew Leech <[email protected]>
1 parent 6ea58dd commit 8fdb110

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

micropython.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,12 @@ SRC_USERMOD_LIB_C += $(shell find $(LVGL_DIR)/examples -type f -name "*.c")
100100
endif
101101

102102
SRC_USERMOD_C += $(LVGL_MPY)
103+
104+
# include lvgl submodule check in the micropython submodules rule.
105+
LVGL_SUBMODULES = lvgl pycparser
106+
submodules: lvgl_submodule
107+
lvgl_submodule:
108+
$(ECHO) "Updating submodules: $(LVGL_SUBMODULES)"
109+
$(Q)cd $(LVGL_BINDING_DIR) && git submodule sync $(LVGL_SUBMODULES)
110+
$(Q)cd $(LVGL_BINDING_DIR) && git submodule update --init $(LVGL_SUBMODULES)
111+
.PHONY: lvgl_submodule

0 commit comments

Comments
 (0)