diff options
| author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-12-03 09:11:46 -0600 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-11 14:18:45 +0000 | 
| commit | 4fb42f366ad6d7f9aba5c6edca2ef9a325ef140a (patch) | |
| tree | ac9b20f3b5725fcdec09840b08778ff8d3740116 /documentation | |
| parent | d754ddcec78f5e264100ceda854e8412679d6866 (diff) | |
| download | poky-4fb42f366ad6d7f9aba5c6edca2ef9a325ef140a.tar.gz | |
ref-manual: Added the native class.
(From yocto-docs rev: c3624d3ba74367123054bc3cd420a4acbb258ab7)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/ref-manual/ref-classes.xml | 38 | 
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 | ||
