aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests/qemu/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-08-09 17:49:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-08-09 17:49:45 +0200
commit58567380e6bf191957e7c5218b9d01fc099256af (patch)
treeede0ff1ad5c9539377c595f0e003f82efae05380 /src/tests/qemu/Makefile
parentratelimiter: hard-depend on runtime dependencies (diff)
downloadwireguard-monolithic-historical-58567380e6bf191957e7c5218b9d01fc099256af.tar.xz
wireguard-monolithic-historical-58567380e6bf191957e7c5218b9d01fc099256af.zip
qemu: allow testing with RCs
Diffstat (limited to 'src/tests/qemu/Makefile')
-rw-r--r--src/tests/qemu/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile
index 1474734..3e5fa46 100644
--- a/src/tests/qemu/Makefile
+++ b/src/tests/qemu/Makefile
@@ -31,10 +31,16 @@ endef
define file_download =
$(DISTFILES_PATH)/$(1):
mkdir -p $(DISTFILES_PATH)
- [ -n "$(MIRROR)" ] && $(DOWNLOAD) $$@ $(MIRROR)/$(1) || $(DOWNLOAD) $$@ $(2)/$(1)
+ $(DOWNLOAD) $$@ $(MIRROR)$(1) || $(DOWNLOAD) $$@ $(2)$(1)
endef
-$(eval $(call tar_download,KERNEL,linux,$(KERNEL_VERSION),.tar.xz,https://www.kernel.org/pub/linux/kernel/v4.x/))
+ifeq ($(findstring -rc,$(KERNEL_VERSION)),)
+KERNEL_URL_DIRECTORY := https://www.kernel.org/pub/linux/kernel/v4.x/
+else
+KERNEL_URL_DIRECTORY := https://www.kernel.org/pub/linux/kernel/v4.x/testing/
+endif
+
+$(eval $(call tar_download,KERNEL,linux,$(KERNEL_VERSION),.tar.xz,$(KERNEL_URL_DIRECTORY)))
KERNEL_BZIMAGE := $(KERNEL_PATH)/arch/x86/boot/bzImage
$(eval $(call tar_download,MUSL,musl,1.1.15,.tar.gz,https://www.musl-libc.org/releases/))
$(eval $(call tar_download,LIBMNL,libmnl,1.0.4,.tar.bz2,http://ftp.netfilter.org/pub/libmnl/))