aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-download.mk
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-07-02 23:11:26 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-07-03 00:07:57 +0200
commit283b8b7feaccbe23decc69c2b3300b2a2d74d02d (patch)
tree27284ce46946436020a64b836b8afa02e3fb8b93 /package/pkg-download.mk
parent54adff55d5759c6b5143165e6ffe1e12e402161d (diff)
downloadbuildroot-283b8b7feaccbe23decc69c2b3300b2a2d74d02d.tar.gz
buildroot-283b8b7feaccbe23decc69c2b3300b2a2d74d02d.tar.bz2
pkg-infra: move the cp (aka localfiles) download helper to a script
Maintaining the download helpers in the Makefile has proved to be a bit complex, so move it to a shell script. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/pkg-download.mk')
-rw-r--r--package/pkg-download.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index eec91b8665..d3cd0c144e 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -16,7 +16,7 @@ export GIT := $(call qstrip,$(BR2_GIT))
export HG := $(call qstrip,$(BR2_HG)) $(QUIET)
export SCP := $(call qstrip,$(BR2_SCP)) $(QUIET)
SSH := $(call qstrip,$(BR2_SSH)) $(QUIET)
-LOCALFILES := $(call qstrip,$(BR2_LOCALFILES))
+export LOCALFILES := $(call qstrip,$(BR2_LOCALFILES))
# Default spider mode is 'DOWNLOAD'. Other possible values are 'SOURCE_CHECK'
# used by the _source-check target and 'SHOW_EXTERNAL_DEPS', used by the
@@ -192,7 +192,8 @@ endef
define DOWNLOAD_LOCALFILES
test -e $(DL_DIR)/$(2) || \
- $(LOCALFILES) $(call stripurischeme,$(call qstrip,$(1))) $(DL_DIR)
+ $(EXTRA_ENV) support/download/cp $(call stripurischeme,$(call qstrip,$(1))) \
+ $(DL_DIR)
endef
define SOURCE_CHECK_LOCALFILES