Use DISTFILES_MIRROR if defined to download source files

This commit is contained in:
Frédéric Pierret 2017-11-17 11:40:51 +01:00
parent 4fc71fae97
commit b7b83842eb
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

View File

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