Skip to contentSkip to conversation

doc/bitbake-user-manual-ref-variables: improve INHERIT

PATCH Superseded Adam Blank 1 participant 1 message Oct 6, 2025

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Adam Blank

author
#0 lore raw

PATCH v2 1/1 doc/bitbake-user-manual-ref-variables: improve INHERIT

Current wording makes it difficult to understand what exactly is done with INHERIT-ed anonymous functions and when.

---
Changes in v2:
- Added reference to Parsing The Base Configuration Metadata
- Emphasised how disjoint the cases are

---
 .../bitbake-user-manual-ref-variables.rst         | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +12 -3
index 810f88689..06d48dd47 100644
@@ -1200,6 +1200,15 @@ overview of their function and contents.
 
    :term:`INHERIT`
       Causes the named class or classes to be inherited globally. Anonymous
-      functions in the class or classes are not executed for the base
-      configuration and in each individual recipe. The OpenEmbedded build
-      system ignores changes to :term:`INHERIT` in individual recipes.
+      functions in the class or classes are executed in two disjoint situations:
+
+      - When only the
+	:ref:`base configuration <bitbake-user-manual/bitbake-user-manual-execution:parsing the base configuration metadata>`
+	is parsed as a result of the following BitBake invocation::
+
+	  $ bitbake -e
+
+      - When recipes are parsed - then for each parsed recipe.
+
+      The OpenEmbedded build system ignores changes to :term:`INHERIT`
+      in individual recipes.

For more information on :term:INHERIT, see the ":ref:bitbake-user-manual/bitbake-user-manual-metadata:\\inherit\\ configuration directive"