diff options
-rw-r--r-- | documentation/ref-manual/ref-variables.xml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index fa652e57a1..fd15dff9a1 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml | |||
@@ -9592,14 +9592,22 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
9592 | PREFERRED_VERSION_python = "2.7.3" | 9592 | PREFERRED_VERSION_python = "2.7.3" |
9593 | PREFERRED_VERSION_linux-yocto = "3.19%" | 9593 | PREFERRED_VERSION_linux-yocto = "3.19%" |
9594 | </literallayout> | 9594 | </literallayout> |
9595 | If you want to force a particular version of a recipe, | 9595 | Sometimes the <filename>PREFERRED_VERSION</filename> |
9596 | you can use "forcevariable" as follows: | 9596 | variable can be set by configuration files in a way that |
9597 | is hard to change. | ||
9598 | You can use | ||
9599 | <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link> | ||
9600 | to set a machine-specific override. | ||
9601 | Here is an example: | ||
9597 | <literallayout class='monospaced'> | 9602 | <literallayout class='monospaced'> |
9598 | PREFERRED_VERSION_linux-yocto_forcevariable = "3.4%" | 9603 | PREFERRED_VERSION_linux-yocto_qemux86 = "3.4%" |
9599 | </literallayout> | 9604 | </literallayout> |
9600 | Another method is to use a machine override: | 9605 | Although not recommended, worst case, you can also use the |
9606 | "forcevariable" override, which is the strongest override | ||
9607 | possible. | ||
9608 | Here is an example: | ||
9601 | <literallayout class='monospaced'> | 9609 | <literallayout class='monospaced'> |
9602 | PREFERRED_VERSION_linux-yocto_qemux86 = "3.4%" | 9610 | PREFERRED_VERSION_linux-yocto_forcevariable = "3.4%" |
9603 | </literallayout> | 9611 | </literallayout> |
9604 | </para> | 9612 | </para> |
9605 | </glossdef> | 9613 | </glossdef> |