From 58567380e6bf191957e7c5218b9d01fc099256af Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 9 Aug 2016 17:49:45 +0200 Subject: qemu: allow testing with RCs --- src/tests/qemu/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/tests/qemu/Makefile') 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/)) -- cgit v1.2.3-59-g8ed1b