Recipes

Overview

Getting Code From Online Git Repositories

Yocto supports the ability to pull code from online git repositories as part of the build process.

What about private repositories? Private repositories have the added complexity of requiring authentication before you can download (a.k.a clone) them. Luckily, Yocto supports the ssh protocol.

To make Yocto use a GitHub repository:

GitLab repositories require a slightly different syntax:

Note the inclusion of ~/ before group_name in the above URL (as well as the inclusion of git:// at the start). This ~/ is important for Yocto to clone the git repo, but is not required (and not included in the GitLab example) when cloning a private GitLab repo normally.