toaster-manual: Applied a patch to weed out build mode (modes).

(From yocto-docs rev: 3013ced298115dd7567e7311a0c0e98626cb139d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2016-02-05 14:09:06 -08:00 committed by Richard Purdie
parent 353b755177
commit a1a4808dc6
2 changed files with 79 additions and 91 deletions

View File

@ -33,70 +33,25 @@
</para>
</note>
<section id='intro-modes'>
<title>Toaster Operational Modes</title>
<section id='intro-features'>
<title>Toaster Features</title>
<para>
You can use Toaster in Analysis Mode or Build Mode:
Toaster allows allows you to configure and run builds, and it
provides extensive information about the build process.
<itemizedlist>
<listitem><para id='toaster-analysis-mode'><emphasis>Analysis Mode:</emphasis>
In Analysis Mode, you can record builds and statistics.
In this Mode, you directly access the
<filename>bitbake</filename> command, which you then use to
build images.</para>
<para>Analysis Mode requires you to have first started
Toaster and then to initiate your build using the
<filename>bitbake</filename> command from the shell.
Toaster must be started before the build or it will not
collect build data.</para>
<para>Toaster has the following capabilities in
Analysis Mode:
<itemizedlist>
<listitem><para>
See what was built (recipes and packages) and what
packages were installed into your final image.
</para></listitem>
<listitem><para>
Browse the directory structure of your image.
</para></listitem>
<listitem><para>
See the value of all variables in your build
configuration, and which files set each value.
</para></listitem>
<listitem><para>
Examine error, warning and trace messages to aid
in debugging.
</para></listitem>
<listitem><para>
See information about the BitBake tasks executed
and reused during your build, including those that
used shared state.
</para></listitem>
<listitem><para>
See dependency relationships between recipes,
packages and tasks
</para></listitem>
<listitem><para>
See performance information such as build time,
task time, CPU usage, and disk I/O.
</para></listitem>
</itemizedlist>
</para></listitem>
<listitem><para id='toaster-build-mode'><emphasis>Build Mode:</emphasis>
In Build Mode, Toaster handles the build configuration,
scheduling and execution.
In this mode, all your interaction with the build system
happens through the web interface.
You do not have direct access to the
<filename>bitbake</filename> command.</para>
<para>Using this mode, you configure and start your builds
within Toaster's GUI.
Each project can be configured for a specific version
of the build system.
As shipped, Toaster supports Yocto Project Releases 1.7 and
beyond.</para>
<para>Toaster has all the same capabilities in Build Mode
as it does in Analysis Mode plus the following:
<listitem><para id='toaster-build-features'>
<emphasis>Configure and Run Builds:</emphasis>
You can use the Toaster web interface to configure and
start your builds.
Builds started using the Toaster web interface are
organized into projects.
When you create a project, you are asked to select a
release, or version of the build system you want to
use for the project builds.
As shipped, Toaster supports Yocto Project releases 1.8
and beyond.
With the Toaster web interface, you can:
<itemizedlist>
<listitem><para>
Browse layers listed in the various
@ -105,6 +60,10 @@
OpenEmbedded Metadata Index at
<ulink url='http://layers.openembedded.org/layerindex/'></ulink>).
</para></listitem>
<listitem><para>
Browse images, recipes, and machines provided by
those layers.
</para></listitem>
<listitem><para>
Import your own layers for building.
</para></listitem>
@ -121,6 +80,53 @@
Start your builds.
</para></listitem>
</itemizedlist>
Toaster also allows you to configure and run your builds
from the command line, and switch between the command line and
the web interface at any time.
Builds started from the command line appear within a special
Toaster project called "Command line builds".
</para></listitem>
<listitem><para id='toaster-analysis-features'>
<emphasis>Information About the Build Process:</emphasis>
Toaster also records extensive information about your builds.
Toaster collects data for builds you start from the web
interface and from the command line as long as Toaster
is running.
<note>
You must start Toaster before the build or it will not
collect build data.
</note></para>
<para>With Toaster you can:
<itemizedlist>
<listitem><para>
See what was built (recipes and packages) and what
packages were installed into your final image.
</para></listitem>
<listitem><para>
Browse the directory structure of your image.
</para></listitem>
<listitem><para>
See the value of all variables in your build
configuration, and which files set each value.
</para></listitem>
<listitem><para>
Examine error, warning, and trace messages to aid
in debugging.
</para></listitem>
<listitem><para>
See information about the BitBake tasks executed
and reused during your build, including those that
used shared state.
</para></listitem>
<listitem><para>
See dependency relationships between recipes,
packages, and tasks.
</para></listitem>
<listitem><para>
See performance information such as build time,
task time, CPU usage, and disk I/O.
</para></listitem>
</itemizedlist>
</para></listitem>
</itemizedlist>
</para>
@ -132,8 +138,6 @@
<para>
You can set Toaster up to run as a local instance or as a shared
hosted service.
Regardless of how you set up Toaster, both Analysis and Build
Modes are available.
</para>
<para>

