From cd63d41bff81dd3916da382811ca2edef4d90dca Mon Sep 17 00:00:00 2001 From: Jonathan L Date: Fri, 11 Aug 2017 12:54:51 +0200 Subject: Build system: allow WGET tool to be specified by user Signed-off-by: Jonathan L Signed-off-by: Abdoulaye Walsimou GAYE --- core/mk/pkg-macros/download.mk | 7 +++++-- 1 file 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 -- cgit v1.2.3