The execution process is launched using the following command
form:
<literallayout class='monospaced'>
- $ bitbake <target>
+ $ bitbake <replaceable>target</replaceable>
</literallayout>
For information on the BitBake command and its options,
see
</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'>
$ grep processor /proc/cpuinfo
</literallayout>
- and count the number of processors displayed. Note that the number of
- processors will take into account hyper-threading, so that a quad-core
- build host with hyper-threading will most likely show eight processors,
- which is the value you would then assign to that variable.
+ This command returns the number of processors, which takes into
+ account hyper-threading.
+ Thus, a quad-core build host with hyper-threading most likely
+ shows eight processors, which is the value you would then assign to
+ <filename>BB_NUMBER_THREADS</filename>.
</para>
<para>
make some dependency and hash information available to the build.
This information includes:
<itemizedlist>
- <listitem><para><filename>BB_BASEHASH_task-<taskname></filename>:
+ <listitem><para><filename>BB_BASEHASH_task-</filename><replaceable>taskname</replaceable>:
The base hashes for each task in the recipe.
</para></listitem>
- <listitem><para><filename>BB_BASEHASH_<filename:taskname></filename>:
+ <listitem><para><filename>BB_BASEHASH_</filename><replaceable>filename</replaceable><filename>:</filename><replaceable>taskname</replaceable>:
The base hashes for each dependent task.
</para></listitem>
- <listitem><para><filename>BBHASHDEPS_<filename:taskname></filename>:
+ <listitem><para><filename>BBHASHDEPS_</filename><replaceable>filename</replaceable><filename>:</filename><replaceable>taskname</replaceable>:
The task dependencies for each task.
</para></listitem>
<listitem><para><filename>BB_TASKHASH</filename>:
<filename>SRC_URI</filename> variable with the appropriate
varflags as follows:
<literallayout class='monospaced'>
- SRC_URI[md5sum] = "value"
- SRC_URI[sha256sum] = "value"
+ SRC_URI[md5sum] = "<replaceable>value</replaceable>"
+ SRC_URI[sha256sum] = "<replaceable>value</replaceable>"
</literallayout>
You can also specify the checksums as parameters on the
<filename>SRC_URI</filename> as shown below:
</para></listitem>
<listitem><para><emphasis><filename>module</filename></emphasis>:
The module, which must include the
- prepending "/" character, in the selected VOB
- The <filename>module</filename> and <filename>vob</filename>
- options are combined to create the following load rule in
- the view config spec:
- <literallayout class='monospaced'>
- load <vob><module>
- </literallayout>
+ prepending "/" character, in the selected VOB.
+ <note>
+ The <filename>module</filename> and <filename>vob</filename>
+ options are combined to create the <filename>load</filename> rule in
+ the view config spec.
+ As an example, consider the <filename>vob</filename> and
+ <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>
<listitem><para><emphasis><filename>proto</filename></emphasis>:
The protocol, which can be either <filename>http</filename> or
<para>From your shell, enter the following commands to set and
export the <filename>BBPATH</filename> variable:
<literallayout class='monospaced'>
- $ BBPATH="<projectdirectory>"
+ $ BBPATH="<replaceable>projectdirectory</replaceable>"
$ export BBPATH
</literallayout>
Use your actual project directory in the command.
<listitem><para>
The class needs to define the function as follows:
<literallayout class='monospaced'>
- <classname>_<functionname>
+ <replaceable>classname</replaceable><filename>_</filename><replaceable>functionname</replaceable>
</literallayout>
For example, if you have a class file
<filename>bar.bbclass</filename> and a function named
The class needs to contain the <filename>EXPORT_FUNCTIONS</filename>
statement as follows:
<literallayout class='monospaced'>
- EXPORT_FUNCTIONS <functionname>
+ EXPORT_FUNCTIONS <replaceable>functionname</replaceable>
</literallayout>
For example, continuing with the same example, the
statement in the <filename>bar.bbclass</filename> would be
BitBake reads and writes varflags to the datastore using the following
command forms:
<literallayout class='monospaced'>
- <variable> = d.getVarFlags("<variable>")
+ <replaceable>variable</replaceable> = d.getVarFlags("<replaceable>variable</replaceable>")
self.d.setVarFlags("FOO", {"func": True})
</literallayout>
</para>
that run on the target <filename>MACHINE</filename>;
"nativesdk", which targets the SDK machine instead of
<filename>MACHINE</filename>; and "mulitlibs" in the form
- "<filename>multilib:<multilib_name></filename>".
+ "<filename>multilib:</filename><replaceable>multilib_name</replaceable>".
</para>
<para>
metadata:
<literallayout class='monospaced'>
BBCLASSEXTEND =+ "native nativesdk"
- BBCLASSEXTEND =+ "multilib:<multilib_name>"
+ BBCLASSEXTEND =+ "multilib:<replaceable>multilib_name</replaceable>"
</literallayout>
</para>
</glossdef>
Set the variable as you would any environment variable
and then run BitBake:
<literallayout class='monospaced'>
- $ BBPATH="<build_directory>"
+ $ BBPATH="<replaceable>build_directory</replaceable>"
$ export BBPATH
- $ bitbake <target>
+ $ bitbake <replaceable>target</replaceable>
</literallayout>
</para>
</glossdef>
Here is the general syntax to specify versions with
the <filename>RDEPENDS</filename> variable:
<literallayout class='monospaced'>
- RDEPENDS_${PN} = "<package> (<operator> <version>)"
+ RDEPENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
</literallayout>
For <filename>operator</filename>, you can specify the
following:
Here is the general syntax to specify versions with
the <filename>RRECOMMENDS</filename> variable:
<literallayout class='monospaced'>
- RRECOMMENDS_${PN} = "<package> (<operator> <version>)"
+ RRECOMMENDS_${PN} = "<replaceable>package</replaceable> (<replaceable>operator</replaceable> <replaceable>version</replaceable>)"
</literallayout>
For <filename>operator</filename>, you can specify the
following: