summaryrefslogtreecommitdiff
path: root/core/mk/pkg-macros/download.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/mk/pkg-macros/download.mk')
-rw-r--r--core/mk/pkg-macros/download.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/mk/pkg-macros/download.mk b/core/mk/pkg-macros/download.mk
index 6956075..a543bd5 100644
--- a/core/mk/pkg-macros/download.mk
+++ b/core/mk/pkg-macros/download.mk
@@ -33,10 +33,13 @@ __wget_foreignfiles = $(or $(strip $(3)),$(strip $(1)))
__wget_opts := --tries=5 --timeout=10 --waitretry=5
__wget_opts += --no-check-certificate
+# FIXME: move this logic to host-support.mk
+WGET ?= wget
+
define embtk_wget
- wget $(__wget_opts) -O $(__wget_outfile) \
+ $(WGET) $(__wget_opts) -O $(__wget_outfile) \
$(__wget_remotesite)/$(__wget_foreignfiles) || \
- wget $(__wget_opts) --no-passive-ftp -O $(__wget_outfile) \
+ $(WGET) $(__wget_opts) --no-passive-ftp -O $(__wget_outfile) \
$(__wget_remotesite)/$(__wget_foreignfiles)
endef