diff options
author | Jonathan L <jlynam@gmail.com> | 2017-08-11 12:54:51 +0200 |
---|---|---|
committer | Abdoulaye Walsimou GAYE <awg@embtoolkit.org> | 2017-08-11 12:54:51 +0200 |
commit | cd63d41bff81dd3916da382811ca2edef4d90dca (patch) | |
tree | 0f260d95a183263fa7dc0e7d1dc0aadeff87a258 /core | |
parent | bce538c5c252341a6cb896e1a3722a54865785a3 (diff) | |
download | embtoolkit-cd63d41bff81dd3916da382811ca2edef4d90dca.tar.gz embtoolkit-cd63d41bff81dd3916da382811ca2edef4d90dca.tar.bz2 embtoolkit-cd63d41bff81dd3916da382811ca2edef4d90dca.tar.xz |
Build system: allow WGET tool to be specified by user
Signed-off-by: Jonathan L <jlynam@gmail.com>
Signed-off-by: Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/mk/pkg-macros/download.mk | 7 |
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 |