[Buildroot] [PATCH 01/16] infra: introduce github helper function
Thomas De Schampheleire
patrickdepinguin at gmail.com
Fri Dec 6 08:05:38 UTC 2013
On Thu, Dec 5, 2013 at 6:20 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> From: Mischa Jonker <Mischa.Jonker at synopsys.com>
>
> 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 at synopsys.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
> package/pkg-download.mk | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/package/pkg-download.mk b/package/pkg-download.mk
> index 8e4a1ec..758b211 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,
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
More information about the buildroot
mailing list