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:25 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-07-03 00:07:12 +0200
commit54adff55d5759c6b5143165e6ffe1e12e402161d (patch)
tree811d863a45164c545321a3926325bc71c6b3991b /package/pkg-download.mk
parent45261f1fb7d6ab14e858580080b24e1a3bd5575c (diff)
downloadbuildroot-54adff55d5759c6b5143165e6ffe1e12e402161d.tar.gz
buildroot-54adff55d5759c6b5143165e6ffe1e12e402161d.tar.bz2
pkg-infra: move the scp 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 e420b0516c..eec91b8665 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -14,7 +14,7 @@ export CVS := $(call qstrip,$(BR2_CVS))
export BZR := $(call qstrip,$(BR2_BZR))
export GIT := $(call qstrip,$(BR2_GIT))
export HG := $(call qstrip,$(BR2_HG)) $(QUIET)
-SCP := $(call qstrip,$(BR2_SCP)) $(QUIET)
+export SCP := $(call qstrip,$(BR2_SCP)) $(QUIET)
SSH := $(call qstrip,$(BR2_SSH)) $(QUIET)
LOCALFILES := $(call qstrip,$(BR2_LOCALFILES))
@@ -147,7 +147,8 @@ endef
# to prepend the path with a slash: scp://[user@]host:/absolutepath
define DOWNLOAD_SCP
test -e $(DL_DIR)/$(2) || \
- $(SCP) '$(call stripurischeme,$(call qstrip,$(1)))' $(DL_DIR)/$(2)
+ $(EXTRA_ENV) support/download/scp '$(call stripurischeme,$(call qstrip,$(1)))' \
+ $(DL_DIR)/$(2)
endef
define SOURCE_CHECK_SCP