From e0347ec2dc98e077a7b2b136e2e54d3bf3b1adda Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 1 Sep 2016 10:57:39 -0700 Subject: ref-manual: Clarified the OVERRIDES glossary description. Fixes [YOCTO #10173] I provided a more detailed description of how this variable works. Also provided a cross-reference link back to the variable at the end of the PREFERRED_VERSION variable. (From yocto-docs rev: 679b205eea541b89e220656f7aa304d0f343c8a6) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 63 ++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 7 deletions(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 1f4b2171a9..df1631df83 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -8420,18 +8420,60 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" OVERRIDES - OVERRIDES[doc] = "BitBake uses OVERRIDES to control what variables are overridden after BitBake parses recipes and configuration files." + OVERRIDES[doc] = "A colon-separated list of overrides that currently apply." - BitBake uses OVERRIDES to control - what variables are overridden after BitBake parses - recipes and configuration files. - You can find more information on how overrides are handled - in the + A colon-separated list of overrides that currently apply. + Overrides are a BitBake mechanism that allows variables to + be selectively overridden at the end of parsing. + The set of overrides in OVERRIDES + represents the "state" during building, which includes + the current recipe being built, the machine for which + is being built, and so forth. + + + + As an example, if the string "an-override" appears as an + element in the colon-separated list in + OVERRIDES, then the following + assignment will override FOO with the + value "overridden" at the end of parsing: + + FOO_an-override = "overridden" + + See the "Conditional Syntax (Overrides)" - section of the BitBake User Manual. + section in the BitBake User Manual for more information on + the overrides mechanism. + + + + The default value of OVERRIDES + includes the values of the + CLASSOVERRIDE, + MACHINEOVERRIDES, + and + DISTROOVERRIDES + variables. + Another important override included by default is + pn-${PN}. + This override allows variables to be set for a single + recipe within configuration (.conf) + files. + Here is an example: + + FOO_pn-myrecipe = "myrecipe-specific value" + + Tip + An easy way to see what overrides apply is to search for + OVERRIDES in the output of the + bitbake -e command. + See the + "Viewing Variable Values" + section for more information. + @@ -9830,6 +9872,13 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" PREFERRED_VERSION_linux-yocto_forcevariable = "3.4%" + + The _forcevariable override is + not handled specially. + This override only works because the default value of + OVERRIDES + includes "forcevariable". + -- cgit v1.2.3-54-g00ecf