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.