[bitbake-devel] [PATCH] bb.fetch.git: add a way to avoid git protocol, and force http or https mirrors
Olof Johansson
olof.johansson at axis.com
Tue May 31 13:39:14 UTC 2016
On 16-05-31 15:18 +0200, fabien.proriolpatch at kazoe.org wrote:
> From: Fabien Proriol <fabien.proriol at jdsu.com>
>
> This patch add the possibility to bitbake to avoid git protocol to fetch sources.
> This is usefull in some network with firewall blocking git port.
>
> When BB_GIT_PROTOCOL_FIREWALL is set, the PROTOCOL_MIRRORS table is used to find the new protocol (http or https) and the new host (if different) to used.
>
> BB_GIT_PROTOCOL_FIREWALL can also contains a list of host accepted. This is usefull for exemple, if we use local git repository inside the network.
Can't you use PREMIRRORS instead? Something along the lines:
PREMIRRORS = "git://.*/.* https://mirrorhost.example.com/"
There's even a variable, BB_FETCH_PREMIRRORONLY, for when the
original host shouldn't be contacted at all.
--
olofjn
More information about the bitbake-devel
mailing list