@@ -1177,19 +1177,19 @@ overview of their function and contents.
so it does not need to be parsed every time BitBake is started.
:term:`DEFAULT_PREFERENCE`
- Specifies a weak bias for recipe selection priority.
-
- The most common usage of this is variable is to set it to "-1" within
- a recipe for a development version of a piece of software. Using the
- variable in this way causes the stable version of the recipe to build
- by default in the absence of :term:`PREFERRED_VERSION` being used to
- build the development version.
-
- .. note::
-
- The bias provided by DEFAULT_PREFERENCE is weak and is overridden by
- :term:`BBFILE_PRIORITY` if that variable is different between two
- layers that contain different versions of the same recipe.
+ Specifies a weak bias for recipe selection priority, when the same recipe
+ is provided by different layers.
+
+ By default, recipes have a preference of "0". Setting
+ :term:`DEFAULT_PREFERENCE` to "-1" makes the recipe unlikely to be used
+ unless it is explicitly selected. Setting :term:`DEFAULT_PREFERENCE` to
+ "1" makes it likely the recipe is used. :term:`PREFERRED_VERSION`
+ overrides any :term:`DEFAULT_PREFERENCE` setting, if the same recipe is
+ provided with different versions among the different layers.
+
+ :term:`DEFAULT_PREFERENCE` is often used to mark newer and more
+ experimental recipe versions until they have undergone sufficient testing
+ to be considered stable.
:term:`DEPENDS`
Lists a recipe's build-time dependencies (i.e. other recipe files).
The bitbake-user-manual-execution.rst contained a better explanation for how this variable works, so move this explanation here. Also remove the BBFILE_PRIORITY mention as this is not supported anymore, after the layer configuration format changes. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- .../bitbake-user-manual-ref-variables.rst | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-)