From b89f4fe00d3646bddd4a0b466a75d1f3a06644b1 Mon Sep 17 00:00:00 2001 From: Darko Trogrlic Date: Fri, 17 Feb 2023 11:51:53 +0100 Subject: [PATCH] docs: adding warning to keep the source code in separate repo --- documentation/best_practices/cmake.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/documentation/best_practices/cmake.rst b/documentation/best_practices/cmake.rst index f25918a..310bd78 100644 --- a/documentation/best_practices/cmake.rst +++ b/documentation/best_practices/cmake.rst @@ -7,6 +7,13 @@ Example of using CMake with Bitbake recipes. Please find the example here: `CMake Yocto Example `_. +.. 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/" + * S="${WORKDIR}/git + BitBake recipe ===============