From 951efacceb49757285ac7724b1105004910a142a Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 29 Nov 2012 17:19:10 -0600 Subject: documentation: poky-ref--manual - Updated PACKAGECONFIG Fixes [YOCTO #3327] Re-write of the glossary description for the PACKAGECONFIG variable. This went through a couple of iterations. Paul Eggleton reviewed and provided technical information. (From yocto-docs rev: 7edf3d03bc4a448516f24caea4b49423a026885f) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/ref-variables.xml | 73 +++++++++++++++++-------- 1 file changed, 50 insertions(+), 23 deletions(-) (limited to 'documentation/poky-ref-manual/ref-variables.xml') diff --git a/documentation/poky-ref-manual/ref-variables.xml b/documentation/poky-ref-manual/ref-variables.xml index 39b74bcba0..10ffce39ac 100644 --- a/documentation/poky-ref-manual/ref-variables.xml +++ b/documentation/poky-ref-manual/ref-variables.xml @@ -2034,32 +2034,59 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" PACKAGECONFIG - This variable provides a means of enabling or disabling features of a recipe - on a per-recipe basis. + This variable provides a means of enabling or disabling + features of a recipe on a per-recipe basis. The PACKAGECONFIG - variable itself specifies a space-separated list of the features - to enable, while the named flags set on the variable specify - for each feature the additional build dependencies - (DEPENDS) - that should be added if the feature is enabled, and any extra arguments - that should be added to the configure script argument list - (EXTRA_OECONF) - if the feature is enabled or disabled. - - - For example, the following taken from the librsvg - recipe will add --with-croco to the - configure script arguments and libcroco to - DEPENDS - by default. - However, if "croco" is removed from PACKAGECONFIG - (for example, by using a .bbappend file in another layer), then - --without-croco will be added to the configure - script arguments instead: - + variable itself specifies a space-separated list of the + features to enable or disable. + The features themselves are specified as flags on the + PACKAGECONFIG variable. + You can provide up to four arguments, which are separated by + commas, to determine the behavior of each feature + when it is enabled or disabled. + You can omit any argument you like but must retain the + separating commas (see the examples further down). + The arguments specify the following: + + Extra arguments + (EXTRA_OECONF) + that should be added to the configure script argument list + if the feature is enabled. + Extra arguments (EXTRA_OECONF) + that should be added if the feature is disabled. + + Additional build dependencies + (DEPENDS) + that should be added if the feature is enabled. + + Additional runtime dependencies + (RDEPENDS) + that should be added if the feature is enabled. + + + + + + Consider the following example taken from the + librsvg recipe. + In this example the feature is croco, which + has three arguments that determine the feature's' behavior. + PACKAGECONFIG ??= "croco" PACKAGECONFIG[croco] = "--with-croco,--without-croco,libcroco" - + + The --with-croco and + libcroco arguments apply only if + the feature is enabled. + In this case, --with-croco is + added to the configure script argument list and + libcroco is added to + DEPENDS. + On the other hand, if the feature is disabled say through + a .bbappend file in another layer, then + the second argument --without-croco is + added to the configure script rather than + --with-croco. -- cgit v1.2.3-54-g00ecf