diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-09-10 12:13:25 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-12 16:50:10 +0100 |
commit | a2666193173c0eeca763f774926763e7356277f8 (patch) | |
tree | f72dc0bc8919527029a60ee67a8d71bd3033de9c /documentation/ref-manual/ref-structure.xml | |
parent | cc2626727c61025b5cf0fcc214ddb896de7bbc39 (diff) | |
download | poky-a2666193173c0eeca763f774926763e7356277f8.tar.gz |
documentation: Added the memory-resident BitBake feature
The main changes are captured in a new section devoted to the
oe-init-build-env-memres script within the ref-structure.xml
file and in the variables.xml file in a BBSERVER variable entry
in the glossary.
All other changes were necessary to integrate the new functionality
into areas where running the setup script are discussed. Before
this feature, there was a single setup script (oe-init-build-env).
Consequently, wordings and such were designed exclusively for this
single method. With the introduction of a second possible method
to initialize the build environment, tweaks to many sections were
needed. Beside the wording tweaks, appropriate cross-referencing
was also needed.
All these changes cover the integration of the new feature.
Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From yocto-docs rev: c55c9a53c9b4cd1e06e6e81e32d56f9bbf5fe98c)
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-structure.xml')
-rw-r--r-- | documentation/ref-manual/ref-structure.xml | 107 |
1 files changed, 99 insertions, 8 deletions
diff --git a/documentation/ref-manual/ref-structure.xml b/documentation/ref-manual/ref-structure.xml index 6ddecd994d..3133e8dc6d 100644 --- a/documentation/ref-manual/ref-structure.xml +++ b/documentation/ref-manual/ref-structure.xml | |||
@@ -74,7 +74,11 @@ | |||
74 | the source tree is combined with the output. | 74 | the source tree is combined with the output. |
75 | The <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink> | 75 | The <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink> |
76 | is created initially when you <filename>source</filename> | 76 | is created initially when you <filename>source</filename> |
77 | the OpenEmbedded build environment setup script <filename>&OE_INIT_FILE;</filename>. | 77 | the OpenEmbedded build environment setup script |
78 | (i.e. | ||
79 | <link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link> | ||
80 | or | ||
81 | <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>). | ||
78 | </para> | 82 | </para> |
79 | 83 | ||
80 | <para> | 84 | <para> |
@@ -85,8 +89,10 @@ | |||
85 | the setup script. | 89 | the setup script. |
86 | For information on separating output from your local | 90 | For information on separating output from your local |
87 | Source Directory files, see the | 91 | Source Directory files, see the |
88 | "<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>" | 92 | "<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link> |
89 | section. | 93 | and |
94 | "<link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>" | ||
95 | sections. | ||
90 | </para> | 96 | </para> |
91 | </section> | 97 | </section> |
92 | 98 | ||
@@ -143,7 +149,7 @@ | |||
143 | which is a Yocto Project build user interface. | 149 | which is a Yocto Project build user interface. |
144 | For more information on the Hob, see the | 150 | For more information on the Hob, see the |
145 | <ulink url='&YOCTO_HOME_URL;/tools-resources/projects/hob'>Hob Project</ulink> | 151 | <ulink url='&YOCTO_HOME_URL;/tools-resources/projects/hob'>Hob Project</ulink> |
146 | webpage. | 152 | web page. |
147 | </para> | 153 | </para> |
148 | </section> | 154 | </section> |
149 | 155 | ||
@@ -162,7 +168,9 @@ | |||
162 | This directory contains various integration scripts that implement | 168 | This directory contains various integration scripts that implement |
163 | extra functionality in the Yocto Project environment (e.g. QEMU scripts). | 169 | extra functionality in the Yocto Project environment (e.g. QEMU scripts). |
164 | The <link linkend="structure-core-script"><filename>&OE_INIT_FILE;</filename></link> | 170 | The <link linkend="structure-core-script"><filename>&OE_INIT_FILE;</filename></link> |
165 | script appends this directory to the shell's | 171 | and |
172 | <link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link> | ||
173 | scripts append this directory to the shell's | ||
166 | <filename>PATH</filename> environment variable. | 174 | <filename>PATH</filename> environment variable. |
167 | </para> | 175 | </para> |
168 | 176 | ||
@@ -177,11 +185,19 @@ | |||
177 | <title><filename>&OE_INIT_FILE;</filename></title> | 185 | <title><filename>&OE_INIT_FILE;</filename></title> |
178 | 186 | ||
179 | <para> | 187 | <para> |
180 | This script sets up the OpenEmbedded build environment. | 188 | This script is one of two scripts that set up the OpenEmbedded build |
189 | environment. | ||
190 | For information on the other script, see the | ||
191 | "<link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>" | ||
192 | section. | ||
193 | </para> | ||
194 | |||
195 | <para> | ||
181 | Running this script with the <filename>source</filename> command in | 196 | Running this script with the <filename>source</filename> command in |
182 | a shell makes changes to <filename>PATH</filename> and sets other | 197 | a shell makes changes to <filename>PATH</filename> and sets other |
183 | core BitBake variables based on the current working directory. | 198 | core BitBake variables based on the current working directory. |
184 | You need to run this script before running BitBake commands. | 199 | You need to run an environment setup script before running BitBake |
200 | commands. | ||
185 | The script uses other scripts within the | 201 | The script uses other scripts within the |
186 | <filename>scripts</filename> directory to do the bulk of the work. | 202 | <filename>scripts</filename> directory to do the bulk of the work. |
187 | </para> | 203 | </para> |
@@ -191,7 +207,7 @@ | |||
191 | <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink> | 207 | <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink> |
192 | argument creates the <filename>build</filename> directory. | 208 | argument creates the <filename>build</filename> directory. |
193 | If you provide a Build Directory argument when you | 209 | If you provide a Build Directory argument when you |
194 | <filename>source</filename> the script, you direct OpenEmbedded | 210 | <filename>source</filename> the script, you direct the OpenEmbedded |
195 | build system to create a Build Directory of your choice. | 211 | build system to create a Build Directory of your choice. |
196 | For example, the following command creates a Build Directory named | 212 | For example, the following command creates a Build Directory named |
197 | <filename>mybuilds</filename> that is outside of the | 213 | <filename>mybuilds</filename> that is outside of the |
@@ -211,6 +227,81 @@ | |||
211 | </para> | 227 | </para> |
212 | </section> | 228 | </section> |
213 | 229 | ||
230 | <section id='structure-memres-core-script'> | ||
231 | <title><filename>oe-init-build-env-memres</filename></title> | ||
232 | |||
233 | <para> | ||
234 | This script is one of two scripts that set up the OpenEmbedded build | ||
235 | environment. | ||
236 | Setting up the environment with this script uses a | ||
237 | memory-resident BitBake. | ||
238 | For information on the other setup script, see the | ||
239 | "<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>" | ||
240 | section. | ||
241 | </para> | ||
242 | |||
243 | <para> | ||
244 | Memory-resident BitBake resides in memory until you specifically | ||
245 | remove it using the following BitBake command: | ||
246 | <literallayout class='monospaced'> | ||
247 | $ bitbake -m | ||
248 | </literallayout> | ||
249 | </para> | ||
250 | |||
251 | <para> | ||
252 | Running this script with the <filename>source</filename> command in | ||
253 | a shell makes changes to <filename>PATH</filename> and sets other | ||
254 | core BitBake variables based on the current working directory. | ||
255 | One of these variables is the | ||
256 | <link linkend='var-BBSERVER'><filename>BBSERVER</filename></link> | ||
257 | variable, which allows the OpenEmbedded build system to locate | ||
258 | the server that is running BitBake. | ||
259 | </para> | ||
260 | |||
261 | <para> | ||
262 | You need to run an environment setup script before running BitBake | ||
263 | commands. | ||
264 | Following is the script syntax: | ||
265 | <literallayout class='monospaced'> | ||
266 | $ source oe-init-build-env-memres <port_number> <build_dir> | ||
267 | </literallayout> | ||
268 | The script uses other scripts within the | ||
269 | <filename>scripts</filename> directory to do the bulk of the work. | ||
270 | </para> | ||
271 | |||
272 | <para> | ||
273 | If you do not provide a port number with the script, the default | ||
274 | port "12345" is used. | ||
275 | </para> | ||
276 | |||
277 | <para> | ||
278 | By default, running this script without a | ||
279 | <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink> | ||
280 | argument creates the <filename>build</filename> directory. | ||
281 | If you provide a Build Directory argument when you | ||
282 | <filename>source</filename> the script, you direct the OpenEmbedded | ||
283 | build system to create a Build Directory of your choice. | ||
284 | For example, the following command uses the default port number | ||
285 | "12345" and creates a Build Directory named | ||
286 | <filename>mybuilds</filename> that is outside of the | ||
287 | <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>: | ||
288 | <literallayout class='monospaced'> | ||
289 | $ source oe-init-build-env-memres ~/mybuilds | ||
290 | </literallayout> | ||
291 | <note> | ||
292 | The OpenEmbedded build system does not support file or | ||
293 | directory names that contain spaces. | ||
294 | If you attempt to run the | ||
295 | <filename>oe-init-build-env-memres</filename> script | ||
296 | from a Source Directory that contains spaces in either the | ||
297 | filenames or directory names, the script returns an error | ||
298 | indicating no such file or directory. | ||
299 | Be sure to use a Source Directory free of names containing | ||
300 | spaces. | ||
301 | </note> | ||
302 | </para> | ||
303 | </section> | ||
304 | |||
214 | <section id='structure-basic-top-level'> | 305 | <section id='structure-basic-top-level'> |
215 | <title><filename>LICENSE, README, and README.hardware</filename></title> | 306 | <title><filename>LICENSE, README, and README.hardware</filename></title> |
216 | 307 | ||