docs: adding warning to keep the source code in separate repo

This commit is contained in:
Darko Trogrlic 2023-02-17 11:51:53 +01:00
parent 6541ac3edc
commit b89f4fe00d
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ Example of using CMake with Bitbake recipes.
Please find the example here: Please find the example here:
`CMake Yocto Example <https://bitbucket.gad.local/projects/ICO/repos/coreos/browse/layers/meta-belden-coreos-demo/recipes-demo/cmake-demo/cmake-demo_0.1.bb>`_. `CMake Yocto Example <https://bitbucket.gad.local/projects/ICO/repos/coreos/browse/layers/meta-belden-coreos-demo/recipes-demo/cmake-demo/cmake-demo_0.1.bb>`_.
.. warning::
This simple example has the code in the same repo as the recipe. However, it is recommended to have the code in a separate git repo.
To use remote git repo, it's necessary to have settings as follows:
* SRC_URI = "git://github.com/<link to your repo>"
* S="${WORKDIR}/git
BitBake recipe BitBake recipe
=============== ===============