bitbake: 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.

(Bitbake rev: f06af69458083735e69f115edf73f783f18bc08c)

Signed-off-by: Adam Blank <adam.blank.g@gmail.com>
Reviewed-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Adam Blank 2025-10-08 12:36:18 +02:00 committed by Richard Purdie
parent 36034f846a
commit 726d6ecd5c

View File

@ -1208,9 +1208,17 @@ 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. For example as a result of the following BitBake invocation::
$ bitbake -e
- When recipes are parsed - then for each parsed recipe.
Bitbake 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`"