diff mbox series

[v2,2/6] ref-manual/structure.rst: document the site.conf file

Message ID 20251103-bitbake-setup-v2-2-89fbb14cfbbd@bootlin.com
State New
Headers show
Series Start switching the documentation to bitbake-setup | expand

Commit Message

Antonin Godard Nov. 3, 2025, 4:33 p.m. UTC
This was not documented and its usage is going to increase massively
once users start using bitbake-setup. Add a description for this file as
well as an example on how bitbake-setup shares it for multiple builds,
to insist on the "site-wide" usage of this file.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Note: a link to bitbake-setup documentation comes in the next patch.
---
 documentation/ref-manual/structure.rst | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
diff mbox series

Patch

diff --git a/documentation/ref-manual/structure.rst b/documentation/ref-manual/structure.rst
index a2f2fd450..f0205f0e5 100644
--- a/documentation/ref-manual/structure.rst
+++ b/documentation/ref-manual/structure.rst
@@ -343,6 +343,35 @@  Once the build process gets the sample file, it uses ``sed`` to substitute final
    version of the ``bblayers.conf.sample`` file in the ``meta-poky/conf/templates/default``
    directory.
 
+.. _structure-build-conf-site.conf:
+
+``build/conf/site.conf``
+========================
+
+This configuration file contains the site specific configurations for your build
+environment.
+
+You could for example edit this file to limit the number of threads used by
+:term:`BitBake` (:term:`BB_NUMBER_THREADS`) or set the location from which you
+want to access downloaded files (:term:`DL_DIR`).
+
+This file can be shared for multiple build directories. For example,
+``bitbake-setup`` makes the :ref:`structure-build-conf-site.conf` file a
+symbolic link to a common ``site.conf`` file::
+
+   ├── poky-master-poky-distro_poky-machine_qemux86-64/
+   │   └── build/
+   │       └── conf/
+   │           └── site.conf -> ../../../site.conf
+   ├── poky-master-poky-with-sstate-distro_poky-machine_qemux86-64/
+   │   └── build/
+   │       └── conf/
+   │           └── site.conf -> ../../../site.conf
+   └── site.conf
+
+This way, site-specific settings can be shared for multiple build
+configurations.
+
 .. _structure-build-conf-bblock.conf:
 
 ``build/conf/bblock.conf``