diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/qemu/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index 957378d..808e20d 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -20,8 +20,6 @@ DISTFILES_PATH ?= $(PWD)/distfiles DEBUG_KERNEL ?= no NR_CPUS ?= 4 -DOWNLOAD := wget -O -# DOWNLOAD := curl -f -o MIRROR := https://download.wireguard.com/qemu-test/distfiles/ WIREGUARD_SOURCES := $(wildcard ../../*.c ../../*.h ../../selftest/*.h ../../crypto/*.c ../../crypto/*.h ../../crypto/*.S ../../compat/*.h) @@ -41,7 +39,7 @@ endef define file_download = $(DISTFILES_PATH)/$(1): mkdir -p $(DISTFILES_PATH) - flock -x $$@.lock -c '[ -f $$@ ] && exit 0; $(DOWNLOAD) $$@ $(MIRROR)$(1) || $(DOWNLOAD) $$@ $(2)$(1) || rm -f $$@' + flock -x $$@.lock -c '[ -f $$@ ] && exit 0; wget -O $$@ $(MIRROR)$(1) || wget -t inf --retry-on-http-error=404 -O $$@ $(2)$(1) || rm -f $$@' endef ifeq ($(findstring -rc,$(KERNEL_VERSION)),) |