diff mbox series

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

Message ID 20251114-update-bbsetup-doc-v1-3-044070bdffec@bootlin.com
State Accepted
Headers show
Series bitbake-setup doc updates | expand

Commit Message

Antonin Godard Nov. 14, 2025, 11:12 a.m. UTC
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.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 .../bitbake-user-manual-environment-setup.rst      | 28 ++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst b/doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst
index 91caeb041d..3193952972 100644
--- a/doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst
+++ b/doc/bitbake-user-manual/bitbake-user-manual-environment-setup.rst
@@ -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::