From: Thomas Petazzoni Date: Sun, 29 Mar 2015 17:33:19 +0000 (+0200) Subject: pkg-generic: allow full URLs for _EXTRA_DOWNLOADS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb76b6101a7ce5eeaaef32c53570c3e20f72076f;p=buildroot.git pkg-generic: allow full URLs for _EXTRA_DOWNLOADS The current logic for _EXTRA_DOWNLOADS assumes that it is a list of files, all hosted at _SITE. However, just like for _PATCH, it may be useful to specify _EXTRA_DOWNLOADS entries that are hosted on a different site than the package _SITE. This commit implements this, by re-using the same logic as the one used for _PATCH. Signed-off-by: Thomas Petazzoni Reviewed-by: Romain Naour Reviewed-by: "Yann E. MORIN" --- diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 3c868780bf..22b3fb9616 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -81,7 +81,12 @@ ifeq ($(DL_MODE),DOWNLOAD) done endif $(if $($(PKG)_SOURCE),$(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE))) - $(foreach p,$($(PKG)_EXTRA_DOWNLOADS),$(call DOWNLOAD,$($(PKG)_SITE:/=)/$(p))$(sep)) + $(foreach p,$($(PKG)_EXTRA_DOWNLOADS),\ + $(if $(findstring ://,$(p)),\ + $(call DOWNLOAD,$(p)),\ + $(call DOWNLOAD,$($(PKG)_SITE:/=)/$(p))\ + )\ + $(sep)) $(foreach p,$($(PKG)_PATCH),\ $(if $(findstring ://,$(p)),\ $(call DOWNLOAD,$(p)),\