Support for DISTFILES_MIRROR

This commit is contained in:
Frédéric Pierret 2018-04-12 21:25:40 +02:00
parent 4700f2cff4
commit b24683da20
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

View File

@ -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