Add a terms glossary and define "datastore"
cover Add a terms glossary and define "datastore"
This glossary can be later update to add additional terms common to BitBake.
---
Antonin Godard (2):
doc: add a terms glossary and define "datastore"
doc: xref occurrences of datastore to the new term
.../bitbake-user-manual-execution.rst | 2 +- .../bitbake-user-manual-metadata.rst | 50 +++++++++++----------- .../bitbake-user-manual-ref-variables.rst | 18 ++++---- .../bitbake-user-manual-terms.rst | 25 +++++++++++ doc/index.rst | 1 + 5 files changed, 61 insertions(+), 35 deletions(-)
---
base-commit: 0f33b68cbabab26c9ed1585e3ee109689d206812
change-id: 20261104-terms-doc-8d5c299e8cc5
PATCH 1/2 doc: add a terms glossary and define "datastore"
The "datastore" term is used widely in the BitBake documentation with no formal definition for it. Add a "BitBake Terms" section to store common definitions which can be cross-referenced with :term:..., and define Datastore.
--- .../bitbake-user-manual-terms.rst | 25 ++++++++++++++++++++++ doc/index.rst | 1 + 2 files changed, 26 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-terms.rst new file +25 -0
@@ -0,0 +1,25 @@ +.. SPDX-License-Identifier: CC-BY-2.5 + +************* +BitBake Terms +************* + +Below is a list of terms and definitions common to BitBake. + +.. glossary:: + + :term:`Datastore` + The datastore is a dictionary-like object represented by the ``DataSmart`` + class in BitBake (in ``lib/bb/data_smart.py``) and contains the values of + variables under the current execution of BitBake. As explained in + :ref:`bitbake-user-manual/bitbake-user-manual-execution:Locating and + Parsing Recipes`, BitBake parses recipes, bbappends, and classes and + stores the values of various variables into the :term:`datastore`. + + The datastore is available by default in recipes and classes under the + name ``d``. + + The :term:`datastore` defines several helper functions to read, write or + manipulate BitBake variables, which are documented in the + :ref:`bitbake-user-manual/bitbake-user-manual-metadata:Functions for + Accessing Datastore Variables` section.
doc/index.rst +1 -0
@@ -13,6 +13,7 @@ BitBake User Manual bitbake-user-manual/bitbake-user-manual-intro bitbake-user-manual/bitbake-user-manual-execution bitbake-user-manual/bitbake-user-manual-environment-setup + bitbake-user-manual/bitbake-user-manual-terms bitbake-user-manual/bitbake-user-manual-metadata bitbake-user-manual/bitbake-user-manual-ref-variables-context bitbake-user-manual/bitbake-user-manual-fetching
Signature · 1 line
2.55.0
PATCH 2/2 doc: xref occurrences of datastore to the new term
In reply to Antonin GodardThe previous commit added a term to define the datastore, which is used in many places of the documentation. Cross-reference to this new term in the documentation.
--- .../bitbake-user-manual-execution.rst | 2 +- .../bitbake-user-manual-metadata.rst | 50 +++++++++++----------- .../bitbake-user-manual-ref-variables.rst | 18 ++++---- 3 files changed, 35 insertions(+), 35 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-execution.rst +1 -1
@@ -191,7 +191,7 @@ supports wildcards. An example would be:: BitBake parses each recipe and append file located with :term:`BBFILES` and stores the values of -various variables into the datastore. +various variables into the :term:`datastore`. .. note::
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +25 -25
144 lines not on this page · raw message
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +9 -9
@@ -294,7 +294,7 @@ overview of their function and contents. :term:`BB_ENV_PASSTHROUGH` Specifies the internal list of variables to allow through from - the external environment into BitBake's datastore. If the value of + the external environment into BitBake's :term:`datastore`. If the value of this variable is not specified (which is the default), the following list is used: :term:`BBPATH`, :term:`BB_PRESERVE_ENV`, and :term:`BB_ENV_PASSTHROUGH_ADDITIONS`.
@@ -306,7 +306,7 @@ overview of their function and contents. :term:`BB_ENV_PASSTHROUGH_ADDITIONS` Specifies an additional set of variables to allow through from the - external environment into BitBake's datastore. This list of variables + external environment into BitBake's :term:`datastore`. This list of variables are on top of the internal list set in :term:`BB_ENV_PASSTHROUGH`.
@@ -458,7 +458,7 @@ overview of their function and contents. which is used to determine if the cache can be reused. One of the ways BitBake determines whether to re-parse the main - metadata is through checksums of the variables in the datastore of + metadata is through checksums of the variables in the :term:`datastore` of the base configuration data. There are variables that you typically want to exclude when checking whether or not to re-parse and thus rebuild the cache. As an example, you would usually exclude ``TIME``
@@ -594,16 +594,16 @@ overview of their function and contents. Contains a copy of the original external environment in which BitBake was run. The copy is taken before any variable values configured to pass through from the external environment are filtered into BitBake's - datastore. + :term:`datastore`. .. note:: - The contents of this variable is a datastore object that can be - queried using the normal datastore operations. + The contents of this variable is a :term:`datastore` object that can be + queried using the normal :term:`datastore` operations. :term:`BB_PRESERVE_ENV` Disables environment filtering and instead allows all variables through - from the external environment into BitBake's datastore. + from the external environment into BitBake's :term:`datastore`. .. note::
@@ -780,8 +780,8 @@ overview of their function and contents. :term:`BB_SIGNATURE_EXCLUDE_FLAGS` Lists variable flags (varflags) that can be safely excluded from - checksum and dependency data for keys in the datastore. When - generating checksum or dependency data for keys in the datastore, the + checksum and dependency data for keys in the :term:`datastore`. When + generating checksum or dependency data for keys in the :term:`datastore`, the flags set against that key are normally included in the checksum. For more information on varflags, see the
Signature · 1 line
2.55.0