summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-classes.xml
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-12-03 09:11:46 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-11 14:17:43 +0000
commitc4f72e13fa5e536f0039f5ab7af3525149ea293b (patch)
tree62422dfa60fffeb89ccb5fb793ac119d35d5badd /documentation/ref-manual/ref-classes.xml
parenta3afb9301af644e72928f1097cb5ab31f5f31e74 (diff)
downloadpoky-c4f72e13fa5e536f0039f5ab7af3525149ea293b.tar.gz
ref-manual: Added the native class.
(From yocto-docs rev: 9be6f08f35e085302a0527d8eaa76062b898b247) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/ref-classes.xml')
-rw-r--r--documentation/ref-manual/ref-classes.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index 131ca0ea24..9be0d0191a 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -1147,6 +1147,44 @@
1147 </para> 1147 </para>
1148</section> 1148</section>
1149 1149
1150<section id='ref-classes-native'>
1151 <title><filename>native.bbclass</filename></title>
1152
1153 <para>
1154 The native (<filename>native</filename>) class provides common
1155 functionality for recipes that wish to build tools to run on the build
1156 host (i.e. tools that use the compiler or other tools from the
1157 build host).
1158 </para>
1159
1160 <para>
1161 You can create a recipe that builds tools that run natively on the
1162 host a couple different ways:
1163 <itemizedlist>
1164 <listitem><para>Create a <filename>myrecipe-native.bb</filename>
1165 that inherits the <filename>native</filename> class.
1166 </para></listitem>
1167 <listitem><para>Create or modify a target recipe that has adds
1168 the following:
1169 <literallayout class='monospaced'>
1170 <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link> = "native"
1171 </literallayout>
1172 Inside the recipe, use <filename>_class-native</filename> and
1173 <filename>_class-target</filename> overrides to specify any
1174 functionality specific to the respective native or target
1175 case.</para></listitem>
1176 </itemizedlist>
1177 </para>
1178
1179 <para>
1180 Although applied differently, the <filename>native</filename> class is
1181 used with both methods.
1182 The advantage of the second method is that you do not need to have two
1183 separate recipes (assuming you need both) for native and target.
1184 All common parts of the recipe are automatically shared.
1185 </para>
1186</section>
1187
1150<section id='ref-classes-pkgconfig'> 1188<section id='ref-classes-pkgconfig'>
1151 <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title> 1189 <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title>
1152 1190