Build is still downloading submodules when they are already provided
This is the problem for packages which can't have any downloads during build, and which build from tarballs, not from git-cloned repositories.
Even when all github submodules are already downloaded, the build still looks for git, and then it looks for the $(TOPDIR)/.git
directory.
The offending lines are:
define update_submodule
@(echo initializing $(1)/$(2) submodule ...)
@(if test ! `command -v git` ; then echo "git not found. Please make sure git is installed."; exit 1; fi)
@(if test -d $(TOPDIR)/.git ; then \
cd $(TOPDIR) && git submodule update --depth 1 -- $(1)/$(2) && cd -; \
else \
Instead, the build should check whether the directory is not empty and just accept the files that are already present there as pre-downloaded submodule files.