build system: Print a WARNING if any submodule is out of date

Inspired by Github #27 and related "gotchas" with keeping submodules up to date.
This commit is contained in:
Angus Gratton
2016-10-04 16:33:18 +11:00
parent 71c09d8f66
commit 79bd6af7e7
4 changed files with 19 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib/lib%.a,$(LIBS))
# automatically trigger a git submodule update
# if any libraries are missing
$(eval $(call SubmoduleRequiredForFiles,$(ALL_LIB_FILES)))
$(eval $(call SubmoduleCheck,$(ALL_LIB_FILES),$(COMPONENT_PATH)/lib))
# this is a hack to make sure the app is re-linked if the binary
# libraries change or are updated. If they change, the main esp32