You can find a number of examples in the mirrors.bbclass[1] file. Also note that in git URIs Bitbake expects "/" separator between the host and path, not ":". I think this should work:

MIRRORS += " git://user@nas-archivio/var/home/git;protocol=ssh git://g...@gitlab.newsoc.it:2289/projects;protocol=ssh "

One more thing: make sure to use explicit commit hash in your recipe for SRCREV. If you use something that needs to be resolved to a revision (tag, AUTOREV...) than Bitbake will try to connect to the upstream first, to resolve the commit, ignoring the MIRRORS.

[1]: https://git.yoctoproject.org/poky/tree/meta/classes-global/mirrors.bbclass

On 19.01.25 11:16, Mauro Ziliani via lists.yoctoproject.org wrote:
Hi all.

Which is the correct syntax of MIRRORS variable?

I need to replace

git://user@nas-archivio:/var/home/git;protocol=ssh  with git://g...@gitlab.newsoc.it:2289:/projects;protocol=ssh


I put this in local.conf


MIRRORS += \

git://user@nas-archivio:/var/home/git;protocol=ssh  \

git://g...@gitlab.newsoc.it:2289:/projects;protocol=ssh \n \

"


but the fetcher doesn't the replace.


Best regards

  MZ




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64590): https://lists.yoctoproject.org/g/yocto/message/64590
Mute This Topic: https://lists.yoctoproject.org/mt/110696165/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

  • [yocto] MIRRORS variable Mauro Ziliani via lists.yoctoproject.org
    • Re: [yocto] MIRRORS variabl... Gyorgy Sarvari via lists.yoctoproject.org

Reply via email to