diff options
author | Mischa Jonker <Mischa.Jonker@synopsys.com> | 2013-12-05 18:20:44 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2013-12-06 22:34:51 +0100 |
commit | bb083e95cfae94a3a50551a2004f5ccdb02189a6 (patch) | |
tree | 2a0b821ee8126ead3bc6e4a6139d12f38fcbe06b | |
parent | 877aa47659e770067205180abef22c28e49bde21 (diff) | |
download | buildroot-bb083e95cfae94a3a50551a2004f5ccdb02189a6.tar.gz buildroot-bb083e95cfae94a3a50551a2004f5ccdb02189a6.zip |
infra: introduce github helper function
In order to make it easier to cope with changes in github download-URL's,
this patch introduces the github helper function. It generates the site
URL of a github repository. It's usage is $(call github,user,pkg,version).
[Thomas: extracted from Mischa original commit, macro moved to
pkg-download.mk]
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/pkg-download.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/pkg-download.mk b/package/pkg-download.mk index 8e4a1ec33b..758b211097 100644 --- a/package/pkg-download.mk +++ b/package/pkg-download.mk @@ -55,6 +55,9 @@ notdomain=$(patsubst $(call domain,$(1),$(2))$(call domainseparator,$(2))%,%,$(c # default domainseparator is /, specify alternative value as first argument domainseparator=$(if $(1),$(1),/) +# github(user,package,version): returns site of github repository +github = https://github.com/$(1)/$(2)/tarball/$(3) + ################################################################################ # The DOWNLOAD_* helpers are in charge of getting a working copy # of the source repository for their corresponding SCM, |