Skip to contentSkip to conversation

bitbake-setup doc updates

PATCH In review Antonin Godard 2 participants 5 messages Nov 14, 2025

lore
Share & tools
lore
#0 lore raw

cover bitbake-setup doc updates

Updates for bitbake-setup's documentation after feedback on the list, and recent changes to bitbake-setup.

---
Antonin Godard (3):
doc/bitbake-setup: show how to clone bitbake before using bitbake-setup doc/bitbake-setup: quick start: change top dir path doc/bitbake-setup: mention the site.conf file

 .../bitbake-user-manual-environment-setup.rst      | 46 +++++++++++++++++-----
 1 file changed, 37 insertions(+), 9 deletions(-)

---
base-commit: ce90d59ff1c96d04856ca5e41a963af00d1783f1
change-id: 20251114-update-bbsetup-doc-73731c775589

#1 lore raw

PATCH 1/3 doc/bitbake-setup: show how to clone bitbake before using bitbake-setup

Users reading the documentation on the website or else might not have a copy of bitbake yet. It is not straightforward to users that bitbake-setup is part of the source tree and that it is the only location to use it from (for now).

Add a step at the beginning of the Quick Start section that shows how to clone bitbake-setup. The default branch (master) will be cloned, which is currently what is recommended. This might be subject to change in the future if bitbake-setup becomes backwards-incompatible.

---
 .../bitbake-user-manual-environment-setup.rst              | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst +11 -3
index 66c0b0fa68..9ae8ca7fb9 100644
@@ -25,12 +25,20 @@ the following tasks:
 Quick Start
 ===========
 
-#. ``bitbake-setup`` is part of the BitBake repository under
-   ``./bin/bitbake-setup``. To start, run:
+#. If you haven't already, clone the BitBake repository:
 
    .. code-block:: shell
 
-      $ ./bin/bitbake-setup init
+      $ git clone https://git.openembedded.org/bitbake
+
+#. ``bitbake-setup`` is part of the BitBake source tree under
+   ``./bitbake/bin/bitbake-setup``.
+
+   To start, run:
+
+   .. code-block:: shell
+
+      $ ./bitbake/bin/bitbake-setup init
 
    This command will ask you to choose which configurations to use available as
    part of the default BitBake :term:`generic configurations <generic
Signature · 1 line
2.51.0
#2 lore raw

Re: [bitbake-devel] [PATCH 1/3] doc/bitbake-setup: show how to clone bitbake before using bitbake-setup

doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst the following tasks: · line 32

Quoted 8 lines · Antonin Godard via lists.openembedded.org
doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst +2 -3
-#. ``bitbake-setup`` is part of the BitBake repository under
-   ``./bin/bitbake-setup``. To start, run:
+#. If you haven't already, clone the BitBake repository:
 
    .. code-block:: shell
 
-      $ ./bin/bitbake-setup init
+      $ git clone https://git.openembedded.org/bitbake

Add a note here: bitbake-setup is not coupled to the openembedded or yocto releases that it is setting up, and generally a copy from bitbake master should be used as it aims to be backwards compatible, and yet have the fullest set of features.

Alex

#3 lore raw

PATCH 2/3 doc/bitbake-setup: quick start: change top dir path

In reply to Antonin Godard

The top-directory is now created in the CWD, so replace ~ by . in the example.

---
 doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst +2 -2
index 9ae8ca7fb9..91caeb041d 100644
@@ -53,7 +53,7 @@ Quick Start
 #. With the default choices, the ``bitbake-setup init`` command creates the
    following directories::
 
-      ~/bitbake-builds/
+      ./bitbake-builds/
       └── poky-master-poky-distro_poky-machine_qemux86-64/
           ├── build/
           ├── config/
@@ -61,7 +61,7 @@ Quick Start
 
    With:
 
-   -  ``~/bitbake-build``: the :term:`Top Directory`, where ``bitbake-setup``
+   -  ``./bitbake-builds``: the :term:`Top Directory`, where ``bitbake-setup``
       configures everything. This directory can be configured with the
       :ref:`ref-bbsetup-setting-top-dir-prefix` and
       :ref:`ref-bbsetup-setting-top-dir-name` settings.
Signature · 1 line
2.51.0
#4 lore raw

PATCH 3/3 doc/bitbake-setup: mention the site.conf file

In reply to Antonin Godard

This file is central to how bitbake-setup works and there was no mention of it. Add it to the quick start section and the terminology.

---
 .../bitbake-user-manual-environment-setup.rst      | 28 ++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst +24 -4
index 91caeb041d..3193952972 100644
@@ -51,9 +51,10 @@ Quick Start
       about ``bitbake-setup`` input configuration files.
 
 #. With the default choices, the ``bitbake-setup init`` command creates the
-   following directories::
+   following files and directories::
 
       ./bitbake-builds/
+      ├── site.conf
       └── poky-master-poky-distro_poky-machine_qemux86-64/
           ├── build/
           ├── config/
@@ -83,6 +84,14 @@ Quick Start
       <bitbake-user-manual/bitbake-user-manual-intro:Layers>` and other
       repositories managed by ``bitbake-setup`` are stored and updated.
 
+   -  ``site.conf``: a BitBake configuration file that contains site specific
+      configurations for your build environment. When it is created, it contains
+      some variable definitions that are based on your current :term:`settings`.
+      Comments in this file will help you understand what these variables
+      correspond to.
+
+      These configurations are shared between the :term:`setups <Setup>`.
+
 #. Source the ``init-build-env`` file present in the :term:`BitBake Build`
    directory:
 
@@ -102,10 +111,11 @@ Terminology
 The ``bitbake-setup`` tool revolves around some common terms we define in this
 section.
 
-``bitbake-setup`` works with a specific hierarchy of directories, that can be
-represented as follows::
+``bitbake-setup`` works with a specific hierarchy of files and directories, that
+can be represented as follows::
 
    Top Directory
+   ├── site.conf
    ├── Setup 1
    │   ├── build/
    │   ├── config/
@@ -129,7 +139,8 @@ The "Top Directory" and "Setup" directories are defined as follows:
       :ref:`ref-bbsetup-setting-top-dir-name` settings.
 
       The top directory contains one or more :term:`Setup` directories, each of
-      them containing a :term:`Setup`.
+      them containing a :term:`Setup`, and a :term:`Site Configuration File`
+      (named ``site.conf``).
 
    :term:`Setup`
       A Setup is the result of the :ref:`ref-bbsetup-command-init`
@@ -144,6 +155,15 @@ The "Top Directory" and "Setup" directories are defined as follows:
          <bitbake-user-manual/bitbake-user-manual-intro:Layers>` or other
          repositories managed by ``bitbake-setup`` (``layers/`` directory).
 
+   :term:`Site Configuration File`
+      This file named ``site.conf`` is a unique file located in the :term:`Top
+      Directory`, and holds top-level BitBake configuration statements shared
+      between the :term:`Setups <Setup>`.
+
+      When it is created, it contains some variable definitions that are based
+      on your current :term:`settings`. Comments in this file will help you
+      understand what these variables correspond to.
+
 The following components are involved to create the content of these directories:
 
 .. glossary::
Signature · 1 line
2.51.0