Skip to contentSkip to conversation

dev-manual: Add info on build env initialization

PATCH In review [email protected] 2 participants 2 messages Jun 6, 2024 – Jun 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dev-manual: Add info on build env initialization

From: Jasper Orschulko <[email protected]>

Going through the docs we a new trainee, we noticed that the build initialization is only mentioned in the quick build
(https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html) but not in the in-depth getting started documentation.

While this is repeatedly mentioned later on, e.g. in the "building" section, you might easily end up somewhere where this has not been mentioned yet.

E.g. in our case this was:

https://docs.yoctoproject.org/dev-manual/layers.html# (which comes right
after the "setup" chapter)
->
https://docs.yoctoproject.org/dev-manual/layers.html#creating-a-general-layer-using-the-bitbake-layers-script
(which is linked right at the top)

To avoid any confusion I think it best to mention this required step directly in the "start" document.

---
 documentation/dev-manual/start.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)
documentation/dev-manual/start.rst +11 -0
index 386e5f5d2..05827610b 100644
@@ -853,3 +853,14 @@ similar to checking out by branch name except you use tag names.
    ``checkout`` command are a snapshot of the "&DISTRO_NAME_NO_CAP;"
    development branch at the point where Yocto Project &DISTRO; was
    released.
+
+Initializing the Build Environment
+==================================
+
+Before you can use Yocto you need to setup the build environment.
+From within the ``poky`` directory, source the :ref:`ref-manual/structure:\`\`oe-init-build-env\`\`` environment
+setup script to define Yocto Project's build environment on your build host::
+    
+    $ source oe-init-build-env 
+
+Note, that this step will have to be repeated every time you open a new shell.
Signature · 1 line
2.45.2
Reviewed-by on v3 1/1
#1 lore raw

Hi Jasper

Quoted 35 lines · On 6/7/24 00:34, [email protected] wrote:

From: Jasper Orschulko <[email protected]>

Going through the docs we a new trainee, we noticed that the build initialization is only mentioned in the quick build
(https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html) but not in the in-depth getting started documentation.

While this is repeatedly mentioned later on, e.g. in the "building" section, you might easily end up somewhere where this has not been mentioned yet.

E.g. in our case this was:

https://docs.yoctoproject.org/dev-manual/layers.html# (which comes right
after the "setup" chapter)
->
https://docs.yoctoproject.org/dev-manual/layers.html#creating-a-general-layer-using-the-bitbake-layers-script
(which is linked right at the top)

To avoid any confusion I think it best to mention this required step directly in the "start" document.

---
  documentation/dev-manual/start.rst | 11 +++++++++++
  1 file changed, 11 insertions(+)
documentation/dev-manual/start.rst +1 -0
index 386e5f5d2..05827610b 100644
@@ -853,3 +853,14 @@ similar to checking out by branch name except you use tag names.
     ``checkout`` command are a snapshot of the "&DISTRO_NAME_NO_CAP;"
     development branch at the point where Yocto Project &DISTRO; was
     released.
+

documentation/dev-manual/start.rst similar to checking out by branch name except you use tag names. · line 866

Quoted 10 lines
documentation/dev-manual/start.rst +10 -0
+Initializing the Build Environment
+==================================
+
+Before you can use Yocto you need to setup the build environment.
+From within the ``poky`` directory, source the :ref:`ref-manual/structure:\`\`oe-init-build-env\`\`` environment
+setup script to define Yocto Project's build environment on your build host::
+
+    $ source oe-init-build-env
+
+Note, that this step will have to be repeated every time you open a new shell.

Thank you for the update! It looks good to me.

Cheers
Michael.