[LEDE-DEV] [PATCH] prereq-mk: Change wget dependency to curl one.

Rosen Penev rosenp at gmail.com
Fri Mar 9 10:05:47 PST 2018


curl is more common than GNU wget is. For example, Cygwin, Arch Linux, and my android phone all come with curl by default whereas wget is missing.

Also, scripts/download.pl attempts to use curl before falling back to wget.

This has been tested on a brand new install of Arch Linux.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 include/prereq-build.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 6a423d2c7d..609c4dc88e 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -136,8 +136,8 @@ $(eval $(call SetupHostCommand,unzip,Please install 'unzip', \
 $(eval $(call SetupHostCommand,bzip2,Please install 'bzip2', \
 	bzip2 --version </dev/null))
 
-$(eval $(call SetupHostCommand,wget,Please install GNU 'wget', \
-	wget --version | grep GNU))
+$(eval $(call SetupHostCommand,curl,Please install "curl", \
+	curl --version | grep curl))
 
 $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
 	perl --version | grep "perl.*v5"))
@@ -163,3 +163,4 @@ prereq: $(STAGING_DIR_HOST)/bin/mkhash
 $(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \
 	touch $(STAGING_DIR_HOST)/bin/ldconfig && \
 	chmod +x $(STAGING_DIR_HOST)/bin/ldconfig))
+
-- 
2.16.2




More information about the Lede-dev mailing list