8000 py/mkrules.mk: Fix 'make submodules' when building out-of-tree. · micropython/micropython@0b7f6e1 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 0b7f6e1

Browse files
cwaltherdpgeorge
authored andcommitted
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>
1 parent 6c3dc0c commit 0b7f6e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/mkrules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ endif
251251
submodules:
252252
$(ECHO) "Updating submodules: $(GIT_SUBMODULES)"
253253
ifneq ($(GIT_SUBMODULES),)
254-
$(Q)git submodule sync $(addprefix $(TOP)/,$(GIT_SUBMODULES))
255-
$(Q)git submodule update --init $(addprefix $(TOP)/,$(GIT_SUBMODULES))
254+
$(Q)cd $(TOP) && git submodule sync $(GIT_SUBMODULES)
255+
$(Q)cd $(TOP) && git submodule update --init $(GIT_SUBMODULES)
256256
endif
257257
.PHONY: submodules
258258

0 commit comments

Comments
 (0)
0