From bb4ab5a65305b5bafdbdfe2ebf907dbde19368bf Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 23 Feb 2018 16:50:11 -0800 Subject: ref-manual: Updated PREFERRED_PROVIDER variable Provided more details in the explanation and fixed a link to the section on using virtual providers. (From yocto-docs rev: ace74e24f001b83c9177266b0a6f15ce96dd04b0) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 37 ++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 137a556d92..09eb9b9dfc 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -10701,27 +10701,40 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - If multiple recipes provide an item, this variable - determines which recipe should be given preference. - You should always suffix the variable with the name of the - provided item, and you should set it to the - PN - of the recipe to which you want to give precedence. - Some examples: + If multiple recipes provide the same item, this variable + determines which recipe is preferred and thus provides + the item (i.e. the preferred provider). + You should always suffix this variable with the name of the + provided item. + And, you should define the variable using the preferred + recipe's name + (PN). + Here is a common example: PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" + + In the previous example, multiple recipes are providing + "virtual/kernel". + The PREFERRED_PROVIDER variable is + set with the name (PN) of the recipe + you prefer to provide "virtual/kernel". + + + + Following are more examples: + PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86" PREFERRED_PROVIDER_virtual/libgl ?= "mesa" For more information, see the - "Metadata (Virtual Providers)" - section in the Yocto Project Concepts Manual. + "Using Virtual Providers" + section in the Yocto Project Development Tasks Manual. - If you set PREFERRED_PROVIDER - for a virtual/* item, then any + If you use a virtual/* item + with PREFERRED_PROVIDER, then any recipe that PROVIDES - that item that is not selected by + that item but is not selected (defined) by PREFERRED_PROVIDER is prevented from building, which is usually desirable since this mechanism is designed to select between mutually -- cgit v1.2.3-54-g00ecf