aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-29 19:33:19 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-30 23:39:17 +0200
commiteb76b6101a7ce5eeaaef32c53570c3e20f72076f (patch)
tree64c1561774acb7aa8ea943d40638e9f7cf9ab852 /package
parent59e19c7e243c09513b5e133446691cdd68101475 (diff)
downloadbuildroot-eb76b6101a7ce5eeaaef32c53570c3e20f72076f.tar.gz
buildroot-eb76b6101a7ce5eeaaef32c53570c3e20f72076f.tar.bz2
pkg-generic: allow full URLs for <pkg>_EXTRA_DOWNLOADS
The current logic for <pkg>_EXTRA_DOWNLOADS assumes that it is a list of files, all hosted at <pkg>_SITE. However, just like for <pkg>_PATCH, it may be useful to specify <pkg>_EXTRA_DOWNLOADS entries that are hosted on a different site than the package <pkg>_SITE. This commit implements this, by re-using the same logic as the one used for <pkg>_PATCH. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Romain Naour <romain.naour@openwide.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'package')
-rw-r--r--package/pkg-generic.mk7
1 files changed, 6 insertions, 1 deletions
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)),\