summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-12-03 09:25:48 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-11 14:18:46 +0000
commitd29666fadd8bafa99a6c22fdea2b1dd22691f368 (patch)
tree669d2e909ef9aa73548e94e0c9cdcfe38d59a7a8
parent4fb42f366ad6d7f9aba5c6edca2ef9a325ef140a (diff)
downloadpoky-d29666fadd8bafa99a6c22fdea2b1dd22691f368.tar.gz
ref-manual: Added the nativesdk class.
(From yocto-docs rev: 173be83958d27869a031ab7bddf9a159a2cefa32) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/ref-manual/ref-classes.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index 9be0d0191a..ba94df2285 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -1185,6 +1185,45 @@
1185 </para> 1185 </para>
1186</section> 1186</section>
1187 1187
1188<section id='ref-classes-nativesdk'>
1189 <title><filename>nativesdk.bbclass</filename></title>
1190
1191 <para>
1192 The native SDK (<filename>nativesdk</filename>) class provides common
1193 functionality for recipes that wish to build tools to run as part of
1194 an SDK (i.e. tools that run on
1195 <link linkend='var-SDKMACHINE'><filename>SDKMACHINE</filename></link>).
1196 </para>
1197
1198 <para>
1199 You can create a recipe that builds tools that run on the SDK machine
1200 a couple different ways:
1201 <itemizedlist>
1202 <listitem><para>Create a <filename>myrecipe-native.bb</filename>
1203 that inherits the <filename>nativesdk</filename> class.
1204 </para></listitem>
1205 <listitem><para>Create a <filename>nativesdk</filename> variant
1206 of any recipe by adding the following:
1207 <literallayout class='monospaced'>
1208 <link linkend='var-BBCLASSEXTEND'><filename>BBCLASSEXTEND</filename></link> = "nativesdk"
1209 </literallayout>
1210 Inside the recipe, use <filename>_class-nativesdk</filename> and
1211 <filename>_class-target</filename> overrides to specify any
1212 functionality specific to the respective SDK machine or target
1213 case.</para></listitem>
1214 </itemizedlist>
1215 </para>
1216
1217 <para>
1218 Although applied differently, the <filename>nativesdk</filename> class
1219 is used with both methods.
1220 The advantage of the second method is that you do not need to have two
1221 separate recipes (assuming you need both) for the SDK machine and the
1222 target.
1223 All common parts of the recipe are automatically shared.
1224 </para>
1225</section>
1226
1188<section id='ref-classes-pkgconfig'> 1227<section id='ref-classes-pkgconfig'>
1189 <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title> 1228 <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title>
1190 1229