aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-download.mk
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2018-04-02 17:13:58 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-04-02 17:48:56 +0200
commite80d1d0af448c33f93a9a913cd0a34c406a29cf4 (patch)
tree3974c768ed01b40b7971f506540711052cf86737 /package/pkg-download.mk
parent5d2a018ddf950b53d1d50d09d3af92849d8f5994 (diff)
downloadbuildroot-e80d1d0af448c33f93a9a913cd0a34c406a29cf4.tar.gz
buildroot-e80d1d0af448c33f93a9a913cd0a34c406a29cf4.tar.bz2
core/download: look for archives in the global download dir first
For existing setups, the global donload directory may have a lot of the required archives, so look into there before attempting a download. We simply hard-link them if found there and not in the new per-package loaction. Then we resume the existing procedure (which means the new hardlink will get removed if it happened to not match the hash). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> 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 b7f1d43920..7ed95f2b2c 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -97,6 +97,7 @@ define DOWNLOAD
$(EXTRA_ENV) $(FLOCK) $(DL_WRAPPER) \
-c '$($(PKG)_DL_VERSION)' \
-d '$($(PKG)_DL_DIR)' \
+ -D '$(DL_DIR)' \
-f '$(notdir $(1))' \
-H '$(PKGDIR)/$($(PKG)_RAWNAME).hash' \
-n '$($(PKG)_BASENAME_RAW)' \