py/mkrules.mk: Fix 'make submodules' when building out-of-tree.
When MicroPython is used as a submodule and built from the containing project, e.g. for the embed port, `make submodules` fails because it goes looking for the sub-sub-module paths in the outer repository instead of in the micropython repository. Fix this by invoking git inside the micropython submodule. Signed-off-by: Christian Walther <cwalther@gmx.ch>
This commit is contained in:
committed by
Damien George
parent
6c3dc0c0b0
commit
0b7f6e1d3d
@@ -251,8 +251,8 @@ endif
|
|||||||
submodules:
|
submodules:
|
||||||
$(ECHO) "Updating submodules: $(GIT_SUBMODULES)"
|
$(ECHO) "Updating submodules: $(GIT_SUBMODULES)"
|
||||||
ifneq ($(GIT_SUBMODULES),)
|
ifneq ($(GIT_SUBMODULES),)
|
||||||
$(Q)git submodule sync $(addprefix $(TOP)/,$(GIT_SUBMODULES))
|
$(Q)cd $(TOP) && git submodule sync $(GIT_SUBMODULES)
|
||||||
$(Q)git submodule update --init $(addprefix $(TOP)/,$(GIT_SUBMODULES))
|
$(Q)cd $(TOP) && git submodule update --init $(GIT_SUBMODULES)
|
||||||
endif
|
endif
|
||||||
.PHONY: submodules
|
.PHONY: submodules
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user