From 640181cce81663b0a2055592382d127eac5d63ba Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 12 Jul 2016 14:10:13 -0700 Subject: ref-manual: Added clarifying note to the BBCLASSEXTEND variable. Fixes [YOCTO #9909] Added a note that talks about how the BBCLASSEXTEND mechanism adds recipe variants. (From yocto-docs rev: a05990ecb760519a685a1c5ddcf2ce3e048bfbf2) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 3278ccc27e..b876bc3115 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -995,6 +995,27 @@ BBCLASSEXTEND =+ "native nativesdk" BBCLASSEXTEND =+ "multilib:multilib_name" + + + Internally, the BBCLASSEXTEND + mechanism generates recipe variants by rewriting + variable values and applying overrides such as + _class-native. + For example, to generate a native version of a recipe + named "foo", a + DEPENDS + on "foo" is rewritten to a DEPENDS + on "foo-native". + + + + No reparsing, which adds some limitations, of the + recipe is done for each variant. + For example, it is not possible to "include" a + different file depending on the variant, since + "include's" are processed when the recipe is parsed. + + -- cgit v1.2.3-54-g00ecf