Replace all wget with curl

wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2020-12-21 19:48:58 +08:00 committed by Xiang Xiao
parent ea5a9a08bc
commit 3040c59ae9
14 changed files with 15 additions and 24 deletions

View File

@ -35,7 +35,6 @@
include $(APPDIR)/Make.defs
WGET = wget
UNPACK = unzip
PACKEXT = .zip
@ -55,7 +54,7 @@ CSRCS = $(LIBCANARD_SRCDIR)$(DELIM)canard.c $(LIBCANARD_DRVDIR)$(DELIM)canard_nu
$(LIBCANARD_PACKNAME):
@echo "Downloading: $@"
$(Q) $(WGET) -O $@ $(LIBCANARD_URL)$(DELIM)$(LIBCANARD_VERSION)$(PACKEXT)
$(Q) curl -o $@ -L $(LIBCANARD_URL)$(DELIM)$(LIBCANARD_VERSION)$(PACKEXT)
$(LIBCANARD_UNPACKNAME): $(LIBCANARD_PACKNAME)
@echo "Unpacking: $< -> $@"

View File

@ -42,7 +42,6 @@ CONFIG_LV_EXAMPLES_URL ?= https://github.com/lvgl/lv_examples/archive
LVGL_EXAMPLES_VERSION = $(patsubst "%",%,$(strip $(CONFIG_LVGL_VERSION)))
LVGL_EXAMPLES_TARBALL = v$(LVGL_EXAMPLES_VERSION).zip
WGET ?= wget
LVGL_EXAMPLES_UNPACKNAME = lv_examples
UNPACK ?= unzip -o
@ -91,7 +90,7 @@ CXXFLAGS += ${shell $(DEFINE) "$(CC)" LV_LVGL_H_INCLUDE_SIMPLE} -Wno-format
$(LVGL_EXAMPLES_TARBALL):
@echo "Downloading: $(LVGL_EXAMPLES_TARBALL)"
$(Q) $(WGET) $(CONFIG_LV_EXAMPLES_URL)/$(LVGL_EXAMPLES_TARBALL)
$(Q) curl -O -L $(CONFIG_LV_EXAMPLES_URL)/$(LVGL_EXAMPLES_TARBALL)
$(LVGL_EXAMPLES_UNPACKNAME): $(LVGL_EXAMPLES_TARBALL)
@echo "Unpacking: $(LVGL_EXAMPLES_TARBALL) -> $(LVGL_EXAMPLES_UNPACKNAME)"

View File

@ -35,7 +35,6 @@
include $(APPDIR)/Make.defs
WGET = wget
CP = cp -R
UNPACK = tar -xzf
PACKEXT = .tar.gz
@ -81,7 +80,7 @@ CFLAGS += -DINI_HANDLER_LINENO=1
$(INIH_TARBALL):
@echo "Downloading: $@"
$(Q) $(WGET) -O $@ $(INIH_URL)/$@
$(Q) curl -L -o $@ $(INIH_URL)/$@
${Q} $(NXTOOLSDIR)/check-hash.sh sha256 $(INIH_SRC_SHA256) $@
$(INIH_SOURCES): $(INIH_TARBALL)

View File

@ -65,7 +65,6 @@ CONFIG_GRAPH_LVGL_URL ?= "https://github.com/lvgl/lvgl/archive"
LVGL_VERSION = $(patsubst "%",%,$(strip $(CONFIG_LVGL_VERSION)))
LVGL_TARBALL = v$(LVGL_VERSION).zip
WGET ?= wget
LVGL_UNPACKNAME = lvgl
UNPACK ?= unzip -o
@ -74,7 +73,7 @@ LVGL_UNPACKDIR = $(WD)/$(LVGL_UNPACKNAME)
$(LVGL_TARBALL):
@echo "Downloading: $(LVGL_TARBALL)"
$(Q) $(WGET) $(CONFIG_GRAPH_LVGL_URL)/$(LVGL_TARBALL)
$(Q) curl -O -L $(CONFIG_GRAPH_LVGL_URL)/$(LVGL_TARBALL)
$(LVGL_UNPACKNAME): $(LVGL_TARBALL)
@echo "Unpacking: $(LVGL_TARBALL) -> $(LVGL_UNPACKNAME)"

