aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/ref-structure.xml
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-11-06 10:18:20 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 12:53:04 +0000
commitcebf4814bd1d726f4d1b80efcc30fc50baff2dd5 (patch)
tree3ad3ef7a3e49bfc4c549e030b8a9d8f6a67ededb /documentation/ref-manual/ref-structure.xml
parentc1f030fc938a3458518d39af362537f503bff371 (diff)
downloadopenembedded-core-contrib-cebf4814bd1d726f4d1b80efcc30fc50baff2dd5.tar.gz
ref-manual: Updated bitbake/ section to remove wrapper script
Robert P. J. Day noted that the bitbake command no longer uses a wrapper as the section indicated. I have removed this reference. Reported-by: Robert P. J. Day <rpjday@crashcourse.ca> (From yocto-docs rev: a523d4d4fc57edabfa4aa7d20e154cdc43d35fca) 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.xml140
1 files changed, 72 insertions, 68 deletions
diff --git a/documentation/ref-manual/ref-structure.xml b/documentation/ref-manual/ref-structure.xml
index 13803f5a41..087246171b 100644
--- a/documentation/ref-manual/ref-structure.xml
+++ b/documentation/ref-manual/ref-structure.xml
@@ -39,23 +39,27 @@
<para>
This directory includes a copy of BitBake for ease of use.
- The copy usually matches the current stable BitBake release from the BitBake project.
+ The copy usually matches the current stable BitBake release from
+ the BitBake project.
BitBake, a
<ulink url='&YOCTO_DOCS_DEV_URL;#metadata'>Metadata</ulink>
- interpreter, reads the Yocto Project metadata and runs the tasks
+ interpreter, reads the Yocto Project Metadata and runs the tasks
defined by that data.
- Failures are usually from the metadata and not from BitBake itself.
+ Failures are usually from the Metadata and not from BitBake itself.
Consequently, most users do not need to worry about BitBake.
</para>
<para>
- When you run the <filename>bitbake</filename> command, the wrapper script in
- <filename>scripts/</filename> is executed to run the main BitBake executable,
- which resides in the <filename>bitbake/bin/</filename> directory.
- Sourcing the <link linkend="structure-core-script"><filename>&OE_INIT_FILE;</filename></link>
- script places the <filename>scripts</filename> and <filename>bitbake/bin</filename>
- directories (in that order) into the shell's <filename>PATH</filename> environment
- variable.
+ When you run the <filename>bitbake</filename> command, the
+ main BitBake executable, which resides in the
+ <filename>bitbake/bin/</filename> directory, starts.
+ Sourcing an environment setup script (e.g.
+ <link linkend="structure-core-script"><filename>&OE_INIT_FILE;</filename></link>
+ or
+ <link linkend="structure-memres-core-script"><filename>oe-init-build-env-memres</filename></link>)
+ places the <filename>scripts</filename> and
+ <filename>bitbake/bin</filename> directories (in that order) into
+ the shell's <filename>PATH</filename> environment variable.
</para>
<para>
@@ -74,7 +78,7 @@
the source tree is combined with the output.
The <ulink url='&YOCTO_DOCS_DEV_URL;#build-directory'>Build Directory</ulink>
is created initially when you <filename>source</filename>
- the OpenEmbedded build environment setup script
+ the OpenEmbedded build environment setup script
(i.e.
<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
or
@@ -185,9 +189,9 @@
<title><filename>&OE_INIT_FILE;</filename></title>
<para>
- This script is one of two scripts that set up the OpenEmbedded build
+ This script is one of two scripts that set up the OpenEmbedded build
environment.
- For information on the other script, see the
+ For information on the other script, see the
"<link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>"
section.
</para>
@@ -196,7 +200,7 @@
Running this script with the <filename>source</filename> command in
a shell makes changes to <filename>PATH</filename> and sets other
core BitBake variables based on the current working directory.
- You need to run an environment setup script before running BitBake
+ You need to run an environment setup script before running BitBake
commands.
The script uses other scripts within the
<filename>scripts</filename> directory to do the bulk of the work.
@@ -231,11 +235,11 @@
<title><filename>oe-init-build-env-memres</filename></title>
<para>
- This script is one of two scripts that set up the OpenEmbedded build
+ This script is one of two scripts that set up the OpenEmbedded build
environment.
- Setting up the environment with this script uses a
+ Setting up the environment with this script uses a
memory-resident BitBake.
- For information on the other setup script, see the
+ For information on the other setup script, see the
"<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>"
section.
</para>
@@ -252,14 +256,14 @@
Running this script with the <filename>source</filename> command in
a shell makes changes to <filename>PATH</filename> and sets other
core BitBake variables based on the current working directory.
- One of these variables is the
+ One of these variables is the
<link linkend='var-BBSERVER'><filename>BBSERVER</filename></link>
- variable, which allows the OpenEmbedded build system to locate
+ variable, which allows the OpenEmbedded build system to locate
the server that is running BitBake.
</para>
<para>
- You need to run an environment setup script before running BitBake
+ You need to run an environment setup script before running BitBake
commands.
Following is the script syntax:
<literallayout class='monospaced'>
@@ -289,14 +293,14 @@
$ source oe-init-build-env-memres ~/mybuilds
</literallayout>
<note>
- The OpenEmbedded build system does not support file or
+ The OpenEmbedded build system does not support file or
directory names that contain spaces.
- If you attempt to run the
+ If you attempt to run the
<filename>oe-init-build-env-memres</filename> script
- from a Source Directory that contains spaces in either the
- filenames or directory names, the script returns an error
+ from a Source Directory that contains spaces in either the
+ filenames or directory names, the script returns an error
indicating no such file or directory.
- Be sure to use a Source Directory free of names containing
+ Be sure to use a Source Directory free of names containing
spaces.
</note>
</para>
@@ -334,68 +338,68 @@
<title><filename>build/conf/local.conf</filename></title>
<para>
- This configuration file contains all the local user configurations
+ This configuration file contains all the local user configurations
for your build environment.
- The <filename>local.conf</filename> file contains documentation on
+ The <filename>local.conf</filename> file contains documentation on
the various configuration options.
- Any variable set here overrides any variable set elsewhere within
- the environment unless that variable is hard-coded within a file
+ Any variable set here overrides any variable set elsewhere within
+ the environment unless that variable is hard-coded within a file
(e.g. by using '=' instead of '?=').
- Some variables are hard-coded for various reasons but these
+ Some variables are hard-coded for various reasons but these
variables are relatively rare.
</para>
<para>
- Edit this file to set the
+ Edit this file to set the
<filename><link linkend='var-MACHINE'>MACHINE</link></filename>
for which you want to build, which package types you wish to use
(<link linkend='var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></link>),
the location from which you want to downloaded files
(<filename><link linkend='var-DL_DIR'>DL_DIR</link></filename>),
and how you want your host machine to use resources
- (<link linkend='var-BB_NUMBER_THREADS'><filename>BB_NUMBER_THREADS</filename></link>
+ (<link linkend='var-BB_NUMBER_THREADS'><filename>BB_NUMBER_THREADS</filename></link>
and
<link linkend='var-PARALLEL_MAKE'><filename>PARALLEL_MAKE</filename></link>).
</para>
<para>
- If <filename>local.conf</filename> is not present when you
- start the build, the OpenEmbedded build system creates it from
+ If <filename>local.conf</filename> is not present when you
+ start the build, the OpenEmbedded build system creates it from
<filename>local.conf.sample</filename> when
- you <filename>source</filename> the top-level build environment
+ you <filename>source</filename> the top-level build environment
setup script (i.e.
<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
- or
+ or
<link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>).
</para>
<para>
- The source <filename>local.conf.sample</filename> file used
+ The source <filename>local.conf.sample</filename> file used
depends on the <filename>$TEMPLATECONF</filename> script variable,
which defaults to <filename>/meta-yocto/conf</filename>
- when you are building from the Yocto Project development
- environment and defaults to <filename>/meta/conf</filename> when
+ when you are building from the Yocto Project development
+ environment and defaults to <filename>/meta/conf</filename> when
you are building from the OpenEmbedded Core environment.
- Because the script variable points to the source of the
- <filename>local.conf.sample</filename> file, this implies that
- you can configure your build environment from any layer by setting
- the variable in the top-level build environment setup script as
+ Because the script variable points to the source of the
+ <filename>local.conf.sample</filename> file, this implies that
+ you can configure your build environment from any layer by setting
+ the variable in the top-level build environment setup script as
follows:
<literallayout class='monospaced'>
TEMPLATECONF=&lt;your_layer&gt;/conf
</literallayout>
- Once the build process gets the sample file, it uses
- <filename>sed</filename> to substitute final
- <filename>${</filename><link linkend='var-OEROOT'><filename>OEROOT</filename></link><filename>}</filename>
+ Once the build process gets the sample file, it uses
+ <filename>sed</filename> to substitute final
+ <filename>${</filename><link linkend='var-OEROOT'><filename>OEROOT</filename></link><filename>}</filename>
values for all <filename>##OEROOT##</filename> values.
<note>
You can see how the <filename>TEMPLATECONF</filename> variable
- is used by looking at the
- <filename>/scripts/oe-setup-builddir</filename> script in the
+ is used by looking at the
+ <filename>/scripts/oe-setup-builddir</filename> script in the
<ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
- You can find the Yocto Project version of the
- <filename>local.conf.sample</filename> file in the
- <filename>/meta-yocto/conf</filename> directory.
+ You can find the Yocto Project version of the
+ <filename>local.conf.sample</filename> file in the
+ <filename>/meta-yocto/conf</filename> directory.
</note>
</para>
</section>
@@ -408,48 +412,48 @@
<ulink url='&YOCTO_DOCS_DEV_URL;#understanding-and-creating-layers'>layers</ulink>,
which are directory trees, traversed (or walked) by BitBake.
The <filename>bblayers.conf</filename> file uses the
- <link linkend='var-BBLAYERS'><filename>BBLAYERS</filename></link>
+ <link linkend='var-BBLAYERS'><filename>BBLAYERS</filename></link>
variable to list the layers BitBake tries to find, and uses the
<link linkend='var-BBLAYERS_NON_REMOVABLE'><filename>BBLAYERS_NON_REMOVABLE</filename></link>
variable to list layers that must not be removed.
</para>
<para>
- If <filename>bblayers.conf</filename> is not present when you
- start the build, the OpenEmbedded build system creates it from
+ If <filename>bblayers.conf</filename> is not present when you
+ start the build, the OpenEmbedded build system creates it from
<filename>bblayers.conf.sample</filename> when
- you <filename>source</filename> the top-level build environment
+ you <filename>source</filename> the top-level build environment
setup script (i.e.
<link linkend='structure-core-script'><filename>&OE_INIT_FILE;</filename></link>
- or
+ or
<link linkend='structure-memres-core-script'><filename>oe-init-build-env-memres</filename></link>).
</para>
<para>
- The source <filename>bblayers.conf.sample</filename> file used
+ The source <filename>bblayers.conf.sample</filename> file used
depends on the <filename>$TEMPLATECONF</filename> script variable,
which defaults to <filename>/meta-yocto/conf</filename>
- when you are building from the Yocto Project development
- environment and defaults to <filename>/meta/conf</filename> when
+ when you are building from the Yocto Project development
+ environment and defaults to <filename>/meta/conf</filename> when
you are building from the OpenEmbedded Core environment.
- Because the script variable points to the source of the
- <filename>bblayers.conf.sample</filename> file, this implies that
+ Because the script variable points to the source of the
+ <filename>bblayers.conf.sample</filename> file, this implies that
you can base your build from any layer by setting the variable in
the top-level build environment setup script as follows:
<literallayout class='monospaced'>
TEMPLATECONF=&lt;your_layer&gt;/conf
</literallayout>
- Once the build process gets the sample file, it uses
- <filename>sed</filename> to substitute final
- <filename>${</filename><link linkend='var-OEROOT'><filename>OEROOT</filename></link><filename>}</filename>
+ Once the build process gets the sample file, it uses
+ <filename>sed</filename> to substitute final
+ <filename>${</filename><link linkend='var-OEROOT'><filename>OEROOT</filename></link><filename>}</filename>
values for all <filename>##OEROOT##</filename> values.
<note>
You can see how the <filename>TEMPLATECONF</filename> variable
- <filename>/scripts/oe-setup-builddir</filename> script in the
+ <filename>/scripts/oe-setup-builddir</filename> script in the
<ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>.
- You can find the Yocto Project version of the
- <filename>bblayers.conf.sample</filename> file in the
- <filename>/meta-yocto/conf</filename> directory.
+ You can find the Yocto Project version of the
+ <filename>bblayers.conf.sample</filename> file in the
+ <filename>/meta-yocto/conf</filename> directory.
</note>
</para>
</section>