1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

bitbake: bitbake-user-manual: Cleaned up parallelism note and formatted user input

I updated the note in the second chapter that discusses the role for
BB_NUMBER_THREADS.  The updates make it a bit clearer.

Also scrubbed the manual for instances of user-supplied values to check
how they are being formatted.  I fixed the formatting to use the
<replaceable></replaceable> tags so they are in italics.

(Bitbake rev: e2879c60e905d7566091d40eab330372fa001313)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2015-04-16 13:15:29 -07:00
committed by Richard Purdie
parent 547b189951
commit 203aaaec08
5 changed files with 36 additions and 28 deletions
@@ -21,7 +21,7 @@
The execution process is launched using the following command The execution process is launched using the following command
form: form:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ bitbake &lt;target&gt; $ bitbake <replaceable>target</replaceable>
</literallayout> </literallayout>
For information on the BitBake command and its options, For information on the BitBake command and its options,
see see
@@ -37,14 +37,16 @@
</para> </para>
<para> <para>
A common way to determine this value for your build host is to run: A common method to determine this value for your build host is to run
the following:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ grep processor /proc/cpuinfo $ grep processor /proc/cpuinfo
</literallayout> </literallayout>
and count the number of processors displayed. Note that the number of This command returns the number of processors, which takes into
processors will take into account hyper-threading, so that a quad-core account hyper-threading.
build host with hyper-threading will most likely show eight processors, Thus, a quad-core build host with hyper-threading most likely
which is the value you would then assign to that variable. shows eight processors, which is the value you would then assign to
<filename>BB_NUMBER_THREADS</filename>.
</para> </para>
<para> <para>
@@ -782,13 +784,13 @@
make some dependency and hash information available to the build. make some dependency and hash information available to the build.
This information includes: This information includes:
<itemizedlist> <itemizedlist>
<listitem><para><filename>BB_BASEHASH_task-&lt;taskname&gt;</filename>: <listitem><para><filename>BB_BASEHASH_task-</filename><replaceable>taskname</replaceable>:
The base hashes for each task in the recipe. The base hashes for each task in the recipe.
</para></listitem> </para></listitem>
<listitem><para><filename>BB_BASEHASH_&lt;filename:taskname&gt;</filename>: <listitem><para><filename>BB_BASEHASH_</filename><replaceable>filename</replaceable><filename>:</filename><replaceable>taskname</replaceable>:
The base hashes for each dependent task. The base hashes for each dependent task.
</para></listitem> </para></listitem>
<listitem><para><filename>BBHASHDEPS_&lt;filename:taskname&gt;</filename>: <listitem><para><filename>BBHASHDEPS_</filename><replaceable>filename</replaceable><filename>:</filename><replaceable>taskname</replaceable>:
The task dependencies for each task. The task dependencies for each task.
</para></listitem> </para></listitem>
<listitem><para><filename>BB_TASKHASH</filename>: <listitem><para><filename>BB_TASKHASH</filename>:
@@ -157,8 +157,8 @@
<filename>SRC_URI</filename> variable with the appropriate <filename>SRC_URI</filename> variable with the appropriate
varflags as follows: varflags as follows:
<literallayout class='monospaced'> <literallayout class='monospaced'>
SRC_URI[md5sum] = "value" SRC_URI[md5sum] = "<replaceable>value</replaceable>"
SRC_URI[sha256sum] = "value" SRC_URI[sha256sum] = "<replaceable>value</replaceable>"
</literallayout> </literallayout>
You can also specify the checksums as parameters on the You can also specify the checksums as parameters on the
<filename>SRC_URI</filename> as shown below: <filename>SRC_URI</filename> as shown below:
@@ -646,13 +646,19 @@
</para></listitem> </para></listitem>
<listitem><para><emphasis><filename>module</filename></emphasis>: <listitem><para><emphasis><filename>module</filename></emphasis>:
The module, which must include the The module, which must include the
prepending "/" character, in the selected VOB prepending "/" character, in the selected VOB.
The <filename>module</filename> and <filename>vob</filename> <note>
options are combined to create the following load rule in The <filename>module</filename> and <filename>vob</filename>
the view config spec: options are combined to create the <filename>load</filename> rule in
<literallayout class='monospaced'> the view config spec.
load &lt;vob&gt;&lt;module&gt; As an example, consider the <filename>vob</filename> and
</literallayout> <filename>module</filename> values from the
<filename>SRC_URI</filename> statement at the start of this section.
Combining those values results in the following:
<literallayout class='monospaced'>
load /example_vob/example_module
</literallayout>
</note>
</para></listitem> </para></listitem>
<listitem><para><emphasis><filename>proto</filename></emphasis>: <listitem><para><emphasis><filename>proto</filename></emphasis>:
The protocol, which can be either <filename>http</filename> or The protocol, which can be either <filename>http</filename> or
@@ -221,7 +221,7 @@
<para>From your shell, enter the following commands to set and <para>From your shell, enter the following commands to set and
export the <filename>BBPATH</filename> variable: export the <filename>BBPATH</filename> variable:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ BBPATH="&lt;projectdirectory&gt;" $ BBPATH="<replaceable>projectdirectory</replaceable>"
$ export BBPATH $ export BBPATH
</literallayout> </literallayout>
Use your actual project directory in the command. Use your actual project directory in the command.
@@ -952,7 +952,7 @@
<listitem><para> <listitem><para>
The class needs to define the function as follows: The class needs to define the function as follows:
<literallayout class='monospaced'> <literallayout class='monospaced'>
&lt;classname&gt;_&lt;functionname&gt; <replaceable>classname</replaceable><filename>_</filename><replaceable>functionname</replaceable>
</literallayout> </literallayout>
For example, if you have a class file For example, if you have a class file
<filename>bar.bbclass</filename> and a function named <filename>bar.bbclass</filename> and a function named
@@ -966,7 +966,7 @@
The class needs to contain the <filename>EXPORT_FUNCTIONS</filename> The class needs to contain the <filename>EXPORT_FUNCTIONS</filename>
statement as follows: statement as follows:
<literallayout class='monospaced'> <literallayout class='monospaced'>
EXPORT_FUNCTIONS &lt;functionname&gt; EXPORT_FUNCTIONS <replaceable>functionname</replaceable>
</literallayout> </literallayout>
For example, continuing with the same example, the For example, continuing with the same example, the
statement in the <filename>bar.bbclass</filename> would be statement in the <filename>bar.bbclass</filename> would be
@@ -1164,7 +1164,7 @@
BitBake reads and writes varflags to the datastore using the following BitBake reads and writes varflags to the datastore using the following
command forms: command forms:
<literallayout class='monospaced'> <literallayout class='monospaced'>
&lt;variable&gt; = d.getVarFlags("&lt;variable&gt;") <replaceable>variable</replaceable> = d.getVarFlags("<replaceable>variable</replaceable>")
self.d.setVarFlags("FOO", {"func": True}) self.d.setVarFlags("FOO", {"func": True})
</literallayout> </literallayout>
</para> </para>
@@ -872,7 +872,7 @@
that run on the target <filename>MACHINE</filename>; that run on the target <filename>MACHINE</filename>;
"nativesdk", which targets the SDK machine instead of "nativesdk", which targets the SDK machine instead of
<filename>MACHINE</filename>; and "mulitlibs" in the form <filename>MACHINE</filename>; and "mulitlibs" in the form
"<filename>multilib:&lt;multilib_name&gt;</filename>". "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
</para> </para>
<para> <para>
@@ -884,7 +884,7 @@
metadata: metadata:
<literallayout class='monospaced'> <literallayout class='monospaced'>
BBCLASSEXTEND =+ "native nativesdk" BBCLASSEXTEND =+ "native nativesdk"
BBCLASSEXTEND =+ "multilib:&lt;multilib_name&gt;" BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
</literallayout> </literallayout>
</para> </para>
</glossdef> </glossdef>
@@ -1091,9 +1091,9 @@
Set the variable as you would any environment variable Set the variable as you would any environment variable
and then run BitBake: and then run BitBake:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ BBPATH="&lt;build_directory&gt;" $ BBPATH="<replaceable>build_directory</replaceable>"
$ export BBPATH $ export BBPATH
$ bitbake &lt;target&gt; $ bitbake <replaceable>target</replaceable>
</literallayout> </literallayout>
</para> </para>
</glossdef> </glossdef>
@@ -1888,7 +1888,7 @@
Here is the general syntax to specify versions with Here is the general syntax to specify versions with
the <filename>RDEPENDS</filename> variable: the <filename>RDEPENDS</filename> variable:
<literallayout class='monospaced'> <literallayout class='monospaced'>
RDEPENDS_${PN} = "&lt;package&gt; (&lt;operator&gt; &lt;version&gt;)" RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
</literallayout> </literallayout>
For <filename>operator</filename>, you can specify the For <filename>operator</filename>, you can specify the
following: following:
@@ -1954,7 +1954,7 @@
Here is the general syntax to specify versions with Here is the general syntax to specify versions with
the <filename>RRECOMMENDS</filename> variable: the <filename>RRECOMMENDS</filename> variable:
<literallayout class='monospaced'> <literallayout class='monospaced'>
RRECOMMENDS_${PN} = "&lt;package&gt; (&lt;operator&gt; &lt;version&gt;)" RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
</literallayout> </literallayout>
For <filename>operator</filename>, you can specify the For <filename>operator</filename>, you can specify the
following: following: