From b24683da203391c0b969e2bd536ad92511e4261d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret?= Date: Thu, 12 Apr 2018 21:25:40 +0200 Subject: [PATCH] Support for DISTFILES_MIRROR --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 25f00e0..81a7da5 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,12 @@ endif all: help MIRROR := cdn.kernel.org +ifeq (,$(DISTFILES_MIRROR)) SRC_BASEURL := https://${MIRROR}/pub/linux/kernel/v$(shell echo $(VERSION) | sed 's/^\(2\.[0-9]*\).*/\1/;s/^3\..*/3.x/;s/^4\..*/4.x/') +else +SRC_BASEURL := $(DISTFILES_MIRROR) +endif + SRC_FILE := linux-${VERSION}.tar.xz ifeq ($(BUILD_FLAVOR),pvops) SIGN_FILE := linux-${VERSION}.tar.sign