From b7b83842eba316b7c18dfa5759a76a52162d7ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret?= Date: Fri, 17 Nov 2017 11:40:51 +0100 Subject: [PATCH] Use DISTFILES_MIRROR if defined to download source files --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 25f00e0..14060d7 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,13 @@ SIGN_FILE := linux-${VERSION}.tar.bz2.sign endif HASH_FILE :=${SRC_FILE}.sha1sum +ifneq ($(DISTFILES_MIRROR),) +URL := $(DISTFILES_MIRROR)/$(SRC_FILE) +URL_SIGN := $(DISTFILES_MIRROR)/$(SIGN_FILE) +else URL := $(SRC_BASEURL)/$(SRC_FILE) URL_SIGN := $(SRC_BASEURL)/$(SIGN_FILE) +endif get-sources: $(SRC_FILE) $(SIGN_FILE)