Skip to contentSkip to conversation

dev-manual: Add info on build env initialization

PATCH Superseded [email protected] 2 participants 2 messages Jun 6, 2024

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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..cfc1be65e 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 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
#1 lore raw

Hi Jasper,

Quoted 33 lines · Jasper Orschulko via lists.yoctoproject.org

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

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 +0 -0
index 386e5f5d2..cfc1be65e 100644

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

Quoted 7 lines
documentation/dev-manual/start.rst +4 -0
@@ -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
+----------------------------------
+

I don't think this should be at this level of (sub)section.

Indeed we would have:

Setting up to use the yocto project
->Cloning and Checking Out Branches
-->Initializing the Build Environment

I think it rather should be:

Setting up to use the yocto project
->Cloning and Checking Out Branches
->Initializing the Build Environment

So use = underlines instead of -.

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

Quoted 2 lines
documentation/dev-manual/start.rst +2 -0
+Before you can use Yocto you need to setup the build environment.
+From within the poky directory, source the oe-init-build-env environment

Please tick quote poky as it isn't a English word. c.f. https://git.yoctoproject.org/yocto-docs/tree/documentation/standards.md#n79

Additionally, please add a ref for oe-init-build-env, the same way we did for the Quick Build page:

:ref:ref-manual/structure:\\oe-init-build-env\\``

Otherwise looks ok, wondering if we shouldn't link from quick build->use git to clone poky+the first bullet point of Building Your image to the sections in dev-manual->start. But nothing required for this patch,

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

Quoted 2 lines
documentation/dev-manual/start.rst +2 -0
+setup script to define Yocto Project’s build environment on your build host::
+

Can you use a single quote here please: ' instead of the one in the sentence above? This will facilitate grepping if we ever need to :)

Thanks!
Quentin