mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
package/pkg-download.mk: add gitlab macro
Just like we have a "github" macro to calculate the URL of the tarball
to download source from Github, let's introduce a similar macro for
Gitlab.
This should be used to download the auto-generated tarballs from
Gitlab. If there is a specific release tarball uploaded by the
upstream developers, the <pkg>_SITE variable should not use this new
gitlab macro.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit f83826c90d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
bbaa7c4813
commit
f27d4bc94e
@@ -61,6 +61,9 @@ domainseparator = $(if $(1),$(1),/)
|
|||||||
# github(user,package,version): returns site of GitHub repository
|
# github(user,package,version): returns site of GitHub repository
|
||||||
github = https://github.com/$(1)/$(2)/archive/$(3)
|
github = https://github.com/$(1)/$(2)/archive/$(3)
|
||||||
|
|
||||||
|
# gitlab(user,package,version): returns site of Gitlab-generated tarball
|
||||||
|
gitlab = https://gitlab.com/$(1)/$(2)/-/archive/$(3)
|
||||||
|
|
||||||
# Expressly do not check hashes for those files
|
# Expressly do not check hashes for those files
|
||||||
# Exported variables default to immediately expanded in some versions of
|
# Exported variables default to immediately expanded in some versions of
|
||||||
# make, but we need it to be recursively-epxanded, so explicitly assign it.
|
# make, but we need it to be recursively-epxanded, so explicitly assign it.
|
||||||
|
|||||||
Reference in New Issue
Block a user