View File

@ -159,12 +159,15 @@
</para>
<para>
When you set up Toaster in Build Mode, you are prompted
to select a Toaster configuration file.
The Toaster startup script in
<filename>/bitbake/bin/toaster</filename> specifies
the location of a Toaster configuration file
<filename>toasterconf.json</filename> as the value of
the <filename>TOASTER_CONF</filename> variable.
This configuration file is used to set up the initial
configuration values within the Toaster database
including the layer sources.
Three versions of the configuration file exist:
Two versions of the configuration file exist:
<itemizedlist>
<listitem><para>
The first version of the file is found in the
@ -192,14 +195,6 @@
(i.e.
<filename>git://git.openembedded.org/openembedded-core</filename>).
</para></listitem>
<listitem><para>
The third version is a sample configuration
useful for when you want to set up a hosted
service in Build Mode.
You can find this version on the
<ulink url='https://wiki.yoctoproject.org/wiki/File:Toasterconf.json.txt.patch'>File:Toasterconf.json.txt.patch</ulink>
wiki page.
</para></listitem>
</itemizedlist>
</para>
</section>
@ -550,8 +545,7 @@
<title>JSON Files</title>
<para>
If you are going to be using Toaster in Build Mode, it must
be initially configured before use.
You must configure Toaster before using it.
Configuration customizes layer source settings and Toaster defaults
for all users and is performed by the person responsible for
Toaster Configuration (i.e the Toaster Administrator).
@ -577,17 +571,16 @@
<filename>toasterconf.json</filename>.
The Toaster Administrator can customize the file prior to loading
it into Toaster.
When you set up Toaster locally to run in Build Mode, the system
startup script actively looks for compatible configuration files
and prompts you to select a file to load if it detects that the
database has not been configured.
The <filename>TOASTER_CONF</filename> variable in the
Toaster startup script at <filename>bitbake/bin/toaster</filename>
specifies the location of the <filename>toasterconf.json</filename> file.
</para>
<section id='json-file-choices'>
<title>Configuration File Choices</title>
<para>
Three versions of the configuration file exist:
Two versions of the configuration file exist:
<itemizedlist>
<listitem><para>
The
@ -613,15 +606,6 @@
<filename>openembedded-core</filename> repository (i.e.
<filename>git://git.openembedded.org/openembedded-core</filename>).
</para></listitem>
<listitem><para>
The <filename>Toasterconf.json.txt.patch</filename>
located on the
<ulink url='https://wiki.yoctoproject.org/wiki/File:Toasterconf.json.txt.patch'>File:Toasterconf.json.txt.patch</ulink>
wiki page.
This version of the file is useful as a sample
configuration for when you want to set up Toaster as a
hosted service in Build Mode.
</para></listitem>
</itemizedlist>
</para>
</section>
@ -1008,7 +992,7 @@
<literallayout class='monospaced'>
$ bitbake/lib/toaster/manage.py checksettings
</literallayout>
In Build Mode, Toaster uses settings that are based on the
Toaster uses settings that are based on the
database to configure the building tasks.
The <filename>checksettings</filename> command verifies that
the database settings are valid in the sense that they have