Search code examples
gitauthenticationfetchbitbakeyocto

Bitbake (Yocto) git fetch URI authentication


How do I make a bitbake recipe that clones a git repo with built in authentication (into the url)?

What is the format of the SRC_URI?


Solution

  • For example:

    SRC_URI = "git://<host>/path/to/<repo>.git;protocol=<protocol>;user=<user>:<password>;branch=<branch>

    protocol might for example be https