View File

@ -50,7 +50,7 @@ CFLAGS += -DDUK_CMDLINE_PRINTALERT_SUPPORT
$(DUKTAPE_TARBALL):
$(Q) echo "Downloading $(DUKTAPE_TARBALL)"
$(Q) wget $(DUKTAPE_URL)
$(Q) curl -O -L $(DUKTAPE_URL)
$(DUKTAPE_UNPACK): $(DUKTAPE_TARBALL)
$(Q) echo "Unpacking $(DUKTAPE_TARBALL) to $(DUKTAPE_UNPACK)"

View File

@ -49,7 +49,7 @@ MODULE = $(CONFIG_INTERPRETERS_QUICKJS)
$(QUICKJS_TARBALL):
$(Q) echo "Downloading $(QUICKJS_TARBALL)"
$(Q) wget $(QUICKJS_URL)
$(Q) curl -O -L $(QUICKJS_URL)
$(QUICKJS_UNPACK): $(QUICKJS_TARBALL)
$(Q) echo "Unpacking $(QUICKJS_TARBALL) to $(QUICKJS_UNPACK)"

View File

@ -49,7 +49,7 @@ MODULE = $(CONFIG_INTERPRETERS_WAMR)
$(WAMR_TARBALL):
$(Q) echo "Downloading $(WAMR_TARBALL)"
$(Q) wget $(WAMR_URL)
$(Q) curl -O -L $(WAMR_URL)
$(WAMR_UNPACK): $(WAMR_TARBALL)
$(Q) echo "Unpacking $(WAMR_TARBALL) to $(WAMR_UNPACK)"

View File

@ -61,7 +61,7 @@ MODULE = $(CONFIG_INTERPRETERS_WASM3)
$(WASM3_TARBALL):
$(Q) echo "Downloading $(WASM3_TARBALL)"
$(Q) wget $(WASM3_URL)
$(Q) curl -O -L $(WASM3_URL)
$(WASM3_UNPACK): $(WASM3_TARBALL)
$(Q) echo "Unpacking $(WASM3_TARBALL) to $(WASM3_UNPACK)"

View File

@ -46,7 +46,6 @@ CONFIG_NETUTILS_CJSON_VERSION ?= "1.7.10"
CJSON_VERSION = $(patsubst "%",%,$(strip $(CONFIG_NETUTILS_CJSON_VERSION)))
CJSON_TARBALL = v$(CJSON_VERSION).tar.gz
WGET ?= wget
CJSON_UNPACKNAME = cJSON-$(CJSON_VERSION)
UNPACK ?= tar -zxf
@ -64,7 +63,7 @@ CSRCS += $(CJSON_SRCDIR)$(DELIM)cJSON_Utils.c
$(CJSON_TARBALL):
@echo "Downloading: $(CJSON_TARBALL)"
$(Q) $(WGET) $(CONFIG_NETUTILS_CJSON_URL)/$(CJSON_TARBALL)
$(Q) curl -O -L $(CONFIG_NETUTILS_CJSON_URL)/$(CJSON_TARBALL)
$(CJSON_UNPACKNAME): $(CJSON_TARBALL)
@echo "Unpacking: $(CJSON_TARBALL) -> $(CJSON_UNPACKNAME)"

View File

