From 44b0b07a6f06a96af1ff8c2ebefe20ce2f031736 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 1 Sep 2016 11:35:36 -0700 Subject: ref-manual: Rewrite of the CLASSOVERRIDE variable in the glossary Fixes [YOCTO #10174] I applied a more descriptive explanation of this varialbe. (From yocto-docs rev: 7c6c2645b7e74e1c7de0d43b35307c8917648959) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 31 +++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 2ded2ef0d6..64fd94c9a2 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -1992,22 +1992,35 @@ An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so forth). - The classes that use this variable set it to - appropriate values. + The classes that use this variable (e.g. + native, + nativesdk, + and so forth) set the variable to appropriate values. + + CLASSOVERRIDE gets its default + "class-target" value from the + bitbake.conf file. + - You do not normally directly interact with this variable. - The value for the CLASSOVERRIDE - variable goes into - OVERRIDES - and then can be used as an override. + As an example, the following override allows you to install + extra files, but only when building for the target: + + do_install_append_class-target() { + install my-extra-file ${D}${sysconfdir} + } + Here is an example where "python-native" is added to - DEPENDS - only when building for the -native case: + DEPENDS, + but only when building for the build host: DEPENDS_append_class-native = " python-native" + The underlying mechanism behind + CLASSOVERRIDE is simply that it is + included in the default value of + OVERRIDES. -- cgit v1.2.3-54-g00ecf