[bitbake-devel] [PATCH] bb.fetch.git: add a way to avoid git protocol, and force http or https mirrors

Richard Purdie richard.purdie at linuxfoundation.org
Tue May 31 13:50:13 UTC 2016


On Tue, 2016-05-31 at 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.
> 
> Exemple usage:
>     # Avoid all git protocol
>     BB_GIT_PROTOCOL_FIREWALL = "1"
> 
>     # Avoid git protocol, except for srv1 and srv2 in local network
>     BB_GIT_PROTOCOL_FIREWALL = "srv1.mydomain.com;srv2.mydomain.com"

Why not use the more generic MIRRORS and PREMIRRORS for this? If they
can't support this, we likely should figure out a way to make them work
for it rather than adding new fetcher specific variables.

Cheers,

Richard



More information about the bitbake-devel mailing list