@ -35,7 +35,6 @@
include $(APPDIR)/Make.defs
WGET = wget
CP = cp -R
UNPACK = tar -xzf
PACKEXT = .tar.gz
@ -176,7 +175,7 @@ CFLAGS += -DENABLE_CLOCK=0
$(EMBEDLOG_TARBALL):
@echo "Downloading: $@"
$(Q) $(WGET) -O $@ $(EMBEDLOG_URL)/$@
$(Q) curl -L -o $@ $(EMBEDLOG_URL)/$@
${Q} $(NXTOOLSDIR)/check-hash.sh sha256 $(EMBEDLOG_SRC_SHA256) $@
$(EMBEDLOG_SOURCES): $(EMBEDLOG_TARBALL)

View File

@ -21,13 +21,12 @@
include $(APPDIR)/Make.defs
LIBUV_PATCHS ?= $(sort $(wildcard $(LIBUV_DIR)/000*.patch))
WGET ?= wget
UNPACK ?= unzip -q
$(LIBUV_DIR)/$(CONFIG_LIBUV_TARBALL):
@echo "Downloading: $(CONFIG_LIBUV_TARBALL)"
$(Q) $(WGET) $(CONFIG_LIBUV_URL)/$(CONFIG_LIBUV_TARBALL) \
-O $(LIBUV_DIR)/$(CONFIG_LIBUV_TARBALL)
$(Q) curl -L $(CONFIG_LIBUV_URL)/$(CONFIG_LIBUV_TARBALL) \
-o $(LIBUV_DIR)/$(CONFIG_LIBUV_TARBALL)
$(LIBUV_UNPACKDIR): $(LIBUV_DIR)/$(CONFIG_LIBUV_TARBALL)
@echo "Unpacking: $(CONFIG_LIBUV_TARBALL) -> $(LIBUV_UNPACKDIR)"

View File

@ -35,7 +35,6 @@
include $(APPDIR)/Make.defs
WGET = wget
CP = cp -R
UNPACK = tar -xzf
PACKEXT = .tar.gz
@ -108,7 +107,7 @@ endif
$(PSMQ_TARBALL):
@echo "Downloading: $@"
$(Q) $(WGET) -O $@ $(PSMQ_URL)/$@
$(Q) curl -L -o $@ $(PSMQ_URL)/$@
$(Q) $(NXTOOLSDIR)/check-hash.sh sha256 $(PSMQ_SRC_SHA256) $@
$(PSMQ_SOURCES): $(PSMQ_TARBALL)

View File

@ -46,7 +46,6 @@ CONFIG_TESTING_UNITY_VERSION ?= "2.4.3"
UNITY_VERSION = $(patsubst "%",%,$(strip $(CONFIG_TESTING_UNITY_VERSION)))
UNITY_TARBALL = v$(UNITY_VERSION).tar.gz
WGET ?= wget
UNITY_UNPACKNAME = Unity-$(UNITY_VERSION)
UNPACK ?= tar -zxf
@ -63,7 +62,7 @@ CSRCS = $(UNITY_SRCDIR)$(DELIM)unity.c
$(UNITY_TARBALL):
@echo "Downloading: $(UNITY_TARBALL)"
$(Q) $(WGET) $(CONFIG_TESTING_UNITY_URL)/$(UNITY_TARBALL)
$(Q) curl -L -O $(CONFIG_TESTING_UNITY_URL)/$(UNITY_TARBALL)
$(UNITY_UNPACKNAME): $(UNITY_TARBALL)
@echo "Unpacking: $(UNITY_TARBALL) -> $(UNITY_UNPACKNAME)"

View File

@ -33,7 +33,7 @@ NIMBLE_TAR := $(CONFIG_NIMBLE_REF).tar.gz
NIMBLE_URL := https://github.com/apache/mynewt-nimble/archive/$(NIMBLE_TAR)
$(NIMBLE_TAR):
wget $(NIMBLE_URL) -O $(NIMBLE_TAR)
$(Q) curl -L $(NIMBLE_URL) -o $(NIMBLE_TAR)
$(NIMBLE_UNPACKDIR): $(NIMBLE_TAR)
$(Q) tar zxf $(NIMBLE_TAR)