mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03:00
core/pkg-infra: download git submodules if the package wants them
Add a new package variable that packages can set to specify that they need git submodules. Only accept this option if the download method is git, as we can not get submodules via an http download (via wget). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Aleksandar Simeonov <aleksandar@barix.com> Tested-by: Matt Weber <matt@thewebers.ws> Reviewed-by: Matt Weber <matt@thewebers.ws> Tested-By: Nicolas Cavallari <nicolas.cavallari@green-communications.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
f109e7eeb5
commit
ec3e057f79
@@ -468,6 +468,14 @@ ifndef $(2)_SITE_METHOD
|
||||
endif
|
||||
endif
|
||||
|
||||
# Do not accept to download git submodule if not using the git method
|
||||
ifneq ($$($(2)_GIT_SUBMODULES),)
|
||||
ifneq ($$($(2)_SITE_METHOD),git)
|
||||
$$(error $(2) declares having git sub-modules, but does not use the \
|
||||
'git' method (uses '$$($(2)_SITE_METHOD)' instead))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($$($(2)_SITE_METHOD),local)
|
||||
ifeq ($$($(2)_OVERRIDE_SRCDIR),)
|
||||
$(2)_OVERRIDE_SRCDIR = $$($(2)_SITE)
|
||||
|
||||
Reference in New Issue
Block a user