aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-download.mk
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2016-07-01 11:01:19 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-07-02 19:11:14 +0200
commitec3e057f79117d851c37f19316a3b9b5e2470550 (patch)
tree374d1fdd9d4b6e05a12e43e81ee5de087486f076 /package/pkg-download.mk
parentf109e7eeb53ecfa084f80899646b68fb6dff021d (diff)
downloadbuildroot-ec3e057f79117d851c37f19316a3b9b5e2470550.tar.gz
buildroot-ec3e057f79117d851c37f19316a3b9b5e2470550.tar.bz2
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>
Diffstat (limited to 'package/pkg-download.mk')
-rw-r--r--package/pkg-download.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index a0f694d0fd..315203f331 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -76,6 +76,7 @@ export BR_NO_CHECK_HASH_FOR =
define DOWNLOAD_GIT
$(EXTRA_ENV) $(DL_WRAPPER) -b git \
-o $(DL_DIR)/$($(PKG)_SOURCE) \
+ $(if $($(PKG)_GIT_SUBMODULES),-r) \
$(QUIET) \
-- \
$($(PKG)_SITE) \