summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-variables.xml
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/ref-variables.xml')
-rw-r--r--documentation/ref-manual/ref-variables.xml31
1 files changed, 22 insertions, 9 deletions
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 @@
1992 An internal variable specifying the special class override 1992 An internal variable specifying the special class override
1993 that should currently apply (e.g. "class-target", 1993 that should currently apply (e.g. "class-target",
1994 "class-native", and so forth). 1994 "class-native", and so forth).
1995 The classes that use this variable set it to 1995 The classes that use this variable (e.g.
1996 appropriate values. 1996 <link linkend='ref-classes-native'><filename>native</filename></link>,
1997 <link linkend='ref-classes-nativesdk'><filename>nativesdk</filename></link>,
1998 and so forth) set the variable to appropriate values.
1999 <note>
2000 <filename>CLASSOVERRIDE</filename> gets its default
2001 "class-target" value from the
2002 <filename>bitbake.conf</filename> file.
2003 </note>
1997 </para> 2004 </para>
1998 2005
1999 <para> 2006 <para>
2000 You do not normally directly interact with this variable. 2007 As an example, the following override allows you to install
2001 The value for the <filename>CLASSOVERRIDE</filename> 2008 extra files, but only when building for the target:
2002 variable goes into 2009 <literallayout class='monospaced'>
2003 <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link> 2010 do_install_append_class-target() {
2004 and then can be used as an override. 2011 install my-extra-file ${D}${sysconfdir}
2012 }
2013 </literallayout>
2005 Here is an example where "python-native" is added to 2014 Here is an example where "python-native" is added to
2006 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link> 2015 <link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>,
2007 only when building for the <filename>-native</filename> case: 2016 but only when building for the build host:
2008 <literallayout class='monospaced'> 2017 <literallayout class='monospaced'>
2009 DEPENDS_append_class-native = " python-native" 2018 DEPENDS_append_class-native = " python-native"
2010 </literallayout> 2019 </literallayout>
2020 The underlying mechanism behind
2021 <filename>CLASSOVERRIDE</filename> is simply that it is
2022 included in the default value of
2023 <link linkend='var-OVERRIDES'><filename>OVERRIDES</filename></link>.
2011 </para> 2024 </para>
2012 </glossdef> 2025 </glossdef>
2013 </glossentry> 2026 </glossentry>