dev-manual: Add info on build env initialization
PATCH v2 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
@@ -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
Hi Jasper,
Quoted 20 lines · On 6/6/24 5:04 PM, [email protected] wrote:
[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)
Quoted 4 lines
To avoid any confusion I think it best to mention this required step directly in the "start" document.
Signed-off-by Jasper Orschulko <[email protected]>
Thanks!
Quentin
Hi Jasper
Quoted 31 lines · Jasper Orschulko via lists.yoctoproject.org
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.
Signed-off-by Jasper Orschulko <[email protected]>--- documentation/dev-manual/start.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)documentation/dev-manual/start.rst +0
-0
documentation/dev-manual/start.rst similar to checking out by branch name except you use tag names. · line 861
Quoted 9 lines
documentation/dev-manual/start.rst +6
-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 +================================== + +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
One last nitpick...
If poky is a directory name, you should use ``poky``. If you refer to the project name, it should be Poky.
I think the first solution is what you want here.
Cheers
Michael.
I think we should actually rewrite every mention of oe-init-build-env to suggest oe-setup-build instead and effectively deprecate using oe-init-build-env directly. I'm okay with this patch though, as such a rewrite is a bigger effort.
Alex
Quoted 62 lines · Michael Opdenacker via lists.yoctoproject.org
Hi Jasper
Quoted 31 lines · Jasper Orschulko via lists.yoctoproject.org
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.
Signed-off-by Jasper Orschulko <[email protected]>--- documentation/dev-manual/start.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)documentation/dev-manual/start.rst +0
-0documentation/dev-manual/start.rst similar to checking out by branch name except you use tag names. · line 861
Quoted 9 lines
documentation/dev-manual/start.rst +6
-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 +================================== + +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\`\`` environmentOne last nitpick...
If poky is a directory name, you should use ``poky``. If you refer to the project name, it should bePoky.I think the first solution is what you want here.
Cheers
Michael.-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5280): https://lists.yoctoproject.org/g/docs/message/5280
Mute This Topic: https://lists.yoctoproject.org/mt/106524927/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Alex,
Quoted 4 lines · Alexander Kanavin
I think we should actually rewrite every mention of oe-init-build-env to suggest oe-setup-build instead and effectively deprecate using oe-init-build-env directly. I'm okay with this patch though, as such a rewrite is a bigger effort.
I agree. Let's keep this patch, which would be useful too as a backport for Scarthgap and Kirkstone, as I'm not sure Kirkstone will have oe-setup-build. Thanks in advance for your patch :)
Cheers
Michael.