From: Felix Fietkau Date: Thu, 22 Feb 2018 16:26:41 +0000 (+0100) Subject: build: allow overriding the filename on the remote server when downloading X-Git-Tag: v21.02.0-rc1~5304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fa0e07758524eddf20c9b66dfcb55c490e1961e;p=thirdparty%2Fopenwrt.git build: allow overriding the filename on the remote server when downloading Github releases usually don't contain the project name in the release filename, which makes them very inconvenient to use from the build system. Add support for naming the local file differently. Signed-off-by: Felix Fietkau --- diff --git a/include/download.mk b/include/download.mk index 09794e155e9..14d68bf8f5e 100644 --- a/include/download.mk +++ b/include/download.mk @@ -289,6 +289,7 @@ endef define Download/default FILE:=$(PKG_SOURCE) URL:=$(PKG_SOURCE_URL) + URL_FILE:=$(PKG_SOURCE_URL_FILE) SUBDIR:=$(PKG_SOURCE_SUBDIR) PROTO:=$(PKG_SOURCE_PROTO) $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR)))