summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index 74978b0d1..373bda899 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -257,6 +257,13 @@ ifneq ($(GIT_SUBMODULES),)
$(Q)cd $(TOP) && git submodule sync $(GIT_SUBMODULES)
$(Q)cd $(TOP) && git submodule update --init --filter=blob:none $(GIT_SUBMODULES) || \
git submodule update --init $(GIT_SUBMODULES)
+else
+ifeq ($(GIT_SUBMODULES_FAIL_IF_EMPTY),1)
+ # If you see this error, it may mean the internal step run by the port's build
+ # system to find git submodules has failed. Double-check dependencies are set correctly.
+ $(ECHO) "Internal build error: The submodule list should not be empty."
+ exit 1
+endif
endif
.PHONY: submodules