py/mkrules.mk: Do submodule sync in "make submodules".

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2021-08-17 20:20:29 +10:00 committed by Damien George
parent 53145c4c5f
commit 85adc25558
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ 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)git submodule update --init $(addprefix $(TOP)/,$(GIT_SUBMODULES)) $(Q)git submodule update --init $(addprefix $(TOP)/,$(GIT_SUBMODULES))
endif endif
.PHONY: submodules .PHONY: submodules