aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-02-26 11:31:34 +0000
committerRichard Purdie <richard@openedhand.com>2008-02-26 11:31:34 +0000
commit882e9cd2affb773eec8b1d387ab4e3b5cbdc0994 (patch)
treef023b2ce9abf3b894a81986e0a00e23d77b55e66
parent7197110f46511492a48cd359b3ddf75b60ea47c8 (diff)
downloadopenembedded-core-882e9cd2affb773eec8b1d387ab4e3b5cbdc0994.tar.gz
openembedded-core-882e9cd2affb773eec8b1d387ab4e3b5cbdc0994.tar.bz2
openembedded-core-882e9cd2affb773eec8b1d387ab4e3b5cbdc0994.zip
Add Poky handbook
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3865 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--handbook/ChangeLog29
-rw-r--r--handbook/Makefile22
-rw-r--r--handbook/TODO12
-rw-r--r--handbook/contactus.xml30
-rw-r--r--handbook/development.xml815
-rw-r--r--handbook/examples/hello-autotools/hello_2.3.bb7
-rw-r--r--handbook/examples/hello-single/files/helloworld.c8
-rw-r--r--handbook/examples/hello-single/hello.bb16
-rw-r--r--handbook/examples/libxpm/libxpm_3.5.6.bb13
-rw-r--r--handbook/examples/mtd-makefile/mtd-utils_1.0.0.bb13
-rw-r--r--handbook/extendpoky.xml726
-rw-r--r--handbook/faq.xml234
-rw-r--r--handbook/introduction.xml331
-rw-r--r--handbook/poky-beaver.pngbin0 -> 26252 bytes
-rw-r--r--handbook/poky-doc-tools/AUTHORS0
-rw-r--r--handbook/poky-doc-tools/COPYING0
-rw-r--r--handbook/poky-doc-tools/ChangeLog30
-rw-r--r--handbook/poky-doc-tools/INSTALL236
-rw-r--r--handbook/poky-doc-tools/Makefile.am18
-rw-r--r--handbook/poky-doc-tools/NEWS0
-rw-r--r--handbook/poky-doc-tools/README24
-rwxr-xr-xhandbook/poky-doc-tools/autogen.sh3
-rw-r--r--handbook/poky-doc-tools/common/Makefile.am21
-rw-r--r--handbook/poky-doc-tools/common/Vera.ttfbin0 -> 65932 bytes
-rw-r--r--handbook/poky-doc-tools/common/Vera.xml1
-rw-r--r--handbook/poky-doc-tools/common/VeraMoBd.ttfbin0 -> 49052 bytes
-rw-r--r--handbook/poky-doc-tools/common/VeraMoBd.xml1
-rw-r--r--handbook/poky-doc-tools/common/VeraMono.ttfbin0 -> 49224 bytes
-rw-r--r--handbook/poky-doc-tools/common/VeraMono.xml1
-rw-r--r--handbook/poky-doc-tools/common/draft.pngbin0 -> 24847 bytes
-rw-r--r--handbook/poky-doc-tools/common/fop-config.xml.in33
-rw-r--r--handbook/poky-doc-tools/common/ohand-color.svg150
-rw-r--r--handbook/poky-doc-tools/common/poky-db-pdf.xsl64
-rw-r--r--handbook/poky-doc-tools/common/poky-handbook.pngbin0 -> 32145 bytes
-rw-r--r--handbook/poky-doc-tools/common/poky.svg163
-rw-r--r--handbook/poky-doc-tools/common/titlepage.templates.xml1240
-rw-r--r--handbook/poky-doc-tools/configure.ac27
-rw-r--r--handbook/poky-doc-tools/poky-docbook-to-pdf.in44
-rw-r--r--handbook/poky-handbook.html2429
-rw-r--r--handbook/poky-handbook.pngbin0 -> 17829 bytes
-rw-r--r--handbook/poky-handbook.xml111
-rw-r--r--handbook/poky-logo.svg117
-rw-r--r--handbook/ref-bitbake.xml340
-rw-r--r--handbook/ref-classes.xml460
-rw-r--r--handbook/ref-features.xml302
-rw-r--r--handbook/ref-images.xml69
-rw-r--r--handbook/ref-structure.xml365
-rw-r--r--handbook/ref-variables.xml825
-rw-r--r--handbook/ref-varlocality.xml204
-rw-r--r--handbook/resources.xml92
-rw-r--r--handbook/style.css957
-rw-r--r--handbook/usingpoky.xml390
52 files changed, 10973 insertions, 0 deletions
diff --git a/handbook/ChangeLog b/handbook/ChangeLog
new file mode 100644
index 0000000000..2cff9f9967
--- /dev/null
+++ b/handbook/ChangeLog
@@ -0,0 +1,29 @@
+2008-02-15 Matthew Allum <mallum@openedhand.com>
+
+ * introduction.xml:
+ Minor tweaks to 'What is Poky'
+
+2008-02-15 Matthew Allum <mallum@openedhand.com>
+
+ * poky-handbook.xml:
+ * poky-handbook.png
+ * poky-beaver.png
+ * poky-logo.svg:
+ * style.css:
+ Add some title images.
+
+2008-02-14 Matthew Allum <mallum@openedhand.com>
+
+ * development.xml:
+ remove uri's
+ * style.css:
+ Fix glossary
+
+2008-02-06 Matthew Allum <mallum@openedhand.com>
+
+ * Makefile:
+ Add various xslto options for html.
+ * introduction.xml:
+ Remove link in title.
+ * style.css:
+ Add initial version
diff --git a/handbook/Makefile b/handbook/Makefile
new file mode 100644
index 0000000000..ff6cd89d41
--- /dev/null
+++ b/handbook/Makefile
@@ -0,0 +1,22 @@
+all: html pdf
+
+pdf:
+
+ poky-docbook-to-pdf poky-handbook.xml
+# -- old way --
+# dblatex poky-handbook.xml
+
+html:
+# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
+ xsltproc --stringparam html.stylesheet style.css \
+ --stringparam chapter.autolabel 1 \
+ --stringparam appendix.autolabel 1 \
+ --stringparam section.autolabel 1 \
+ -o poky-handbook.html \
+ --xinclude /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
+ poky-handbook.xml
+# -- old way --
+# xmlto xhtml-nochunks poky-handbook.xml
+
+validate:
+ xmllint --postvalid --xinclude --noout poky-handbook.xml
diff --git a/handbook/TODO b/handbook/TODO
new file mode 100644
index 0000000000..f3e843b8de
--- /dev/null
+++ b/handbook/TODO
@@ -0,0 +1,12 @@
+Handbook Todo List:
+
+ * Add instructions about using zaurus/openmoko emulation
+ * Add diagrams + oprofile screenshot
+ * Software Deevelopment intro should mention its software development for
+ intended target and could be a different arch etc and thus special case.
+
+Long Term:
+
+ * Expand insane.bbclass documentation to cover tests
+ * Document remaining classes (see list in ref-classes)
+
diff --git a/handbook/contactus.xml b/handbook/contactus.xml
new file mode 100644
index 0000000000..9ebccdec2d
--- /dev/null
+++ b/handbook/contactus.xml
@@ -0,0 +1,30 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='contact'>
+ <title>OpenedHand Contact Information</title>
+
+ <literallayout>
+OpenedHand Ltd
+Unit R, Homesdale Business Center
+216-218 Homesdale Rd
+Bromley, BR1 2QZ
+England
++44 (0) 208 819 6559
+info@openedhand.com</literallayout>
+
+ <!-- Fop messes this up so we do like above
+ <address>
+ OpenedHand Ltd
+ Unit R, Homesdale Business Center
+ <street>216-218 Homesdale Rd</street>
+ <city>Bromley</city>, <postcode>BR1 2QZ</postcode>
+ <country>England</country>
+ <phone> +44 (0) 208 819 6559</phone>
+ <email>info@openedhand.com</email>
+ </address>
+ -->
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/development.xml b/handbook/development.xml
new file mode 100644
index 0000000000..c56c69ca79
--- /dev/null
+++ b/handbook/development.xml
@@ -0,0 +1,815 @@
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<chapter id="platdev">
+<title>Platform Development with Poky</title>
+
+<section id="platdev-appdev">
+ <title>Software development</title>
+ <para>
+ Poky supports several methods of software development. These different
+ forms of development are explained below and can be switched
+ between as needed.
+ </para>
+
+ <section id="platdev-appdev-external-sdk">
+ <title>Developing externally using the Poky SDK</title>
+
+ <para>
+ The meta-toolchain and meta-toolchain-sdk targets (<link linkend='ref-images'>see
+ the images section</link>) build tarballs which contain toolchains and
+ libraries suitable for application development outside Poky. These unpack into the
+ <filename class="directory">/usr/local/poky</filename> directory and contain
+ a setup script, e.g.
+ <filename>/usr/local/poky/eabi-glibc/arm/environment-setup</filename> which
+ can be sourced to initialise a suitable environment. After sourcing this, the
+ compiler, QEMU scripts, QEMU binary, a special version of pkgconfig and other
+ useful utilities are added to the PATH. Variables to assist pkgconfig and
+ autotools are also set so that, for example, configure can find pre-generated test
+ results for tests which need target hardware to run.
+ </para>
+
+ <para>
+ Using the toolchain with autotool enabled packages is straightforward, just pass the
+ appropriate host option to configure e.g. "./configure --host=arm-poky-linux-gnueabi".
+ For other projects it is usually a case of ensuring the cross tools are used e.g.
+ CC=arm-poky-linux-gnueabi-gcc and LD=arm-poky-linux-gnueabi-ld.
+ </para>
+ </section>
+
+ <section id="platdev-appdev-qemu">
+ <title>Developing externally in QEMU</title>
+ <para>
+ Running Poky QEMU images is covered in the <link
+ linkend='intro-quickstart-qemu'>Running an Image</link> section.
+ </para>
+ <para>
+ Poky's QEMU images contain a complete native toolchain. This means
+ that applications can be developed within QEMU in the same was as a
+ normal system. Using qemux86 on an x86 machine is fast since the
+ guest and host architectures match, qemuarm is slower but gives
+ faithful emulation of ARM specific issues. To speed things up these
+ images support using distcc to call a cross-compiler outside the
+ emulated system too. If <command>runqemu</command> was used to start
+ QEMU, and distccd is present on the host system, any bitbake cross
+ compiling toolchain available from the build system will automatically
+ be used from within qemu simply by calling distcc
+ (<command>export CC="distcc"</command> can be set in the enviroment).
+ Alterntatively, if a suitable SDK/toolchain is present in
+ <filename class="directory">/usr/local/poky</filename> it will also
+ automatically be used.
+ </para>
+
+ <para>
+ There are several options for connecting into the emulated system.
+ QEMU provides a framebuffer interface which has standard consoles
+ available. There is also a serial connection available which has a
+ console to the system running on it and IP networking as standard.
+ The images have a dropbear ssh server running with the root password
+ disabled allowing standard ssh and scp commands to work. The images
+ also contain an NFS server exporting the guest's root filesystem
+ allowing that to be made available to the host.
+ </para>
+ </section>
+
+ <section id="platdev-appdev-chroot">
+ <title>Developing externally in a chroot</title>
+ <para>
+ If you have a system that matches the architecture of the Poky machine you're using,
+ such as qemux86, you can run binaries directly from the image on the host system
+ using a chroot combined with tools like <ulink url='http://projects.o-hand.com/xephyr'>Xephyr</ulink>.
+ </para>
+ <para>
+ Poky has some scripts to make using its qemux86 images within a chroot easier. To use
+ these you need to install the poky-scripts package or otherwise obtain the
+ <filename>poky-chroot-setup</filename> and <filename>poky-chroot-run</filename> scripts.
+ You also need Xephyr and chrootuid binaries available. To initialize a system use the setup script:
+ </para>
+ <para>
+ <literallayout class='monospaced'>
+# poky-chroot-setup &lt;qemux86-rootfs.tgz&gt; &lt;target-directory&gt;
+</literallayout>
+ </para>
+ <para>
+ which will unpack the specified qemux86 rootfs tarball into the target-directory.
+ You can then start the system with:
+ </para>
+ <para>
+ <literallayout class='monospaced'>
+# poky-chroot-run &lt;target-directory&gt; &lt;command&gt;
+</literallayout>
+ </para>
+ <para>
+ where the target-directory is the place the rootfs was unpacked to and command is
+ an optional command to run. If no command is specified, the system will drop you
+ within a bash shell. A Xephyr window will be displayed containing the emulated
+ system and you may be asked for a password since some of the commands used for
+ bind mounting directories need to be run using sudo.
+ </para>
+ <para>
+ There are limits as to how far the the realism of the chroot environment extends.
+ It is useful for simple development work or quick tests but full system emulation
+ with QEMU offers a much more realistic environment for more complex development
+ tasks. Note that chroot support within Poky is still experimental.
+ </para>
+ </section>
+
+ <section id="platdev-appdev-insitu">
+ <title>Developing in Poky directly</title>
+ <para>
+ Working directly in Poky is a fast and effective development technique.
+ The idea is that you can directly edit files in
+ <glossterm><link linkend='var-WORKDIR'>WORKDIR</link></glossterm>
+ or the source directory <glossterm><link linkend='var-S'>S</link></glossterm>
+ and then force specific tasks to rerun in order to test the changes.
+ An example session working on the matchbox-desktop package might
+ look like this:
+ </para>
+
+ <para>
+ <literallayout class='monospaced'>
+$ bitbake matchbox-desktop
+$ sh
+$ cd tmp/work/armv5te-poky-linux-gnueabi/matchbox-desktop-2.0+svnr1708-r0/
+$ cd matchbox-desktop-2
+$ vi src/main.c
+$ exit
+$ bitbake matchbox-desktop -c compile -f
+$ bitbake matchbox-desktop
+</literallayout>
+ </para>
+
+ <para>
+ Here, we build the package, change into the work directory for the package,
+ change a file, then recompile the package. Instead of using sh like this,
+ you can also use two different terminals. The risk with working like this
+ is that a command like unpack could wipe out the changes you've made to the
+ work directory so you need to work carefully.
+ </para>
+
+ <para>
+ It is useful when making changes directly to the work directory files to do
+ so using quilt as detailed in the <link linkend='usingpoky-modifying-packages-quilt'>
+ modifying packages with quilt</link> section. The resulting patches can be copied
+ into the recipe directory and used directly in the <glossterm><link
+ linkend='var-SRC_URI'>SRC_URI</link></glossterm>.
+ </para>
+ <para>
+ For a review of the skills used in this section see Sections <link
+ linkend="usingpoky-components-bitbake">2.1.1</link> and <link
+ linkend="usingpoky-debugging-taskrunning">2.4.2</link>.
+ </para>
+
+ </section>
+
+ <section id="platdev-appdev-devshell">
+ <title>Developing with 'devshell'</title>
+
+ <para>
+ When debugging certain commands or even to just edit packages, the
+ 'devshell' can be a useful tool. To start it you run a command like:
+ </para>
+
+ <para>
+ <literallayout class='monospaced'>
+$ bitbake matchbox-desktop -c devshell
+</literallayout>
+ </para>
+
+ <para>
+ which will open a terminal with a shell prompt within the Poky
+ environment. This means PATH is setup to include the cross toolchain,
+ the pkgconfig variables are setup to find the right .pc files,
+ configure will be able to find the Poky site files etc. Within this
+ environment, you can run configure or compile command as if they
+ were being run by Poky itself. You are also changed into the
+ source (<glossterm><link linkend='var-S'>S</link></glossterm>)
+ directory automatically. When finished with the shell just exit it
+ or close the terminal window.
+ </para>
+
+ <para>
+ The default shell used by devshell is the gnome-terminal. Other
+ forms of terminal can also be used by setting the <glossterm>
+ <link linkend='var-TERMCMD'>TERMCMD</link></glossterm> and <glossterm>
+ <link linkend='var-TERMCMDRUN'>TERMCMDRUN</link></glossterm> variables
+ in local.conf. For examples of the other options available, see
+ <filename>meta/conf/bitbake.conf</filename>. An external shell is
+ launched rather than opening directly into the original terminal
+ window to make interaction with bitbakes multiple threads easier
+ and also allow a client/server split of bitbake in the future
+ (devshell will still work over X11 forwarding or similar).
+ </para>
+
+ <para>
+ It is worth remembering that inside devshell you need to use the full
+ compiler name such as <command>arm-poky-linux-gnueabi-gcc</command>
+ instead of just <command>gcc</command> and the same applies to other
+ applications from gcc, bintuils, libtool etc. Poky will have setup
+ environmental variables such as CC to assist applications, such as make,
+ find the correct tools.
+ </para>
+
+ </section>
+
+ <section id="platdev-appdev-srcrev">
+ <title>Developing within Poky with an external SCM based package</title>
+
+ <para>
+ If you're working on a recipe which pulls from an external SCM it
+ is possible to have Poky notice new changes added to the
+ SCM and then build the latest version. This only works for SCMs
+ where its possible to get a sensible revision number for changes.
+ Currently it works for svn, git and bzr repositories.
+ </para>
+
+ <para>
+ To enable this behaviour it is simply a case of adding <glossterm>
+ <link linkend='var-SRCREV'>SRCREV</link></glossterm>_pn-<glossterm>
+ <link linkend='var-PN'>PN</link></glossterm> = "${AUTOREV}" to
+ local.conf where <glossterm><link linkend='var-PN'>PN</link></glossterm>
+ is the name of the package for which you want to enable automatic source
+ revision updating.
+ </para>
+ </section>
+
+ <section id="platdev-appdev-external-anjuta">
+ <title>Developing externally using the Anjuta plugin</title>
+
+ <para>
+ An Anjuta IDE plugin exists to make developing software within the Poky framework
+ easier for the application developer. It presents a graphical IDE from which the
+ developer can cross compile an application then deploy and execute the output in a QEMU
+ emulation session. It also supports cross debugging and profiling.
+ </para>
+
+ <para>
+ To use the plugin, a toolchain and SDK built by Poky is required along with Anjuta and the Anjuta
+ plugin. The Poky Anjuta plugin is available from the OpenedHand SVN repository located at
+ http://svn.o-hand.com/repos/anjuta-poky/trunk/anjuta-plugin-sdk/; a web interface
+ to the repository can be accessed at <ulink url='http://svn.o-hand.com/view/anjuta-poky/'/>.
+ See the README file contained in the project for more information
+ about the dependencies and how to get them along with details of
+ the prebuilt packages.
+ </para>
+
+ <section id="platdev-appdev-external-anjuta-setup">
+ <title>Setting up the Anjuta plugin</title>
+
+ <para>Extract the tarball for the toolchain into / as root. The
+ toolchain will be installed into
+ <filename class="directory">/usr/local/poky</filename>.</para>
+
+ <para>To use the plugin, first open or create an existing
+ project. If creating a new project the "C GTK+" project type
+ will allow itself to be cross-compiled. However you should be
+ aware that this uses glade for the UI.</para>
+
+ <para>To activate the plugin go
+ <menuchoice><guimenu>Edit</guimenu><guimenuitem>Preferences</guimenuitem></menuchoice>,
+ then choose <guilabel>General</guilabel> from the left hand side. Choose the
+ Installed plugins tab, scroll down to <guilabel>Poky
+ SDK</guilabel> and check the
+ box. The plugin is now activated but first it must be
+ configured.</para> </section>
+
+ <section id="platdev-appdev-external-anjuta-configuration">
+ <title>Configuring the Anjuta plugin</title>
+
+ <para>The configuration options for the SDK can be found by choosing
+ the <guilabel>Poky SDK</guilabel> icon from the left hand side. The following options
+ need to be set:</para>
+
+ <itemizedlist>
+
+ <listitem><para><guilabel>SDK root</guilabel>: this is the root directory of the SDK
+ for an ARM EABI SDK this will be <filename
+ class="directory">/usr/local/poky/eabi-glibc/arm</filename>.
+ This directory will contain directories named like "bin",
+ "include", "var", etc. With the file chooser it is important
+ to enter into the "arm" subdirectory for this
+ example.</para></listitem>
+
+ <listitem><para><guilabel>Toolchain triplet</guilabel>: this is the cross compile
+ triplet, e.g. "arm-poky-linux-gnueabi".</para></listitem>
+
+ <listitem><para><guilabel>Kernel</guilabel>: use the file chooser to select the kernel
+ to use with QEMU</para></listitem>
+
+ <listitem><para><guilabel>Root filesystem</guilabel>: use the file chooser to select
+ the root filesystem image, this should be an image (not a
+ tarball)</para></listitem>
+ </itemizedlist>
+
+ </section>
+
+ <section id="platdev-appdev-external-anjuta-usage">
+ <title>Using the Anjuta plugin</title>
+
+ <para>As an example, cross-compiling a project, deploying it into
+ QEMU and running a debugger against it and then doing a system
+ wide profile.</para>
+
+ <para>Choose <menuchoice><guimenu>Build</guimenu><guimenuitem>Run
+ Configure</guimenuitem></menuchoice> or
+ <menuchoice><guimenu>Build</guimenu><guimenuitem>Run
+ Autogenerate</guimenuitem></menuchoice> to run "configure"
+ (or to run "autogen") for the project. This passes command line
+ arguments to instruct it to cross-compile.</para>
+
+ <para>Next do
+ <menuchoice><guimenu>Build</guimenu><guimenuitem>Build
+ Project</guimenuitem></menuchoice> to build and compile the
+ project. If you have previously built the project in the same
+ tree without using the cross-compiler you may find that your
+ project fails to link. Simply do
+ <menuchoice><guimenu>Build</guimenu><guimenuitem>Clean
+ Project</guimenuitem></menuchoice> to remove the old
+ binaries. You may then try building again.</para>
+
+ <para>Next start QEMU by using
+ <menuchoice><guimenu>Tools</guimenu><guimenuitem>Start
+ QEMU</guimenuitem></menuchoice>, this will start QEMU and
+ will show any error messages in the message view. Once Poky has
+ fully booted within QEMU you may now deploy into it.</para>
+
+ <para>Once built and QEMU is running, choose
+ <menuchoice><guimenu>Tools</guimenu><guimenuitem>Deploy</guimenuitem></menuchoice>,
+ this will install the package into a temporary directory and
+ then copy using rsync over SSH into the target. Progress and
+ messages will be shown in the message view.</para>
+
+ <para>To debug a program installed into onto the target choose
+ <menuchoice><guimenu>Tools</guimenu><guimenuitem>Debug
+ remote</guimenuitem></menuchoice>. This prompts for the
+ local binary to debug and also the command line to run on the
+ target. The command line to run should include the full path to
+ the to binary installed in the target. This will start a
+ gdbserver over SSH on the target and also an instance of a
+ cross-gdb in a local terminal. This will be preloaded to connect
+ to the server and use the <guilabel>SDK root</guilabel> to find
+ symbols. This gdb will connect to the target and load in
+ various libraries and the target program. You should setup any
+ breakpoints or watchpoints now since you might not be able to
+ interrupt the execution later. You may stop
+ the debugger on the target using
+ <menuchoice><guimenu>Tools</guimenu><guimenuitem>Stop
+ debugger</guimenuitem></menuchoice>.</para>
+
+ <para>It is also possible to execute a command in the target over
+ SSH, the appropriate environment will be be set for the
+ execution. Choose
+ <menuchoice><guimenu>Tools</guimenu><guimenuitem>Run
+ remote</guimenuitem></menuchoice> to do this. This will open
+ a terminal with the SSH command inside.</para>
+
+ <para>To do a system wide profile against the system running in
+ QEMU choose
+ <menuchoice><guimenu>Tools</guimenu><guimenuitem>Profile
+ remote</guimenuitem></menuchoice>. This will start up
+ OProfileUI with the appropriate parameters to connect to the
+ server running inside QEMU and will also supply the path to the
+ debug information necessary to get a useful profile.</para>
+
+ </section>
+ </section>
+ </section>
+
+<section id="platdev-gdb-remotedebug">
+ <title>Debugging with GDB Remotely</title>
+
+ <para>
+ <ulink url="http://sourceware.org/gdb/">GDB</ulink> (The GNU Project Debugger)
+ allows you to examine running programs to understand and fix problems and
+ also to perform postmortem style analsys of program crashes. It is available
+ as a package within poky and installed by default in sdk images. It works best
+ when -dbg packages for the application being debugged are installed as the
+ extra symbols give more meaningful output from GDB.
+ </para>
+
+ <para>
+ Sometimes, due to memory or disk space constraints, it is not possible
+ to use GDB directly on the remote target to debug applications. This is
+ due to the fact that
+ GDB needs to load the debugging information and the binaries of the
+ process being debugged. GDB then needs to perform many
+ computations to locate information such as function names, variable
+ names and values, stack traces, etc. even before starting the debugging
+ process. This places load on the target system and can alter the
+ characteristics of the program being debugged.
+ </para>
+ <para>
+ This is where GDBSERVER comes into play as it runs on the remote target
+ and does not load any debugging information from the debugged process.
+ Instead, the debugging information processing is done by a GDB instance
+ running on a distant computer - the host GDB. The host GDB then sends
+ control commands to GDBSERVER to make it stop or start the debugged
+ program, as well as read or write some memory regions of that debugged
+ program. All the debugging information loading and processing as well
+ as the heavy debugging duty is done by the host GDB, giving the
+ GDBSERVER running on the target a chance to remain small and fast.
+ </para>
+ <para>
+ As the host GDB is responsible for loading the debugging information and
+ doing the necessary processing to make actual debugging happen, the
+ user has to make sure it can access the unstripped binaries complete
+ with their debugging information and compiled with no optimisations. The
+ host GDB must also have local access to all the libraries used by the
+ debugged program. On the remote target the binaries can remain stripped
+ as GDBSERVER does not need any debugging information there. However they
+ must also be compiled without optimisation matching the host's binaries.
+ </para>
+
+ <para>
+ The binary being debugged on the remote target machine is hence referred
+ to as the 'inferior' in keeping with GDB documentation and terminology.
+ Further documentation on GDB, is available on
+ <ulink url="http://sourceware.org/gdb/documentation/">on their site</ulink>.
+ </para>
+
+ <section id="platdev-gdb-remotedebug-launch-gdbserver">
+ <title>Launching GDBSERVER on the target</title>
+ <para>
+ First, make sure gdbserver is installed on the target. If not,
+ install the gdbserver package (which needs the libthread-db1
+ package).
+ </para>
+ <para>
+ To launch GDBSERVER on the target and make it ready to "debug" a
+ program located at <emphasis>/path/to/inferior</emphasis>, connect
+ to the target and launch:
+ <programlisting>$ gdbserver localhost:2345 /path/to/inferior</programlisting>
+ After that, gdbserver should be listening on port 2345 for debugging
+ commands coming from a remote GDB process running on the host computer.
+ Communication between the GDBSERVER and the host GDB will be done using
+ TCP. To use other communication protocols please refer to the
+ GDBSERVER documentation.
+ </para>
+ </section>
+
+ <section id="platdev-gdb-remotedebug-launch-gdb">
+ <title>Launching GDB on the host computer</title>
+
+ <para>
+ Running GDB on the host computer takes a number of stages, described in the
+ following sections.
+ </para>
+
+ <section id="platdev-gdb-remotedebug-launch-gdb-buildcross">
+ <title>Build the cross GDB package</title>
+ <para>
+ A suitable gdb cross binary is required which runs on your host computer but
+ knows about the the ABI of the remote target. This can be obtained from
+ the the Poky toolchain, e.g.
+ <filename>/usr/local/poky/eabi-glibc/arm/bin/arm-poky-linux-gnueabi-gdb</filename>
+ which "arm" is the target architecture and "linux-gnueabi" the target ABI.
+ </para>
+
+ <para>
+ Alternatively this can be built directly by Poky. To do this you would build
+ the gdb-cross package so for example you would run:
+ <programlisting>bitbake gdb-cross</programlisting>
+ Once built, the cross gdb binary can be found at
+ <programlisting>tmp/cross/bin/&lt;target-abi&gt;-gdb </programlisting>
+ </para>
+
+ </section>
+ <section id="platdev-gdb-remotedebug-launch-gdb-inferiorbins">
+
+ <title>Making the inferior binaries available</title>
+
+ <para>
+ The inferior binary needs to be available to GDB complete with all debugging
+ symbols in order to get the best possible results along with any libraries
+ the inferior depends on and their debugging symbols. There are a number of
+ ways this can be done.
+ </para>
+
+ <para>
+ Perhaps the easiest is to have an 'sdk' image corresponding to the plain
+ image installed on the device. In the case of 'pky-image-sato',
+ 'poky-image-sdk' would contain suitable symbols. The sdk images already
+ have the debugging symbols installed so its just a question expanding the
+ archive to some location and telling GDB where this is.
+ </para>
+
+ <para>
+ Alternatively, poky can build a custom directory of files for a specific
+ debugging purpose by reusing its tmp/rootfs directory, on the host computer
+ in a slightly different way to normal. This directory contains the contents
+ of the last built image. This process assumes the image running on the
+ target was the last image to be built by Poky, the package <emphasis>foo</emphasis>
+ contains the inferior binary to be debugged has been built without without
+ optimisation and has debugging information available.
+ </para>
+ <para>
+ Firstly you want to install the <emphasis>foo</emphasis> package to tmp/rootfs
+ by doing:
+ </para>
+ <programlisting>tmp/staging/i686-linux/usr/bin/ipkg-cl -f \
+tmp/work/&lt;target-abi&gt;/poky-image-sato-1.0-r0/temp/ipkg.conf -o \
+tmp/rootfs/ update</programlisting>
+ <para>
+ then,
+ </para>
+ <programlisting>tmp/staging/i686-linux/usr/bin/ipkg-cl -f \
+tmp/work/&lt;target-abi&gt;/poky-image-sato-1.0-r0/temp/ipkg.conf \
+-o tmp/rootfs install foo
+
+tmp/staging/i686-linux/usr/bin/ipkg-cl -f \
+tmp/work/&lt;target-abi&gt;/poky-image-sato-1.0-r0/temp/ipkg.conf \
+-o tmp/rootfs install foo-dbg</programlisting>
+ <para>
+ which installs the debugging information too.
+ </para>
+
+ </section>
+ <section id="platdev-gdb-remotedebug-launch-gdb-launchhost">
+
+ <title>Launch the host GDB</title>
+ <para>
+ To launch the host GDB, run the cross gdb binary identified above with
+ the inferior binary specified on the commandline:
+ <programlisting>&lt;target-abi&gt;-gdb rootfs/usr/bin/foo</programlisting>
+ This loads the binary of program <emphasis>foo</emphasis>
+ as well as its debugging information. Once the gdb prompt
+ appears, you must instruct GDB to load all the libraries
+ of the inferior from tmp/rootfs:
+ <programlisting>set solib-absolute-prefix /path/to/tmp/rootfs</programlisting>
+ where <filename>/path/to/tmp/rootfs</filename> must be
+ the absolute path to <filename>tmp/rootfs</filename> or wherever the
+ binaries with debugging information are located.
+ </para>
+ <para>
+ Now, tell GDB to connect to the GDBSERVER running on the remote target:
+ <programlisting>target remote remote-target-ip-address:2345</programlisting>
+ Where remote-target-ip-address is the IP address of the
+ remote target where the GDBSERVER is running. 2345 is the
+ port on which the GDBSERVER is running.
+ </para>
+
+ </section>
+ <section id="platdev-gdb-remotedebug-launch-gdb-using">
+
+ <title>Using the Debugger</title>
+ <para>
+ Debugging can now proceed as normal, as if the debugging were being done on the
+ local machine, for example to tell GDB to break in the <emphasis>main</emphasis>
+ function, for instance:
+ <programlisting>break main</programlisting>
+ and then to tell GDB to "continue" the inferior execution,
+ <programlisting>continue</programlisting>
+ </para>
+ <para>
+ For more information about using GDB please see the
+ project's online documentation at <ulink
+ url="http://sourceware.org/gdb/download/onlinedocs/"/>.
+ </para>
+ </section>
+ </section>
+
+</section>
+
+<section id="platdev-oprofile">
+ <title>Profiling with OProfile</title>
+
+ <para>
+ <ulink url="http://oprofile.sourceforge.net/">OProfile</ulink> is a
+ statistical profiler well suited to finding performance
+ bottlenecks in both userspace software and the kernel. It provides
+ answers to questions like "Which functions does my application spend
+ the most time in when doing X?". Poky is well integrated with OProfile
+ to make profiling applications on target hardware straightforward.
+ </para>
+
+ <para>
+ To use OProfile you need an image with OProfile installed. The easiest
+ way to do this is with "tools-profile" in <glossterm><link
+ linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm>. You also
+ need debugging symbols to be available on the system where the analysis
+ will take place. This can be achieved with "dbg-pkgs" in <glossterm><link
+ linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm> or by
+ installing the appropriate -dbg packages. For
+ successful call graph analysis the binaries must preserve the frame
+ pointer register and hence should be compiled with the
+ "-fno-omit-framepointer" flag. In Poky this can be achieved with
+ <glossterm><link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION
+ </link></glossterm> = "-fexpensive-optimizations -fno-omit-framepointer
+ -frename-registers -O2" or by setting <glossterm><link
+ linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link></glossterm> = "1" in
+ local.conf (the latter will also add extra debug information making the
+ debug packages large).
+ </para>
+
+ <section id="platdev-oprofile-target">
+ <title>Profiling on the target</title>
+
+ <para>
+ All the profiling work can be performed on the target device. A
+ simple OProfile session might look like:
+ </para>
+
+ <para>
+ <literallayout class='monospaced'>
+# opcontrol --reset
+# opcontrol --start --separate=lib --no-vmlinux -c 5
+[do whatever is being profiled]
+# opcontrol --stop
+$ opreport -cl
+</literallayout>
+ </para>
+
+ <para>
+ Here, the reset command clears any previously profiled data,
+ OProfile is then started. The options used to start OProfile mean
+ dynamic library data is kept separately per application, kernel
+ profiling is disabled and callgraphing is enabled up to 5 levels
+ deep. To profile the kernel, you would specify the
+ <parameter>--vmlinux=/path/to/vmlinux</parameter> option (the vmlinux file is usually in
+ <filename class="directory">/boot/</filename> in Poky and must match the running kernel). The profile is
+ then stopped and the results viewed with opreport with options
+ to see the separate library symbols and callgraph information.
+ </para>
+ <para>
+ Callgraphing means OProfile not only logs infomation about which
+ functions time is being spent in but also which functions
+ called those functions (their parents) and which functions that
+ function calls (its children). The higher the callgraphing depth,
+ the more accurate the results but this also increased the loging
+ overhead so it should be used with caution. On ARM, binaries need
+ to have the frame pointer enabled for callgraphing to work (compile
+ with the gcc option -fno-omit-framepointer).
+ </para>
+ <para>
+ For more information on using OProfile please see the OProfile
+ online documentation at <ulink
+ url="http://oprofile.sourceforge.net/docs/"/>.
+ </para>
+ </section>
+
+ <section id="platdev-oprofile-oprofileui">
+ <title>Using OProfileUI</title>
+
+ <para>
+ A graphical user interface for OProfile is also available. You can
+ either use prebuilt Debian packages from the <ulink
+ url='http://debian.o-hand.com/'>OpenedHand repository</ulink> or
+ download and build from svn at
+ http://svn.o-hand.com/repos/oprofileui/trunk/. If the
+ "tools-profile" image feature is selected, all necessary binaries
+ are installed onto the target device for OProfileUI interaction.
+ </para>
+
+ <para>
+ In order to convert the data in the sample format from the target
+ to the host the <filename>opimport</filename> program is needed.
+ This is not included in standard Debian OProfile packages but an
+ OProfile package with this addition is also available from the <ulink
+ url='http://debian.o-hand.com/'>OpenedHand repository</ulink>.
+ We recommend using OProfile 0.9.3 or greater. Other patches to
+ OProfile may be needed for recent OProfileUI features, but Poky
+ usually includes all needed patches on the target device. Please
+ see the <ulink
+ url='http://svn.o-hand.com/repos/oprofileui/trunk/README'>
+ OProfileUI README</ulink> for up to date information, and the
+ <ulink url="http://labs.o-hand.com/oprofileui">OProfileUI website
+ </ulink> for more information on the OProfileUI project.
+ </para>
+
+ <section id="platdev-oprofile-oprofileui-online">
+ <title>Online mode</title>
+
+ <para>
+ This assumes a working network connection with the target
+ hardware. In this case you just need to run <command>
+ "oprofile-server"</command> on the device. By default it listens
+ on port 4224. This can be changed with the <parameter>--port</parameter> command line
+ option.
+
+ </para>
+
+ <para>
+ The client program is called <command>oprofile-viewer</command>. The
+ UI is relatively straightforward, the key functionality is accessed
+ through the buttons on the toolbar (which are duplicated in the
+ menus.) These buttons are:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Connect - connect to the remote host, the IP address or hostname for the
+ target can be supplied here.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Disconnect - disconnect from the target.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Start - start the profiling on the device.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Stop - stop the profiling on the device and download the data to the local
+ host. This will generate the profile and show it in the viewer.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download - download the data from the target, generate the profile and show it
+ in the viewer.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Reset - reset the sample data on the device. This will remove the sample
+ information that was collected on a previous sampling run. Ensure you do this
+ if you do not want to include old sample information.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Save - save the data downloaded from the target to another directory for later
+ examination.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Open - load data that was previously saved.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ The behaviour of the client is to download the complete 'profile archive' from
+ the target to the host for processing. This archive is a directory containing
+ the sample data, the object files and the debug information for said object
+ files. This archive is then converted using a script included in this
+ distribution ('oparchconv') that uses 'opimport' to convert the archive from
+ the target to something that can be processed on the host.
+ </para>
+
+ <para>
+ Downloaded archives are kept in /tmp and cleared up when they are no longer in
+ use.
+ </para>
+
+ <para>
+ If you wish to profile into the kernel, this is possible, you just need to ensure
+ a vmlinux file matching the running kernel is available. In Poky this is usually
+ located in /boot/vmlinux-KERNELVERSION, where KERNEL-version is the version of
+ the kernel e.g. 2.6.23. Poky generates separate vmlinux packages for each kernel
+ it builds so it should be a question of just ensuring a matching package is
+ installed (<command> ipkg install kernel-vmlinux</command>. These are automatically
+ installed into development and profiling images alongside OProfile. There is a
+ configuration option within the OProfileUI settings page where the location of
+ the vmlinux file can be entered.
+ </para>
+
+ <para>
+ Waiting for debug symbols to transfer from the device can be slow and it's not
+ always necessary to actually have them on device for OProfile use. All that is
+ needed is a copy of the filesystem with the debug symbols present on the viewer
+ system. The <link linkend='platdev-gdb-remotedebug-launch-gdb'>GDB remote debug
+ section</link> covers how to create such a directory with Poky and the location
+ of this directory can again be specified in the OProfileUI settings dialog. If
+ specified, it will be used where the file checksums match those on the system
+ being profiled.
+ </para>
+ </section>
+ <section id="platdev-oprofile-oprofileui-offline">
+ <title>Offline mode</title>
+
+ <para>
+ If no network access to the target is available an archive for processing in
+ 'oprofile-viewer' can be generated with the following set of command.
+ </para>
+
+ <para>
+ <literallayout class='monospaced'>
+# opcontrol --reset
+# opcontrol --start --separate=lib --no-vmlinux -c 5
+[do whatever is being profiled]
+# opcontrol --stop
+# oparchive -o my_archive
+</literallayout>
+ </para>
+
+ <para>
+ Where my_archive is the name of the archive directory where you would like the
+ profile archive to be kept. The directory will be created for you. This can
+ then be copied to another host and loaded using 'oprofile-viewer''s open
+ functionality. The archive will be converted if necessary.
+ </para>
+ </section>
+ </section>
+</section>
+
+</chapter>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/examples/hello-autotools/hello_2.3.bb b/handbook/examples/hello-autotools/hello_2.3.bb
new file mode 100644
index 0000000000..5c5332f731
--- /dev/null
+++ b/handbook/examples/hello-autotools/hello_2.3.bb
@@ -0,0 +1,7 @@
+DESCRIPTION = "GNU Helloworld application"
+SECTION = "examples"
+LICENSE = "GPLv3"
+
+SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.bz2"
+
+inherit autotools
diff --git a/handbook/examples/hello-single/files/helloworld.c b/handbook/examples/hello-single/files/helloworld.c
new file mode 100644
index 0000000000..fc7169b7b8
--- /dev/null
+++ b/handbook/examples/hello-single/files/helloworld.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(void)
+{
+ printf("Hello world!\n");
+
+ return 0;
+}
diff --git a/handbook/examples/hello-single/hello.bb b/handbook/examples/hello-single/hello.bb
new file mode 100644
index 0000000000..d815b1ed73
--- /dev/null
+++ b/handbook/examples/hello-single/hello.bb
@@ -0,0 +1,16 @@
+DESCRIPTION = "Simple helloworld application"
+SECTION = "examples"
+LICENSE = "MIT"
+
+SRC_URI = "file://helloworld.c"
+
+S = "${WORKDIR}"
+
+do_compile() {
+ ${CC} helloworld.c -o helloworld
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 helloworld ${D}${bindir}
+}
diff --git a/handbook/examples/libxpm/libxpm_3.5.6.bb b/handbook/examples/libxpm/libxpm_3.5.6.bb
new file mode 100644
index 0000000000..2710189b2a
--- /dev/null
+++ b/handbook/examples/libxpm/libxpm_3.5.6.bb
@@ -0,0 +1,13 @@
+require xorg-lib-common.inc
+
+DESCRIPTION = "X11 Pixmap library"
+LICENSE = "X-BSD"
+DEPENDS += "libxext"
+PR = "r2"
+PE = "1"
+
+XORG_PN = "libXpm"
+
+PACKAGES =+ "sxpm cxpm"
+FILES_cxpm = "${bindir}/cxpm"
+FILES_sxpm = "${bindir}/sxpm"
diff --git a/handbook/examples/mtd-makefile/mtd-utils_1.0.0.bb b/handbook/examples/mtd-makefile/mtd-utils_1.0.0.bb
new file mode 100644
index 0000000000..b21dc653af
--- /dev/null
+++ b/handbook/examples/mtd-makefile/mtd-utils_1.0.0.bb
@@ -0,0 +1,13 @@
+DESCRIPTION = "Tools for managing memory technology devices."
+SECTION = "base"
+DEPENDS = "zlib"
+HOMEPAGE = "http://www.linux-mtd.infradead.org/"
+LICENSE = "GPLv2"
+
+SRC_URI = "ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-${PV}.tar.gz"
+
+CFLAGS_prepend = "-I ${S}/include "
+
+do_install() {
+ oe_runmake install DESTDIR=${D}
+}
diff --git a/handbook/extendpoky.xml b/handbook/extendpoky.xml
new file mode 100644
index 0000000000..18a7b66647
--- /dev/null
+++ b/handbook/extendpoky.xml
@@ -0,0 +1,726 @@
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<chapter id='extendpoky'>
+
+<title>Extending Poky</title>
+
+ <para>
+ This section gives information about how to extend the functionality
+ already present in Poky, documenting standard tasks such as adding new
+ software packages, extending or customising images or porting poky to
+ new hardware (adding a new machine). It also contains advice about how
+ to manage the process of making changes to Poky to achieve best results.
+ </para>
+
+ <section id='usingpoky-extend-addpkg'>
+ <title>Adding a Package</title>
+
+ <para>
+ To add package into Poky you need to write a recipe for it.
+ Writing a recipe means creating a .bb file which sets various
+ variables. The variables
+ useful for recipes are detailed in the <link linkend='ref-varlocality-recipe-required'>
+ recipe reference</link> section along with more detailed information
+ about issues such as recipe naming.
+ </para>
+
+ <para>
+ The simplest way to add a new package is to base it on a similar
+ pre-existing recipe. There are some examples below of how to add
+ standard types of packages:
+ </para>
+
+ <section id='usingpoky-extend-addpkg-singlec'>
+ <title>Single .c File Package (Hello World!)</title>
+
+ <para>
+ To build an application from a single file stored locally requires a
+ recipe which has the file listed in the <glossterm><link
+ linkend='var-SRC_URI'>SRC_URI</link></glossterm> variable. In addition
+ the <function>do_compile</function> and <function>do_install</function>
+ tasks need to be manually written. The <glossterm><link linkend='var-S'>
+ S</link></glossterm> variable defines the directory containing the source
+ code which in this case is set equal to <glossterm><link linkend='var-WORKDIR'>
+ WORKDIR</link></glossterm>, the directory BitBake uses for the build.
+ </para>
+ <programlisting>
+DESCRIPTION = "Simple helloworld application"
+SECTION = "examples"
+LICENSE = "MIT"
+
+SRC_URI = "file://helloworld.c"
+
+S = "${WORKDIR}"
+
+do_compile() {
+ ${CC} helloworld.c -o helloworld
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 helloworld ${D}${bindir}
+}
+ </programlisting>
+
+ <para>
+ As a result of the build process "helloworld" and "helloworld-dbg"
+ packages will be built.
+ </para>
+ </section>
+
+ <section id='usingpoky-extend-addpkg-autotools'>
+ <title>Autotooled Package</title>
+
+ <para>
+ Applications which use autotools (autoconf, automake)
+ require a recipe which has a source archive listed in
+ <glossterm><link
+ linkend='var-SRC_URI'>SRC_URI</link></glossterm> and
+ <command>inherit autotools</command> to instruct BitBake to use the
+ <filename>autotools.bbclass</filename> which has
+ definitions of all the steps
+ needed to build an autotooled application.
+ The result of the build will be automatically packaged and if
+ the application uses NLS to localise then packages with
+ locale information will be generated (one package per
+ language).
+ </para>
+
+ <programlisting>
+DESCRIPTION = "GNU Helloworld application"
+SECTION = "examples"
+LICENSE = "GPLv2"
+
+SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.bz2"
+
+inherit autotools
+ </programlisting>
+
+ </section>
+
+ <section id='usingpoky-extend-addpkg-makefile'>
+ <title>Makefile-Based Package</title>
+
+ <para>
+ Applications which use GNU make require a recipe which has
+ the source archive listed in <glossterm><link
+ linkend='var-SRC_URI'>SRC_URI</link></glossterm>.
+ Adding a <function>do_compile</function> step
+ is not needed as by default BitBake will start the "make"
+ command to compile the application. If there is a need for
+ additional options to make then they should be stored in the
+ <glossterm><link
+ linkend='var-EXTRA_OEMAKE'>EXTRA_OEMAKE</link></glossterm> variable - BitBake
+ will pass them into the GNU
+ make invocation. A <function>do_install</function> task is required
+ - otherwise BitBake will run an empty <function>do_install</function>
+ task by default.
+ </para>
+
+ <para>
+ Some applications may require extra parameters to be passed to
+ the compiler, for example an additional header path. This can
+ be done buy adding to the <glossterm><link
+ linkend='var-CFLAGS'>CFLAGS</link></glossterm> variable, as in the example below.
+ </para>
+
+ <programlisting>
+DESCRIPTION = "Tools for managing memory technology devices."
+SECTION = "base"
+DEPENDS = "zlib"
+HOMEPAGE = "http://www.linux-mtd.infradead.org/"
+LICENSE = "GPLv2"
+
+SRC_URI = "ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-${PV}.tar.gz"
+
+CFLAGS_prepend = "-I ${S}/include "
+
+do_install() {
+ oe_runmake install DESTDIR=${D}
+}
+ </programlisting>
+
+ </section>
+
+ <section id='usingpoky-extend-addpkg-files'>
+ <title>Controlling packages content</title>
+
+ <para>
+ The variables <glossterm><link
+ linkend='var-PACKAGES'>PACKAGES</link></glossterm> and
+ <glossterm><link linkend='var-FILES'>FILES</link></glossterm> are used to split an
+ application into multiple packages.
+ </para>
+
+ <para>
+ Below the "libXpm" recipe is used as an example. By
+ default the "libXpm" recipe generates one package
+ which contains the library
+ and also a few binaries. The recipe can be adapted to
+ split the binaries into separate packages.
+ </para>
+
+ <programlisting>
+require xorg-lib-common.inc
+
+DESCRIPTION = "X11 Pixmap library"
+LICENSE = "X-BSD"
+DEPENDS += "libxext"
+PE = "1"
+
+XORG_PN = "libXpm"
+
+PACKAGES =+ "sxpm cxpm"
+FILES_cxpm = "${bindir}/cxpm"
+FILES_sxpm = "${bindir}/sxpm"
+ </programlisting>
+
+ <para>
+ In this example we want to ship the "sxpm" and "cxpm" binaries
+ in separate packages. Since "bindir" would be packaged into the
+ main <glossterm><link linkend='var-PN'>PN</link></glossterm>
+ package as standard we prepend the <glossterm><link
+ linkend='var-PACKAGES'>PACKAGES</link></glossterm> variable so
+ additional package names are added to the start of list. The
+ extra <glossterm><link linkend='var-PN'>FILES</link></glossterm>_*
+ variables then contain information to specify which files and
+ directories goes into which package.
+ </para>
+ </section>
+
+ <section id='usingpoky-extend-addpkg-postinstalls'>
+ <title>Post Install Scripts</title>
+
+ <para>
+ To add a post-installation script to a package, add
+ a <function>pkg_postinst_PACKAGENAME()</function>
+ function to the .bb file
+ where PACKAGENAME is the name of the package to attach
+ the postinst script to. A post-installation function has the following structure:
+ </para>
+ <programlisting>
+pkg_postinst_PACKAGENAME () {
+#!/bin/sh -e
+# Commands to carry out
+}
+ </programlisting>
+ <para>
+ The script defined in the post installation function
+ gets called when the rootfs is made. If the script succeeds,
+ the package is marked as installed. If the script fails,
+ the package is marked as unpacked and the script will be
+ executed again on the first boot of the image.
+ </para>
+
+ <para>
+ Sometimes it is necessary that the execution of a post-installation
+ script is delayed until the first boot, because the script
+ needs to be executed the device itself. To delay script execution
+ until boot time, the post-installation function should have the
+ following structure:
+ </para>
+
+ <programlisting>
+pkg_postinst_PACKAGENAME () {
+#!/bin/sh -e
+if [ x"$D" = "x" ]; then
+# Actions to carry out on the device go here
+else
+exit 1
+fi
+}
+ </programlisting>
+
+ <para>
+ The structure above delays execution until first boot
+ because the <glossterm><link
+ linkend='var-D'>D</link></glossterm> variable points
+ to the 'image'
+ directory when the rootfs is being made at build time but
+ is unset when executed on the first boot.
+ </para>
+ </section>
+
+ </section>
+
+ <section id='usingpoky-extend-customimage'>
+ <title>Customising Images</title>
+
+ <para>
+ Poky images can be customised to satisfy
+ particular requirements. Several methods are detailed below
+ along with guidelines of when to use them.
+ </para>
+
+ <section id='usingpoky-extend-customimage-custombb'>
+ <title>Customising Images through a custom image .bb files</title>
+
+ <para>
+ One way to get additional software into an image is by creating a
+ custom image. The recipe will contain two lines:
+ </para>
+
+ <programlisting>
+IMAGE_INSTALL = "task-poky-x11-base package1 package2"
+
+inherit poky-image
+ </programlisting>
+
+ <para>
+ By creating a custom image, a developer has total control
+ over the contents of the image. It is important use
+ the correct names of packages in the <glossterm><link
+ linkend='var-IMAGE_INSTALL'>IMAGE_INSTALL</link></glossterm> variable.
+ The names must be in
+ the OpenEmbedded notation instead of Debian notation, for example
+ "glibc-dev" instead of "libc6-dev" etc.
+ </para>
+
+ <para>
+ The other method of creating a new image is by modifying
+ an existing image. For example if a developer wants to add
+ "strace" into "poky-image-sato" the following recipe can
+ be used:
+ </para>
+
+ <programlisting>
+require poky-image-sato.bb
+
+IMAGE_INSTALL += "strace"
+ </programlisting>
+
+ </section>
+
+ <section id='usingpoky-extend-customimage-customtasks'>
+ <title>Customising Images through custom tasks</title>
+
+ <para>
+ For for complex custom images, the best approach is to create a custom
+ task package which is them used to build the image (or images). A good
+ example of a tasks package is <filename>meta/packages/tasks/task-poky.bb
+ </filename>. The <glossterm><link linkend='var-PACKAGES'>PACKAGES</link></glossterm>
+ variable lists the task packages to build (along with the complimentary
+ -dbg and -dev packages). For each package added,
+ <glossterm><link linkend='var-PACKAGES'>RDEPENDS</link></glossterm> and
+ <glossterm><link linkend='var-PACKAGES'>RRECOMMENDS</link></glossterm>
+ entries can then be added each containing a list of packages the parent
+ task package should contain. An example would be:
+ </para>
+
+ <para>
+ <programlisting>
+DESCRIPTION = "My Custom Tasks"
+
+PACKAGES = "\
+ task-custom-apps \
+ task-custom-apps-dbg \
+ task-custom-apps-dev \
+ task-custom-tools \
+ task-custom-tools-dbg \
+ task-custom-tools-dev \
+ "
+
+RDEPENDS_task-custom-apps = "\
+ dropbear \
+ portmap \
+ psplash"
+
+RDEPENDS_task-custom-tools = "\
+ oprofile \
+ oprofileui-server \
+ lttng-control \
+ lttng-viewer"
+
+RRECOMMENDS_task-custom-tools = "\
+ kernel-module-oprofile"
+</programlisting>
+ </para>
+
+ <para>
+ In this example, two tasks packages are created, task-custom-apps and
+ task-custom-tools with the dependencies and recommended package dependencies
+ listed. To build an image using these task packages, you would then add
+ "task-custom-apps" and/or "task-custom-tools" to <glossterm><link
+ linkend='var-IMAGE_INSTALL'>IMAGE_INSTALL</link></glossterm> or other forms
+ of image dependencies as described in other areas of this section.
+ </para>
+ </section>
+
+ <section id='usingpoky-extend-customimage-imagefeatures'>
+ <title>Customising Images through custom <glossterm><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm></title>
+
+ <para>
+ Ultimately users may want to add extra image "features" as used by Poky with the
+ <glossterm><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm>
+ variable. To create these, the best reference is <filename>meta/classes/poky-image.bbclass</filename>
+ which illustrates how poky achieves this. In summary, the file looks at the contents of the
+ <glossterm><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm>
+ variable and based on this generates the <glossterm><link linkend='var-IMAGE_INSTALL'>
+ IMAGE_INSTALL</link></glossterm> variable automatically. Extra features can be added by
+ extending the class or creating a custom class for use with specialised image .bb files.
+ </para>
+ </section>
+
+ <section id='usingpoky-extend-customimage-localconf'>
+ <title>Customising Images through local.conf</title>
+
+ <para>
+ It is possible to customise image contents by abusing
+ variables used by distribution maintainers in local.conf.
+ This method only allows the addition of packages and
+ is not recommended.
+ </para>
+
+ <para>
+ To add an "strace" package into the image the following is
+ added to local.conf:
+ </para>
+
+ <programlisting>
+DISTRO_EXTRA_RDEPENDS += "strace"
+ </programlisting>
+
+ <para>
+ However, since the <glossterm><link linkend='var-DISTRO_EXTRA_RDEPENDS'>
+ DISTRO_EXTRA_RDEPENDS</link></glossterm> variable is for
+ distribution maintainers this method does not make
+ adding packages as simple as a custom .bb file. Using
+ this method, a few packages will need to be recreated
+ and the the image built.
+ </para>
+ <programlisting>
+bitbake -cclean task-boot task-base task-poky
+bitbake poky-image-sato
+ </programlisting>
+
+ <para>
+ Cleaning task-* packages is required because they use the
+ <glossterm><link linkend='var-DISTRO_EXTRA_RDEPENDS'>
+ DISTRO_EXTRA_RDEPENDS</link></glossterm> variable. There is no need to
+ build them by hand as Poky images depend on the packages they contain so
+ dependencies will be built automatically. For this reason we don't use the
+ "rebuild" task in this case since "rebuild" does not care about
+ dependencies - it only rebuilds the specified package.
+ </para>
+
+ </section>
+
+ </section>
+
+<section id="platdev-newmachine">
+ <title>Porting Poky to a new machine</title>
+ <para>
+ Adding a new machine to Poky is a straightforward process and
+ this section gives an idea of the changes that are needed. This guide is
+ meant to cover adding machines similar to those Poky already supports.
+ Adding a totally new architecture might require gcc/glibc changes as
+ well as updates to the site information and, whilst well within Poky's
+ capabilities, is outside the scope of this section.
+ </para>
+
+ <section id="platdev-newmachine-conffile">
+ <title>Adding the machine configuration file</title>
+ <para>
+ A .conf file needs to be added to conf/machine/ with details of the
+ device being added. The name of the file determines the name Poky will
+ use to reference this machine.
+ </para>
+
+ <para>
+ The most important variables to set in this file are <glossterm>
+ <link linkend='var-TARGET_ARCH'>TARGET_ARCH</link></glossterm>
+ (e.g. "arm"), <glossterm><link linkend='var-PREFERRED_PROVIDER'>
+ PREFERRED_PROVIDER</link></glossterm>_virtual/kernel (see below) and
+ <glossterm><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES
+ </link></glossterm> (e.g. "kernel26 apm screen wifi"). Other variables
+ like <glossterm><link linkend='var-SERIAL_CONSOLE'>SERIAL_CONSOLE
+ </link></glossterm> (e.g. "115200 ttyS0"), <glossterm>
+ <link linkend='var-KERNEL_IMAGETYPE'>KERNEL_IMAGETYPE</link>
+ </glossterm> (e.g. "zImage") and <glossterm><link linkend='var-IMAGE_FSTYPES'>
+ IMAGE_FSTYPES</link></glossterm> (e.g. "tar.gz jffs2") might also be
+ needed. Full details on what these variables do and the meaning of
+ their contents is available through the links.
+ </para>
+ </section>
+
+ <section id="platdev-newmachine-kernel">
+ <title>Adding a kernel for the machine</title>
+ <para>
+ Poky needs to be able to build a kernel for the machine. You need
+ to either create a new kernel recipe for this machine or extend an
+ existing recipe. There are plenty of kernel examples in the
+ packages/linux directory which can be used as references.
+ </para>
+ <para>
+ If creating a new recipe the "normal" recipe writing rules apply
+ for setting up a <glossterm><link linkend='var-SRC_URI'>SRC_URI
+ </link></glossterm> including any patches and setting <glossterm>
+ <link linkend='var-S'>S</link></glossterm> to point at the source
+ code. You will need to create a configure task which configures the
+ unpacked kernel with a defconfig be that through a "make defconfig"
+ command or more usually though copying in a suitable defconfig and
+ running "make oldconfig". By making use of "inherit kernel" and also
+ maybe some of the linux-*.inc files, most other functionality is
+ centralised and the the defaults of the class normally work well.
+ </para>
+ <para>
+ If extending an existing kernel it is usually a case of adding a
+ suitable defconfig file in a location similar to that used by other
+ machine's defconfig files in a given kernel, possibly listing it in
+ the SRC_URI and adding the machine to the expression in <glossterm>
+ <link linkend='var-COMPATIBLE_MACHINES'>COMPATIBLE_MACHINES</link>
+ </glossterm>.
+ </para>
+ </section>
+
+ <section id="platdev-newmachine-formfactor">
+ <title>Adding a formfactor configuration file</title>
+ <para>
+ A formfactor configuration file provides information about the
+ target hardware on which Poky is running, and that Poky cannot
+ obtain from other sources such as the kernel. Some examples of
+ information contained in a formfactor configuration file include
+ framebuffer orientation, whether or not the system has a keyboard,
+ the positioning of the keyboard in relation to the screen, and
+ screen resolution.
+ </para>
+ <para>
+ Sane defaults should be used in most cases, but if customisation is
+ necessary you need to create a <filename>machconfig</filename> file
+ under <filename>meta/packages/formfactor/files/MACHINENAME/</filename>
+ where <literal>MACHINENAME</literal> is the name for which this infomation
+ applies. For information about the settings available and the defaults, please see
+ <filename>meta/packages/formfactor/files/config</filename>.
+ </para>
+ </section>
+</section>
+
+<section id='usingpoky-changes'>
+ <title>Making and Maintaining Changes</title>
+
+ <para>
+ We recognise that people will want to extend/configure/optimise Poky for
+ their specific uses, especially due to the extreme configurability and
+ flexibility Poky offers. To ensure ease of keeping pace with future
+ changes in Poky we recommend making changes to Poky in a controlled way.
+ </para>
+ <para>
+ Poky supports the idea of <link
+ linkend='usingpoky-changes-collections'>"collections"</link> which when used
+ properly can massively ease future upgrades and allow segregation
+ between the Poky core and a given developer's changes. Some other advice on
+ managing changes to Poky is also given in the following section.
+ </para>
+
+ <section id="usingpoky-changes-collections">
+ <title>Bitbake Collections</title>
+
+ <para>
+ Often, people want to extend Poky either through adding packages
+ or overriding files contained within Poky to add their own
+ functionality. Bitbake has a powerful mechanism called
+ collections which provide a way to handle this which is fully
+ supported and actively encouraged within Poky.
+ </para>
+ <para>
+ In the standard tree, meta-extras is an example of how you can
+ do this. As standard the data in meta-extras is not used on a
+ Poky build but local.conf.sample shows how to enable it:
+ </para>
+ <para>
+ <literallayout class='monospaced'>
+BBFILES := "${OEROOT}/meta/packages/*/*.bb ${OEROOT}/meta-extras/packages/*/*.bb"
+BBFILE_COLLECTIONS = "normal extras"
+BBFILE_PATTERN_normal = "^${OEROOT}/meta/"
+BBFILE_PATTERN_extras = "^${OEROOT}/meta-extras/"
+BBFILE_PRIORITY_normal = "5"
+BBFILE_PRIORITY_extras = "5"</literallayout>
+ </para>
+ <para>
+ As can be seen, the extra recipes are added to BBFILES. The
+ BBFILE_COLLECTIONS variable is then set to contain a list of
+ collection names. The BBFILE_PATTERN variables are regular
+ expressions used to match files from BBFILES into a particular
+ collection in this case by using the base pathname.
+ The BBFILE_PRIORITY variable then assigns the different
+ priorities to the files in different collections. This is useful
+ in situations where the same package might appear in both
+ repositories and allows you to choose which collection should
+ 'win'.
+ </para>
+ <para>
+ This works well for recipes. For bbclasses and configuration
+ files, you can use the BBPATH environment variable. In this
+ case, the first file with the matching name found in BBPATH is
+ the one that is used, just like the PATH variable for binaries.
+ </para>
+ </section>
+
+
+ <section id='usingpoky-changes-commits'>
+ <title>Committing Changes</title>
+
+ <para>
+ Modifications to Poky are often managed under some kind of source
+ revision control system. The policy for committing to such systems
+ is important as some simple policy can significantly improve
+ usability. The tips below are based on the policy that OpenedHand
+ uses for commits to Poky.
+ </para>
+
+ <para>
+ It helps to use a consistent style for commit messages when committing
+ changes. We've found a style where the first line of a commit message
+ summarises the change and starts with the name of any package affected
+ work well. Not all changes are to specific packages so the prefix could
+ also be a machine name or class name instead. If a change needs a longer
+ description this should follow the summary.
+ </para>
+
+ <para>
+ Any commit should be self contained in that it should leave the
+ metadata in a consistent state, buildable before and after the
+ commit. This helps ensure the autobuilder test results are valid
+ but is good practice regardless.
+ </para>
+ </section>
+
+ <section id='usingpoky-changes-prbump'>
+ <title>Package Revision Incrementing</title>
+
+ <para>
+ If a committed change will result in changing the package output
+ then the value of the <glossterm><link linkend='var-PR'>PR</link>
+ </glossterm> variable needs to be increased (commonly referred to
+ as 'bumped') as part of that commit. Only integer values are used
+ and <glossterm><link linkend='var-PR'>PR</link></glossterm> =
+ "r0" should not be added into new recipes as this is default value.
+ When upgrading the version of a package (<glossterm><link
+ linkend='var-PV'>PV</link></glossterm>), the <glossterm><link
+ linkend='var-PR'>PR</link></glossterm> variable should be removed.
+ </para>
+
+ <para>
+ The aim is that the package version will only ever increase. If
+ for some reason <glossterm><link linkend='var-PV'>PV</link></glossterm>
+ will change and but not increase, the <glossterm><link
+ linkend='var-PE'>PE</link></glossterm> (Package Epoch) can
+ be increased (it defaults to '0'). The version numbers aim to
+ follow the <ulink url='http://www.debian.org/doc/debian-policy/ch-controlfields.html'>
+ Debian Version Field Policy Guidelines</ulink> which define how
+ versions are compared and hence what "increasing" means.
+ </para>
+
+ <para>
+ There are two reasons for doing this, the first is to ensure that
+ when a developer updates and rebuilds, they get all the changes to
+ the repository and don't have to remember to rebuild any sections.
+ The second is to ensure that target users are able to upgrade their
+ devices via their package manager such as with the <command>
+ ipkg update;ipkg upgrade</command> commands (or similar for
+ dpkg/apt or rpm based systems). The aim is to ensure Poky has
+ upgradable packages in all cases.
+ </para>
+ </section>
+ </section>
+
+ <section id='usingpoky-modifing-packages'>
+ <title>Modifying Package Source Code</title>
+
+ <para>
+ Poky is usually used to build software rather than modifying
+ it. However, there are ways Poky can be used to modify software.
+ </para>
+
+ <para>
+ During building, the sources are available in <glossterm><link
+ linkend='var-WORKDIR'>WORKDIR</link></glossterm> directory.
+ Where exactly this is depends on the type of package and the
+ architecture of target device. For a standard recipe not
+ related to <glossterm><link
+ linkend='var-MACHINE'>MACHINE</link></glossterm> it will be
+ <filename>tmp/work/PACKAGE_ARCH-poky-TARGET_OS/PN-PV-PR/</filename>.
+ Target device dependent packages use <glossterm><link
+ linkend='var-MACHINE'>MACHINE
+ </link></glossterm>
+ instead of <glossterm><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH
+ </link></glossterm>
+ in the directory name.
+ </para>
+
+ <tip>
+ <para>
+ Check the package recipe sets the <glossterm><link
+ linkend='var-S'>S</link></glossterm> variable to something
+ other than standard <filename>WORKDIR/PN-PV/</filename> value.
+ </para>
+ </tip>
+ <para>
+ After building a package, a user can modify the package source code
+ without problem. The easiest way to test changes is by calling the
+ "compile" task:
+ </para>
+
+ <programlisting>
+bitbake --cmd compile --force NAME_OF_PACKAGE
+ </programlisting>
+
+ <para>
+ Other tasks may also be called this way.
+ </para>
+
+ <section id='usingpoky-modifying-packages-quilt'>
+ <title>Modifying Package Source Code with quilt</title>
+
+ <para>
+ By default Poky uses <ulink
+ url='http://savannah.nongnu.org/projects/quilt'>quilt</ulink>
+ to manage patches in <function>do_patch</function> task.
+ It is a powerful tool which can be used to track all
+ modifications done to package sources.
+ </para>
+
+ <para>
+ Before modifying source code it is important to
+ notify quilt so it will track changes into new patch
+ file:
+ <programlisting>
+quilt new NAME-OF-PATCH.patch
+ </programlisting>
+
+ Then add all files which will be modified into that
+ patch:
+ <programlisting>
+quilt add file1 file2 file3
+ </programlisting>
+
+ Now start editing. At the end quilt needs to be used
+ to generate final patch which will contain all
+ modifications:
+ <programlisting>
+quilt refresh
+ </programlisting>
+
+ The resulting patch file can be found in the
+ <filename class="directory">patches/</filename> subdirectory of the source
+ (<glossterm><link linkend='var-S'>S</link></glossterm>) directory. For future builds it
+ should be copied into
+ Poky metadata and added into <glossterm><link
+ linkend='var-SRC_URI'>SRC_URI</link></glossterm> of a recipe:
+ <programlisting>
+SRC_URI += "file://NAME-OF-PATCH.patch;patch=1"
+ </programlisting>
+
+ This also requires a bump of <glossterm><link
+ linkend='var-PR'>PR</link></glossterm> value in the same recipe as we changed resulting packages.
+ </para>
+
+ </section>
+
+</section>
+
+</chapter>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/faq.xml b/handbook/faq.xml
new file mode 100644
index 0000000000..2c227bfc62
--- /dev/null
+++ b/handbook/faq.xml
@@ -0,0 +1,234 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='faq'>
+<title>FAQ</title>
+<qandaset>
+ <qandaentry>
+ <question>
+ <para>
+ How does Poky differ from <ulink url='http://www.openembedded.org/'>OpenEmbedded</ulink>?
+ </para>
+ </question>
+ <answer>
+ <para>
+ Poky is a derivative of <ulink
+ url='http://www.openembedded.org/'>OpenEmbedded</ulink>, a stable,
+ smaller subset focused on the GNOME Mobile environment. Development
+ in Poky is closely tied to OpenEmbedded with features being merged
+ regularly between the two for mutual benefit.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ How can you claim Poky is stable?
+ </para>
+ </question>
+ <answer>
+ <para>
+ There are three areas that help with stability;
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ We keep Poky small and focused - around 650 packages compared to over 5000 for full OE
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ We only support hardware that we have access to for testing
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ We have a Buildbot which provides continuous build and integration tests
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ How do I get support for my board added to Poky?
+ </para>
+ </question>
+ <answer>
+ <para>
+ There are two main ways to get a board supported in Poky;
+ <itemizedlist>
+ <listitem>
+ <para>
+ Send us the board if we don't have it yet
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Send us bitbake recipes if you have them (see the Poky handbook to find out how to create recipes)
+ </para>
+ </listitem>
+ </itemizedlist>
+ Usually if it's not a completely exotic board then adding support in Poky should be fairly straightforward.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ Are there any products running poky ?
+ </para>
+ </question>
+ <answer>
+ <para>
+ The <ulink url='http://vernier.com/labquest/'>Vernier Labquest</ulink> is using Poky (for more about the Labquest see the case study at OpenedHand). There are a number of pre-production devices using Poky and we will announce those as soon as they are released.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ What is the Poky output ?
+ </para>
+ </question>
+ <answer>
+ <para>
+ The output of a Poky build will depend on how it was started, as the same set of recipes can be used to output various formats. Usually the output is a flashable image ready for the target device.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ How do I add my package to Poky?
+ </para>
+ </question>
+ <answer>
+ <para>
+ To add a package you need to create a bitbake recipe - see the Poky handbook to find out how to create a recipe.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ Do I have to reflash my entire board with a new poky image when recompiling a package?
+ </para>
+ </question>
+ <answer>
+ <para>
+ Poky can build packages in various formats, ipkg, Debian package, or RPM. The package can then be upgraded using the package tools on the device, much like on a desktop distribution like Ubuntu or Fedora.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ What is GNOME Mobile? What's the difference between GNOME Mobile and GNOME?
+ </para>
+ </question>
+ <answer>
+ <para>
+ <ulink url='http://www.gnome.org/mobile/'>GNOME Mobile</ulink> is a subset of the GNOME platform targeted at mobile and embedded devices. The the main difference between GNOME Mobile and standard GNOME is that desktop-orientated libraries have been removed, along with deprecated libraries, creating a much smaller footprint.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ How do I make Poky work in RHEL/CentOS?
+ </para>
+ </question>
+ <answer>
+ <para>
+ To get Poky working under RHEL/CentOS 5.1 you need to first install some required packages. The standard CentOS packages needed are:
+ <itemizedlist>
+ <listitem>
+ <para>
+ "Development tools" (selected during installation)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ texi2html
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ compat-gcc-34
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+
+ <para>
+ On top of those the following external packages are needed:
+ <itemizedlist>
+ <listitem>
+ <para>
+ python-sqlite2 from <ulink
+ url='http://dag.wieers.com/rpm/packages/python-sqlite2/'>DAG
+ repository</ulink>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ help2man from <ulink
+ url='http://centos.karan.org/el5/extras/testing/i386/RPMS/help2man-1.33.1-2.noarch.rpm'>Karan
+ repository</ulink>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+
+ <para>
+ Once these packages are installed Poky will be able to build standard images however there
+ may be a problem with QEMU segfaulting. You can either disable the generation of binary
+ locales by setting <glossterm><link linkend='var-ENABLE_BINARY_LOCALE_GENERATION'>ENABLE_BINARY_LOCALE_GENERATION</link>
+ </glossterm> to "0" or remove the linux-2.6-execshield.patch from the kernel and rebuild
+ it since its that patch which causes the problems with QEMU.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ I see lots of 404 responses for files on http://folks.o-hand.com/~richard/poky/sources/*. Is something wrong?
+ </para>
+ </question>
+ <answer>
+ <para>
+ Nothing is wrong, Poky will check any configured source mirrors before downloading
+ from the upstream sources. It does this searching for both source archives and
+ pre-checked out versions of SCM managed software. This is so in large installations,
+ it can reduce load on the SCM servers themselves. The address above is one of the
+ default mirrors configured into standard Poky so if an upstream source disappears,
+ we can place sources there so builds continue to work.
+ </para>
+ </answer>
+ </qandaentry>
+ <qandaentry>
+ <question>
+ <para>
+ I have a machine specific data in a package for one machine only but the package is
+ being marked as machine specific in all cases, how do I stop it?
+ </para>
+ </question>
+ <answer>
+ <para>
+ Set <glossterm><link linkend='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'>SRC_URI_OVERRIDES_PACKAGE_ARCH</link>
+ </glossterm> = "0" in the .bb file but make sure the package is manually marked as
+ machine specific in the case that needs it. The code which handles <glossterm><link
+ linkend='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'>SRC_URI_OVERRIDES_PACKAGE_ARCH</link></glossterm>
+ is in base.bbclass.
+ </para>
+ </answer>
+ </qandaentry>
+</qandaset>
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
+
diff --git a/handbook/introduction.xml b/handbook/introduction.xml
new file mode 100644
index 0000000000..19a71fe327
--- /dev/null
+++ b/handbook/introduction.xml
@@ -0,0 +1,331 @@
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<chapter id='intro'>
+<title>Introduction</title>
+
+<section id='intro-what-is'>
+ <title>What is Poky?</title>
+
+ <para>
+
+ Poky is an open source platform build tool. It is a complete
+ software development environment for the creation of Linux
+ devices. It aids the design, development, building, debugging,
+ simulation and testing of complete modern software stacks
+ using Linux, the X Window System and GNOME Mobile
+ based application frameworks. It is based on <ulink
+ url='http://openembedded.org/'>OpenEmbedded</ulink> but has
+ been customised with a particular focus.
+
+ </para>
+
+ <para> Poky was setup to:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Provide an open source Linux, X11, Matchbox, GTK+, Pimlico, Clutter, and other <ulink url='http://gnome.org/mobile'>GNOME Mobile</ulink> technologies based full platform build and development tool.</para>
+ </listitem>
+ <listitem>
+ <para>Create a focused, stable, subset of OpenEmbedded that can be easily and reliably built and developed upon.</para>
+ </listitem>
+ <listitem>
+ <para>Fully support a wide range of x86 and ARM hardware and device virtulisation</para>
+ </listitem>
+ </itemizedlist>
+
+ <para><ulink url='http://www.o-hand.com'>OpenedHand</ulink> is the principle developer and maintainer of Poky and uses it to:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Provide <ulink url='http://www.o-hand.com'>OpenedHand</ulink> with stable R&amp;D platform we can build and develop upon.</para>
+ </listitem>
+ <listitem>
+ <para>
+ Provide a testbed and showcase for OpenedHand's software products
+ (such as the <ulink url='http://www.matchbox-project.org/'>Matchbox</ulink>, <ulink url='http://www.clutter-project.org/'>Clutter</ulink> and
+ <ulink url='http://www.pimlico-project.org/'>Pimlico</ulink> software packages and
+ Sato, the default user interface in Poky).
+ </para>
+ </listitem>
+ <listitem>
+ <para>Provide a supported base we can supply to our clients for building and developing their customised platforms.</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ Poky is primarily a platform builder which generates filesystem images
+ based on open source software such as the Kdrive X server, the Matchbox
+ window manager, the GTK+ toolkit and the D-Bus message bus system. Images
+ for many kinds of devices can be generated, however the standard example
+ machines target QEMU full system emulation (both x86 and ARM) and the ARM based
+ Sharp Zaurus series of devices. Poky's ability to boot inside a QEMU
+ emulator makes it particularly suitable as a test platform for development
+ of embedded software.
+ </para>
+
+ <para>
+ An important component integrated within Poky is Sato, a GNOME Mobile
+ based user interface environment.
+ It is designed to work well with screens at very high DPI and restricted
+ size, such as those often found on smartphones and PDAs. It is coded with
+ focus on efficiency and speed so that it works smoothly on hand-held and
+ other embedded hardware. It will sit neatly on top of any device
+ using the GNOME Mobile stack, providing a well defined user experience.
+ </para>
+
+ <para>
+
+ Poky has a growing open source community backed up by commercial support provided by <ulink url="http://o-hand.com/">OpenedHand</ulink>.
+
+ </para>
+</section>
+
+<section id='intro-manualoverview'>
+ <title>Documentation Overview</title>
+
+ <para>
+ The handbook is split into sections covering different aspects of Poky.
+ The <link linkend='usingpoky'>'Using Poky' section</link> gives an overview
+ of the components that make up Poky followed by information about using and
+ debugging the Poky build system. The <link linkend='extendpoky'>'Extending Poky' section</link>
+ gives information about how to extend and customise Poky along with advice
+ on how to manage these changes. The <link linkend='platdev'>'Platform Development with Poky'
+ section</link> gives information about interaction between Poky and target
+ hardware for common platform development tasks such as software development,
+ debugging and profiling. The rest of the manual
+ consists of several reference sections each giving details on a specific
+ section of Poky functionality.
+ </para>
+
+ <para>
+ This manual applies to Poky Release 3.1 (Pinky).
+ </para>
+
+</section>
+
+
+<section id='intro-requirements'>
+ <title>System Requirements</title>
+
+ <para>
+ We recommend Debian-based distributions, in particular a recent Ubuntu
+ release (7.04 or newer), as the host system for Poky. Nothing in Poky is
+ distribution specific and
+ other distributions will most likely work as long as the appropriate
+ prerequisites are installed - we know of Poky being used successfully on Redhat,
+ SUSE, Gentoo and Slackware host systems.
+ </para>
+
+ <para>On a Debian-based system, you need the following packages installed:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>build-essential</para>
+ </listitem>
+ <listitem>
+ <para>python</para>
+ </listitem>
+ <listitem>
+ <para>diffstat</para>
+ </listitem>
+ <listitem>
+ <para>texinfo</para>
+ </listitem>
+ <listitem>
+ <para>texi2html</para>
+ </listitem>
+ <listitem>
+ <para>cvs</para>
+ </listitem>
+ <listitem>
+ <para>subversion</para>
+ </listitem>
+ <listitem>
+ <para>wget</para>
+ </listitem>
+ <listitem>
+ <para>gawk</para>
+ </listitem>
+ <listitem>
+ <para>help2man</para>
+ </listitem>
+ <listitem>
+ <para>bochsbios (only to run qemux86 images)</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ Debian users can add debian.o-hand.com to their APT sources (See
+ <ulink url='http://debian.o-hand.com'/>
+ for instructions on doing this) and then run <command>
+ "apt-get install qemu poky-depends poky-scripts"</command> which will
+ automatically install all these dependencies. OpenedHand can also provide
+ VMware images with Poky and all dependencies pre-installed if required.
+ </para>
+
+ <para>
+ Poky can use a system provided QEMU or build its own depending on how it's
+ configured. See the options in <filename>local.conf</filename> for more details.
+ </para>
+</section>
+
+<section id='intro-quickstart'>
+ <title>Quick Start</title>
+
+ <section id='intro-quickstart-build'>
+ <title>Building and Running an Image</title>
+
+ <para>
+ If you want to try Poky, you can do so in a few commands. The example below
+ checks out the Poky source code, sets up a build environment, builds an
+ image and then runs that image under the QEMU emulator in ARM system emulation mode:
+ </para>
+
+ <para>
+ <literallayout class='monospaced'>
+$ wget http://pokylinux.org/releases/pinky-3.1.tar.gz
+$ tar zxvf pinky-3.1.tar.gz
+$ cd pinky-3.1/
+$ source poky-init-build-env
+$ bitbake poky-image-sato
+$ runqemu qemuarm
+</literallayout>
+ </para>
+
+ <note>
+ <para>
+ This process will need Internet access, about 3 GB of disk space
+ available, and you should expect the build to take about 4 - 5 hours since
+ it is building an entire Linux system from source including the toolchain!
+ </para>
+ </note>
+
+ <para>
+ To build for other machines see the <glossterm><link
+ linkend='var-MACHINE'>MACHINE</link></glossterm> variable in build/conf/local.conf
+ which also contains other configuration information. The images/kernels built
+ by Poky are placed in the <filename class="directory">tmp/deploy/images</filename>
+ directory.
+ </para>
+
+ <para>
+ You could also run <command>"poky-qemu zImage-qemuarm.bin poky-image-sato-qemuarm.ext2"
+ </command> within the images directory if you have the poky-scripts Debian package
+ installed from debian.o-hand.com. This allows the QEMU images to be used standalone
+ outside the Poky build environment.
+ </para>
+ <para>
+ To setup networking within QEMU see the <link linkend='usingpoky-install-qemu-networking'>
+ QEMU/USB networking with IP masquerading</link> section.
+ </para>
+
+ </section>
+ <section id='intro-quickstart-qemu'>
+ <title>Downloading and Using Prebuilt Images</title>
+
+ <para>
+ Prebuilt images from Poky are also available if you just want to run the system
+ under QEMU. To use these you need to:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Add debian.o-hand.com to your APT sources (See
+ <ulink url='http://debian.o-hand.com'/> for instructions on doing this)
+ </para>
+ </listitem>
+ <listitem>
+ <para>Install patched QEMU and poky-scripts:</para>
+ <para>
+ <literallayout class='monospaced'>
+$ apt-get install qemu poky-scripts
+</literallayout>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Download a Poky QEMU release kernel (*zImage*qemu*.bin) and compressed
+ filesystem image (poky-image-*-qemu*.ext2.bz2) which
+ you'll need to decompress with 'bzip2 -d'. These are available from the
+ <ulink url='http://pokylinux.org/releases/blinky-3.0/'>last release</ulink>
+ or from the <ulink url='http://pokylinux.org/autobuild/poky/'>autobuilder</ulink>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>Start the image:</para>
+ <para>
+ <literallayout class='monospaced'>
+$ poky-qemu &lt;kernel&gt; &lt;image&gt;
+</literallayout>
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <note><para>
+ A patched version of QEMU is required at present. A suitable version is available from
+ <ulink url='http://debian.o-hand.com'/>, it can be built
+ by poky (bitbake qemu-native) or can be downloaded/built as part of the toolchain/SDK tarballs.
+ </para></note>
+
+ </section>
+</section>
+
+<section id='intro-getit'>
+ <title>Obtaining Poky</title>
+
+ <section id='intro-getit-releases'>
+ <title>Releases</title>
+
+ <para>Periodically, we make releases of Poky and these are available
+ at <ulink url='http://pokylinux.org/releases/'/>.
+ These are more stable and tested than the nightly development images.</para>
+ </section>
+
+ <section id='intro-getit-nightly'>
+ <title>Nightly Builds</title>
+
+ <para>
+ We make nightly builds of Poky for testing purposes and to make the
+ latest developments available. The output from these builds is available
+ at <ulink url='http://pokylinux.org/autobuild/'/>
+ where the numbers represent the svn revision the builds were made from.
+ </para>
+
+ <para>
+ Automated builds are available for "standard" Poky and for Poky SDKs and toolchains as well
+ as any testing versions we might have such as poky-bleeding. The toolchains can
+ be used either as external standalone toolchains or can be combined with Poky as a
+ prebuilt toolchain to reduce build time. Using the external toolchains is simply a
+ case of untarring the tarball into the root of your system (it only creates files in
+ <filename class="directory">/usr/local/poky</filename>) and then enabling the option
+ in <filename>local.conf</filename>.
+ </para>
+
+ </section>
+
+ <section id='intro-getit-dev'>
+ <title>Development Checkouts</title>
+
+ <para>
+ Poky is available from our SVN repository located at
+ http://svn.o-hand.com/repos/poky/trunk; a web interface to the repository
+ can be accessed at <ulink url='http://svn.o-hand.com/view/poky/'/>.
+ </para>
+
+ <para>
+ 'trunk' is where the deveopment work takes place and you should use this if you're
+ after to work with the latest cutting edge developments. It is possible trunk
+ can suffer temporary periods of instability while new features are developed and
+ if this is undesireable we recommend using one of the release branches.
+ </para>
+ </section>
+
+</section>
+
+</chapter>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/poky-beaver.png b/handbook/poky-beaver.png
new file mode 100644
index 0000000000..9f9e6cf996
--- /dev/null
+++ b/handbook/poky-beaver.png
Binary files differ
diff --git a/handbook/poky-doc-tools/AUTHORS b/handbook/poky-doc-tools/AUTHORS
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/handbook/poky-doc-tools/AUTHORS
diff --git a/handbook/poky-doc-tools/COPYING b/handbook/poky-doc-tools/COPYING
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/handbook/poky-doc-tools/COPYING
diff --git a/handbook/poky-doc-tools/ChangeLog b/handbook/poky-doc-tools/ChangeLog
new file mode 100644
index 0000000000..beee6791ed
--- /dev/null
+++ b/handbook/poky-doc-tools/ChangeLog
@@ -0,0 +1,30 @@
+2008-02-15 Matthew Allum <mallum@openedhand.com>
+
+ * common/Makefile.am:
+ * common/poky-handbook.png:
+ Add a PNG image for the manual. Seems our logo SVG
+ is too complex/transparent for PDF
+
+2008-02-14 Matthew Allum <mallum@openedhand.com>
+
+ * common/Makefile.am:
+ * common/fop-config.xml.in:
+ * common/poky-db-pdf.xsl:
+ * poky-docbook-to-pdf.in:
+ Font tweakage.
+
+2008-01-27 Matthew Allum <mallum@openedhand.com>
+
+ * INSTALL:
+ * Makefile.am:
+ * README:
+ * autogen.sh:
+ * common/Makefile.am:
+ * common/fop-config.xml.in:
+ * common/ohand-color.svg:
+ * common/poky-db-pdf.xsl:
+ * common/poky.svg:
+ * common/titlepage.templates.xml:
+ * configure.ac:
+ * poky-docbook-to-pdf.in:
+ Initial import.
diff --git a/handbook/poky-doc-tools/INSTALL b/handbook/poky-doc-tools/INSTALL
new file mode 100644
index 0000000000..23e5f25d0e
--- /dev/null
+++ b/handbook/poky-doc-tools/INSTALL
@@ -0,0 +1,236 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
+Software Foundation, Inc.
+
+This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+Some systems require unusual options for compilation or linking that the
+`configure' script does not know about. Run `./configure --help' for
+details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory. After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc. You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+There may be some features `configure' cannot figure out automatically,
+but needs to determine by the type of machine the package will run on.
+Usually, assuming the package is built to be run on the _same_
+architectures, `configure' can figure that out, but if it prints a
+message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+If you want to set default values for `configure' scripts to share, you
+can create a site shell script called `config.site' that gives default
+values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script). Here is a another example:
+
+ /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
+configuration-related scripts to be executed by `/bin/bash'.
+
+`configure' Invocation
+======================
+
+`configure' recognizes the following options to control how it operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
diff --git a/handbook/poky-doc-tools/Makefile.am b/handbook/poky-doc-tools/Makefile.am
new file mode 100644
index 0000000000..ca92ae714c
--- /dev/null
+++ b/handbook/poky-doc-tools/Makefile.am
@@ -0,0 +1,18 @@
+SUBDIRS = common
+
+EXTRA_DIST = poky-docbook-to-pdf.in
+
+bin_SCRIPTS = poky-docbook-to-pdf
+
+edit = sed \
+ -e 's,@datadir\@,$(pkgdatadir),g' \
+ -e 's,@prefix\@,$(prefix),g' \
+ -e 's,@version\@,@VERSION@,g'
+
+poky-docbook-to-pdf: poky-docbook-to-pdf.in
+ rm -f poky-docbook-to-pdf
+ $(edit) poky-docbook-to-pdf.in > poky-docbook-to-pdf
+
+clean-local:
+ rm -fr poky-docbook-to-pdf
+ rm -fr poky-pr-docbook-to-pdf \ No newline at end of file
diff --git a/handbook/poky-doc-tools/NEWS b/handbook/poky-doc-tools/NEWS
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/handbook/poky-doc-tools/NEWS
diff --git a/handbook/poky-doc-tools/README b/handbook/poky-doc-tools/README
new file mode 100644
index 0000000000..7f6cb87f07
--- /dev/null
+++ b/handbook/poky-doc-tools/README
@@ -0,0 +1,24 @@
+poky-doc-tools
+==============
+
+Simple tools to wrap fop to create oh branded PDF's from docbook sources.
+(based on OH doc tools)
+
+Dependencies
+============
+
+Sun Java, make sure the java in your path is the *sun* java.
+
+xlstproc, nwalsh style sheets.
+
+FOP, installed - see http://www.sagehill.net/docbookxsl/InstallingAnFO.html.
+Also a 'fop' binary, eg I have;
+
+% cat ~/bin/fop
+#!/bin/sh
+java org.apache.fop.apps.Fop "$@"
+
+
+
+
+
diff --git a/handbook/poky-doc-tools/autogen.sh b/handbook/poky-doc-tools/autogen.sh
new file mode 100755
index 0000000000..5daa935608
--- /dev/null
+++ b/handbook/poky-doc-tools/autogen.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+autoreconf -v --install || exit 1
+./configure --enable-maintainer-mode --enable-debug "$@"
diff --git a/handbook/poky-doc-tools/common/Makefile.am b/handbook/poky-doc-tools/common/Makefile.am
new file mode 100644
index 0000000000..c6b154b144
--- /dev/null
+++ b/handbook/poky-doc-tools/common/Makefile.am
@@ -0,0 +1,21 @@
+SUPPORT_FILES = VeraMoBd.ttf VeraMoBd.xml \
+ VeraMono.ttf VeraMono.xml \
+ Vera.ttf Vera.xml \
+ draft.png titlepage.templates.xml \
+ poky-db-pdf.xsl poky.svg \
+ ohand-color.svg poky-handbook.png
+
+commondir = $(pkgdatadir)/common
+common_DATA = $(SUPPORT_FILES) fop-config.xml
+
+EXTRA_DIST = $(SUPPORT_FILES) fop-config.xml.in
+
+edit = sed -e 's,@datadir\@,$(pkgdatadir),g'
+
+fop-config.xml: fop-config.xml.in
+ rm -f fop-config.xml
+ $(edit) fop-config.xml.in > fop-config.xml
+
+
+clean-local:
+ rm -fr fop-config.xml \ No newline at end of file
diff --git a/handbook/poky-doc-tools/common/Vera.ttf b/handbook/poky-doc-tools/common/Vera.ttf
new file mode 100644
index 0000000000..58cd6b5e61
--- /dev/null
+++ b/handbook/poky-doc-tools/common/Vera.ttf
Binary files differ
diff --git a/handbook/poky-doc-tools/common/Vera.xml b/handbook/poky-doc-tools/common/Vera.xml
new file mode 100644
index 0000000000..3c82043e35
--- /dev/null
+++ b/handbook/poky-doc-tools/common/Vera.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><font-metrics type="TYPE0"><font-name>BitstreamVeraSans</font-name><embed/><cap-height>729</cap-height><x-height>546</x-height><ascender>928</ascender><descender>-235</descender><bbox><left>-183</left><bottom>-235</bottom><right>1287</right><top>928</top></bbox><flags>32</flags><stemv>0</stemv><italicangle>0</italicangle><subtype>TYPE0</subtype><multibyte-extras><cid-type>CIDFontType2</cid-type><default-width>0</default-width><bfranges><bf gi="3" ue="126" us="32"/><bf gi="172" ue="160" us="160"/><bf gi="163" ue="161" us="161"/><bf gi="132" ue="163" us="162"/><bf gi="189" ue="164" us="164"/><bf gi="150" ue="165" us="165"/><bf gi="231" ue="166" us="166"/><bf gi="134" ue="167" us="167"/><bf gi="142" ue="168" us="168"/><bf gi="139" ue="169" us="169"/><bf gi="157" ue="170" us="170"/><bf gi="169" ue="171" us="171"/><bf gi="164" ue="172" us="172"/><bf gi="256" ue="173" us="173"/><bf gi="138" ue="174" us="174"/><bf gi="217" ue="175" us="175"/><bf gi="131" ue="176" us="176"/><bf gi="147" ue="177" us="177"/><bf gi="241" ue="179" us="178"/><bf gi="141" ue="180" us="180"/><bf gi="151" ue="181" us="181"/><bf gi="136" ue="182" us="182"/><bf gi="195" ue="183" us="183"/><bf gi="221" ue="184" us="184"/><bf gi="240" ue="185" us="185"/><bf gi="158" ue="186" us="186"/><bf gi="170" ue="187" us="187"/><bf gi="243" ue="190" us="188"/><bf gi="162" ue="191" us="191"/><bf gi="173" ue="192" us="192"/><bf gi="201" ue="193" us="193"/><bf gi="199" ue="194" us="194"/><bf gi="174" ue="195" us="195"/><bf gi="98" ue="197" us="196"/><bf gi="144" ue="198" us="198"/><bf gi="100" ue="199" us="199"/><bf gi="203" ue="200" us="200"/><bf gi="101" ue="201" us="201"/><bf gi="200" ue="202" us="202"/><bf gi="202" ue="203" us="203"/><bf gi="207" ue="204" us="204"/><bf gi="204" ue="207" us="205"/><bf gi="232" ue="208" us="208"/><bf gi="102" ue="209" us="209"/><bf gi="210" ue="210" us="210"/><bf gi="208" ue="212" us="211"/><bf gi="175" ue="213" us="213"/><bf gi="103" ue="214" us="214"/><bf gi="239" ue="215" us="215"/><bf gi="145" ue="216" us="216"/><bf gi="213" ue="217" us="217"/><bf gi="211" ue="219" us="218"/><bf gi="104" ue="220" us="220"/><bf gi="234" ue="221" us="221"/><bf gi="236" ue="222" us="222"/><bf gi="137" ue="223" us="223"/><bf gi="106" ue="224" us="224"/><bf gi="105" ue="225" us="225"/><bf gi="107" ue="226" us="226"/><bf gi="109" ue="227" us="227"/><bf gi="108" ue="228" us="228"/><bf gi="110" ue="229" us="229"/><bf gi="160" ue="230" us="230"/><bf gi="111" ue="231" us="231"/><bf gi="113" ue="232" us="232"/><bf gi="112" ue="233" us="233"/><bf gi="114" ue="235" us="234"/><bf gi="117" ue="236" us="236"/><bf gi="116" ue="237" us="237"/><bf gi="118" ue="239" us="238"/><bf gi="233" ue="240" us="240"/><bf gi="120" ue="241" us="241"/><bf gi="122" ue="242" us="242"/><bf gi="121" ue="243" us="243"/><bf gi="123" ue="244" us="244"/><bf gi="125" ue="245" us="245"/><bf gi="124" ue="246" us="246"/><bf gi="184" ue="247" us="247"/><bf gi="161" ue="248" us="248"/><bf gi="127" ue="249" us="249"/><bf gi="126" ue="250" us="250"/><bf gi="128" ue="252" us="251"/><bf gi="235" ue="253" us="253"/><bf gi="237" ue="254" us="254"/><bf gi="186" ue="255" us="255"/><bf gi="251" ue="263" us="262"/><bf gi="253" ue="269" us="268"/><bf gi="0" ue="270" us="270"/><bf gi="0" ue="271" us="271"/><bf gi="0" ue="272" us="272"/><bf gi="255" ue="273" us="273"/><bf gi="246" ue="287" us="286"/><bf gi="248" ue="304" us="304"/><bf gi="214" ue="305" us="305"/><bf gi="225" ue="322" us="321"/><bf gi="176" ue="339" us="338"/><bf gi="249" ue="351" us="350"/><bf gi="227" ue="353" us="352"/><bf gi="187" ue="376" us="376"/><bf gi="229" ue="382" us="381"/><bf gi="166" ue="402" us="402"/><bf gi="215" ue="710" us="710"/><bf gi="224" ue="711" us="711"/><bf gi="218" ue="730" us="728"/><bf gi="223" ue="731" us="731"/><bf gi="216" ue="732" us="732"/><bf gi="222" ue="733" us="733"/><bf gi="159" ue="937" us="937"/><bf gi="155" ue="960" us="960"/><bf gi="178" ue="8212" us="8211"/><bf gi="0" ue="8213" us="8213"/><bf gi="0" ue="8214" us="8214"/><bf gi="0" ue="8215" us="8215"/><bf gi="182" ue="8217" us="8216"/><bf gi="196" ue="8218" us="8218"/><bf gi="0" ue="8219" us="8219"/><bf gi="180" ue="8221" us="8220"/><bf gi="197" ue="8222" us="8222"/><bf gi="0" ue="8223" us="8223"/><bf gi="130" ue="8224" us="8224"/><bf gi="194" ue="8225" us="8225"/><bf gi="135" ue="8226" us="8226"/><bf gi="0" ue="8227" us="8227"/><bf gi="0" ue="8228" us="8228"/><bf gi="0" ue="8229" us="8229"/><bf gi="171" ue="8230" us="8230"/><bf gi="198" ue="8240" us="8240"/><bf gi="190" ue="8250" us="8249"/><bf gi="258" ue="8364" us="8364"/><bf gi="140" ue="8482" us="8482"/><bf gi="152" ue="8706" us="8706"/><bf gi="0" ue="8707" us="8707"/><bf gi="0" ue="8708" us="8708"/><bf gi="0" ue="8709" us="8709"/><bf gi="168" ue="8710" us="8710"/><bf gi="154" ue="8719" us="8719"/><bf gi="0" ue="8720" us="8720"/><bf gi="153" ue="8721" us="8721"/><bf gi="238" ue="8722" us="8722"/><bf gi="0" ue="8723" us="8723"/><bf gi="0" ue="8724" us="8724"/><bf gi="188" ue="8725" us="8725"/><bf gi="0" ue="8726" us="8726"/><bf gi="0" ue="8727" us="8727"/><bf gi="0" ue="8728" us="8728"/><bf gi="257" ue="8729" us="8729"/><bf gi="165" ue="8730" us="8730"/><bf gi="0" ue="8731" us="8731"/><bf gi="0" ue="8732" us="8732"/><bf gi="0" ue="8733" us="8733"/><bf gi="146" ue="8734" us="8734"/><bf gi="156" ue="8747" us="8747"/><bf gi="167" ue="8776" us="8776"/><bf gi="143" ue="8800" us="8800"/><bf gi="0" ue="8801" us="8801"/><bf gi="0" ue="8802" us="8802"/><bf gi="0" ue="8803" us="8803"/><bf gi="148" ue="8805" us="8804"/><bf gi="185" ue="9674" us="9674"/><bf gi="192" ue="64258" us="64257"/><bf gi="0" ue="65535" us="65535"/></bfranges><cid-widths start-index="0"><wx w="600"/><wx w="0"/><wx w="317"/><wx w="317"/><wx w="400"/><wx w="459"/><wx w="837"/><wx w="636"/><wx w="950"/><wx w="779"/><wx w="274"/><wx w="390"/><wx w="390"/><wx w="500"/><wx w="837"/><wx w="317"/><wx w="360"/><wx w="317"/><wx w="336"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="636"/><wx w="336"/><wx w="336"/><wx w="837"/><wx w="837"/><wx w="837"/><wx w="530"/><wx w="1000"/><wx w="684"/><wx w="686"/><wx w="698"/><wx w="770"/><wx w="631"/><wx w="575"/><wx w="774"/><wx w="751"/><wx w="294"/><wx w="294"/><wx w="655"/><wx w="557"/><wx w="862"/><wx w="748"/><wx w="787"/><wx w="603"/><wx w="787"/><wx w="694"/><wx w="634"/><wx w="610"/><wx w="731"/><wx w="684"/><wx w="988"/><wx w="685"/><wx w="610"/><wx w="685"/><wx w="390"/><wx w="336"/><wx w="390"/><wx w="837"/><wx w="500"/><wx w="500"/><wx w="612"/><wx w="634"/><wx w="549"/><wx w="634"/><wx w="615"/><wx w="352"/><wx w="634"/><wx w="633"/><wx w="277"/><wx w="277"/><wx w="579"/><wx w="277"/><wx w="974"/><wx w="633"/><wx w="611"/><wx w="634"/><wx w="634"/><wx w="411"/><wx w="520"/><wx w="392"/><wx w="633"/><wx w="591"/><wx w="817"/><wx w="591"/><wx w="591"/><wx w="524"/><wx w="636"/><wx w="336"/><wx w="636"/><wx w="837"/><wx w="684"/><wx w="684"/><wx w="698"/><wx w="631"/><wx w="748"/><wx w="787"/><wx w="731"/><wx w="612"/><wx w="612"/><wx w="612"/><wx w="612"/><wx w="612"/><wx w="612"/><wx w="549"/><wx w="615"/><wx w="615"/><wx w="615"/><wx w="615"/><wx w="277"/><wx w="277"/><wx w="277"/><wx w="277"/><wx w="633"/><wx w="611"/><wx w="611"/><wx w="611"/><wx w="611"/><wx w="611"/><wx w="633"/><wx w="633"/><wx w="633"/><wx w="633"/><wx w="500"/><wx w="500"/><wx w="636"/><wx w="636"/><wx w="500"/><wx w="589"/><wx w="636"/><wx w="629"/><wx w="1000"/><wx w="1000"/><wx w="1000"/><wx w="500"/><wx w="500"/><wx w="837"/><wx w="974"/><wx w="787"/><wx w="833"/><wx w="837"/><wx w="837"/><wx w="837"/><wx w="636"/><wx w="636"/><wx w="517"/><wx w="673"/><wx w="756"/><wx w="588"/><wx w="520"/><wx w="471"/><wx w="471"/><wx w="764"/><wx w="981"/><wx w="611"/><wx w="530"/><wx w="400"/><wx w="837"/><wx w="637"/><wx w="636"/><wx w="837"/><wx w="668"/><wx w="611"/><wx w="611"/><wx w="1000"/><wx w="636"/><wx w="684"/><wx w="684"/><wx w="787"/><wx w="1069"/><wx w="1022"/><wx w="500"/><wx w="1000"/><wx w="518"/><wx w="518"/><wx w="317"/><wx w="317"/><wx w="837"/><wx w="494"/><wx w="591"/><wx w="610"/><wx w="166"/><wx w="636"/><wx w="399"/><wx w="399"/><wx w="629"/><wx w="629"/><wx w="500"/><wx w="317"/><wx w="317"/><wx w="518"/><wx w="1341"/><wx w="684"/><wx w="631"/><wx w="684"/><wx w="631"/><wx w="631"/><wx w="294"/><wx w="294"/><wx w="294"/><wx w="294"/><wx w="787"/><wx w="787"/><wx w="787"/><wx w="731"/><wx w="731"/><wx w="731"/><wx w="277"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="562"/><wx w="284"/><wx w="634"/><wx w="520"/><wx w="685"/><wx w="524"/><wx w="336"/><wx w="774"/><wx w="611"/><wx w="610"/><wx w="591"/><wx w="604"/><wx w="634"/><wx w="837"/><wx w="837"/><wx w="400"/><wx w="400"/><wx w="400"/><wx w="969"/><wx w="969"/><wx w="969"/><wx w="774"/><wx w="634"/><wx w="294"/><wx w="634"/><wx w="520"/><wx w="698"/><wx w="549"/><wx w="698"/><wx w="549"/><wx w="634"/><wx w="360"/><wx w="317"/><wx w="636"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="500"/><wx w="400"/><wx w="500"/><wx w="500"/></cid-widths></multibyte-extras><kerning kpx1="246"><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="169"/><pair kern="-26" kpx2="197"/><pair kern="-35" kpx2="55"/><pair kern="-49" kpx2="60"/><pair kern="-49" kpx2="187"/><pair kern="-21" kpx2="181"/><pair kern="-17" kpx2="170"/><pair kern="-49" kpx2="234"/></kerning><kerning kpx1="235"><pair kern="-142" kpx2="17"/><pair kern="-17" kpx2="169"/><pair kern="-146" kpx2="197"/><pair kern="-17" kpx2="16"/><pair kern="-72" kpx2="29"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="43"><pair kern="-35" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-35" kpx2="197"/><pair kern="-30" kpx2="181"/></kerning><kerning kpx1="16"><pair kern="36" kpx2="246"/><pair kern="-17" kpx2="235"/><pair kern="-21" kpx2="199"/><pair kern="18" kpx2="123"/><pair kern="27" kpx2="208"/><pair kern="-118" kpx2="187"/><pair kern="-49" kpx2="59"/><pair kern="18" kpx2="124"/><pair kern="-21" kpx2="201"/><pair kern="-118" kpx2="60"/><pair kern="36" kpx2="52"/><pair kern="18" kpx2="125"/><pair kern="36" kpx2="42"/><pair kern="-118" kpx2="234"/><pair kern="18" kpx2="122"/><pair kern="27" kpx2="210"/><pair kern="-21" kpx2="36"/><pair kern="18" kpx2="82"/><pair kern="-40" kpx2="58"/><pair kern="-91" kpx2="55"/><pair kern="-17" kpx2="186"/><pair kern="27" kpx2="175"/><pair kern="27" kpx2="50"/><pair kern="27" kpx2="209"/><pair kern="27" kpx2="103"/><pair kern="-21" kpx2="98"/><pair kern="55" kpx2="45"/><pair kern="-21" kpx2="173"/><pair kern="-17" kpx2="92"/><pair kern="-26" kpx2="89"/><pair kern="18" kpx2="121"/><pair kern="-58" kpx2="57"/><pair kern="-35" kpx2="37"/><pair kern="-21" kpx2="174"/></kerning><kerning kpx1="112"><pair kern="-17" kpx2="91"/></kerning><kerning kpx1="123"><pair kern="-72" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-63" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-30" kpx2="91"/><pair kern="-35" kpx2="181"/></kerning><kerning kpx1="251"><pair kern="-17" kpx2="169"/><pair kern="-17" kpx2="60"/><pair kern="-17" kpx2="187"/><pair kern="18" kpx2="181"/><pair kern="-17" kpx2="170"/><pair kern="-17" kpx2="234"/></kerning><kerning kpx1="213"><pair kern="-17" kpx2="229"/><pair kern="-17" kpx2="61"/></kerning><kerning kpx1="208"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="27" kpx2="16"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="98"/><pair kern="-17" kpx2="181"/><pair kern="-63" kpx2="59"/><pair kern="-40" kpx2="17"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="29"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="187"><pair kern="-114" kpx2="126"/><pair kern="-137" kpx2="107"/><pair kern="-132" kpx2="72"/><pair kern="-77" kpx2="199"/><pair kern="-118" kpx2="16"/><pair kern="-132" kpx2="123"/><pair kern="-132" kpx2="112"/><pair kern="-54" kpx2="251"/><pair kern="-54" kpx2="208"/><pair kern="-132" kpx2="113"/><pair kern="-54" kpx2="180"/><pair kern="-137" kpx2="105"/><pair kern="-114" kpx2="129"/><pair kern="-132" kpx2="124"/><pair kern="-109" kpx2="169"/><pair kern="-77" kpx2="201"/><pair kern="-54" kpx2="253"/><pair kern="-137" kpx2="106"/><pair kern="-132" kpx2="29"/><pair kern="-132" kpx2="125"/><pair kern="-72" kpx2="170"/><pair kern="-132" kpx2="115"/><pair kern="-114" kpx2="88"/><pair kern="-132" kpx2="122"/><pair kern="-54" kpx2="100"/><pair kern="-137" kpx2="68"/><pair kern="-54" kpx2="210"/><pair kern="-77" kpx2="36"/><pair kern="-132" kpx2="82"/><pair kern="-132" kpx2="114"/><pair kern="-54" kpx2="175"/><pair kern="-114" kpx2="127"/><pair kern="-54" kpx2="50"/><pair kern="-54" kpx2="209"/><pair kern="-54" kpx2="103"/><pair kern="-137" kpx2="108"/><pair kern="-77" kpx2="98"/><pair kern="-35" kpx2="76"/><pair kern="-17" kpx2="181"/><pair kern="-202" kpx2="17"/><pair kern="-114" kpx2="128"/><pair kern="-77" kpx2="173"/><pair kern="-137" kpx2="109"/><pair kern="-128" kpx2="197"/><pair kern="-54" kpx2="38"/><pair kern="-132" kpx2="121"/><pair kern="-137" kpx2="110"/><pair kern="-77" kpx2="174"/></kerning><kerning kpx1="113"><pair kern="-17" kpx2="91"/></kerning><kerning kpx1="144"><pair kern="-40" kpx2="180"/><pair kern="-54" kpx2="197"/><pair kern="-44" kpx2="181"/></kerning><kerning kpx1="59"><pair kern="-72" kpx2="100"/><pair kern="-63" kpx2="210"/><pair kern="-17" kpx2="55"/><pair kern="-44" kpx2="114"/><pair kern="-44" kpx2="72"/><pair kern="-63" kpx2="175"/><pair kern="-49" kpx2="16"/><pair kern="-63" kpx2="50"/><pair kern="-63" kpx2="209"/><pair kern="-44" kpx2="112"/><pair kern="-72" kpx2="251"/><pair kern="-63" kpx2="103"/><pair kern="-63" kpx2="208"/><pair kern="-44" kpx2="113"/><pair kern="-40" kpx2="181"/><pair kern="-77" kpx2="180"/><pair kern="-54" kpx2="169"/><pair kern="-21" kpx2="197"/><pair kern="-72" kpx2="38"/><pair kern="-72" kpx2="253"/><pair kern="-44" kpx2="115"/></kerning><kerning kpx1="73"><pair kern="31" kpx2="180"/><pair kern="-17" kpx2="90"/><pair kern="-72" kpx2="17"/><pair kern="-17" kpx2="235"/><pair kern="-35" kpx2="169"/><pair kern="-114" kpx2="197"/><pair kern="-17" kpx2="186"/><pair kern="-17" kpx2="92"/><pair kern="-17" kpx2="87"/><pair kern="-54" kpx2="16"/><pair kern="-35" kpx2="29"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="41"><pair kern="-17" kpx2="227"/><pair kern="-54" kpx2="126"/><pair kern="-91" kpx2="107"/><pair kern="-91" kpx2="235"/><pair kern="-54" kpx2="72"/><pair kern="-91" kpx2="199"/><pair kern="-35" kpx2="123"/><pair kern="-54" kpx2="112"/><pair kern="-54" kpx2="113"/><pair kern="-17" kpx2="54"/><pair kern="-21" kpx2="180"/><pair kern="-91" kpx2="105"/><pair kern="-54" kpx2="129"/><pair kern="-35" kpx2="124"/><pair kern="-91" kpx2="201"/><pair kern="-72" kpx2="85"/><pair kern="-91" kpx2="106"/><pair kern="-77" kpx2="29"/><pair kern="-35" kpx2="125"/><pair kern="-54" kpx2="115"/><pair kern="-54" kpx2="88"/><pair kern="-35" kpx2="122"/><pair kern="-91" kpx2="68"/><pair kern="-91" kpx2="36"/><pair kern="-35" kpx2="82"/><pair kern="-91" kpx2="186"/><pair kern="-17" kpx2="55"/><pair kern="-54" kpx2="114"/><pair kern="-54" kpx2="127"/><pair kern="-91" kpx2="108"/><pair kern="-91" kpx2="98"/><pair kern="-72" kpx2="76"/><pair kern="-160" kpx2="17"/><pair kern="-54" kpx2="128"/><pair kern="-91" kpx2="173"/><pair kern="-91" kpx2="109"/><pair kern="-183" kpx2="197"/><pair kern="-91" kpx2="92"/><pair kern="-35" kpx2="121"/><pair kern="-91" kpx2="110"/><pair kern="-91" kpx2="174"/><pair kern="-17" kpx2="249"/></kerning><kerning kpx1="124"><pair kern="-72" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-63" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-30" kpx2="91"/><pair kern="-35" kpx2="181"/></kerning><kerning kpx1="169"><pair kern="-17" kpx2="90"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="246"/><pair kern="-17" kpx2="235"/><pair kern="-17" kpx2="58"/><pair kern="-17" kpx2="186"/><pair kern="-54" kpx2="55"/><pair kern="-17" kpx2="251"/><pair kern="-72" kpx2="187"/><pair kern="-17" kpx2="39"/><pair kern="73" kpx2="144"/><pair kern="-17" kpx2="45"/><pair kern="-17" kpx2="92"/><pair kern="-17" kpx2="38"/><pair kern="-72" kpx2="60"/><pair kern="-17" kpx2="89"/><pair kern="-17" kpx2="253"/><pair kern="-54" kpx2="57"/><pair kern="-17" kpx2="37"/><pair kern="-17" kpx2="42"/><pair kern="-72" kpx2="234"/></kerning><kerning kpx1="201"><pair kern="-17" kpx2="246"/><pair kern="-67" kpx2="235"/><pair kern="-21" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-17" kpx2="251"/><pair kern="-17" kpx2="113"/><pair kern="-77" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-35" kpx2="73"/><pair kern="-17" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-77" kpx2="60"/><pair kern="27" kpx2="201"/><pair kern="-17" kpx2="29"/><pair kern="-77" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="122"/><pair kern="-17" kpx2="210"/><pair kern="-17" kpx2="82"/><pair kern="-54" kpx2="58"/><pair kern="-67" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="27" kpx2="98"/><pair kern="-123" kpx2="181"/><pair kern="-17" kpx2="17"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="84"/><pair kern="-17" kpx2="121"/><pair kern="-63" kpx2="57"/><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="87"/><pair kern="-17" kpx2="72"/><pair kern="27" kpx2="199"/><pair kern="-17" kpx2="71"/><pair kern="-128" kpx2="180"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="52"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="115"/><pair kern="-40" kpx2="90"/><pair kern="-17" kpx2="111"/><pair kern="27" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-17" kpx2="50"/><pair kern="27" kpx2="173"/><pair kern="-67" kpx2="92"/><pair kern="22" kpx2="197"/><pair kern="-58" kpx2="89"/><pair kern="27" kpx2="174"/></kerning><kerning kpx1="60"><pair kern="-114" kpx2="126"/><pair kern="-137" kpx2="107"/><pair kern="-132" kpx2="72"/><pair kern="-77" kpx2="199"/><pair kern="-118" kpx2="16"/><pair kern="-132" kpx2="123"/><pair kern="-132" kpx2="112"/><pair kern="-54" kpx2="251"/><pair kern="-54" kpx2="208"/><pair kern="-132" kpx2="113"/><pair kern="-54" kpx2="180"/><pair kern="-137" kpx2="105"/><pair kern="-114" kpx2="129"/><pair kern="-132" kpx2="124"/><pair kern="-109" kpx2="169"/><pair kern="-77" kpx2="201"/><pair kern="-54" kpx2="253"/><pair kern="-137" kpx2="106"/><pair kern="-132" kpx2="29"/><pair kern="-132" kpx2="125"/><pair kern="-72" kpx2="170"/><pair kern="-132" kpx2="115"/><pair kern="-114" kpx2="88"/><pair kern="-132" kpx2="122"/><pair kern="-54" kpx2="100"/><pair kern="-137" kpx2="68"/><pair kern="-54" kpx2="210"/><pair kern="-77" kpx2="36"/><pair kern="-132" kpx2="82"/><pair kern="-132" kpx2="114"/><pair kern="-54" kpx2="175"/><pair kern="-114" kpx2="127"/><pair kern="-54" kpx2="50"/><pair kern="-54" kpx2="209"/><pair kern="-54" kpx2="103"/><pair kern="-137" kpx2="108"/><pair kern="-77" kpx2="98"/><pair kern="-35" kpx2="76"/><pair kern="-17" kpx2="181"/><pair kern="-202" kpx2="17"/><pair kern="-114" kpx2="128"/><pair kern="-77" kpx2="173"/><pair kern="-137" kpx2="109"/><pair kern="-128" kpx2="197"/><pair kern="-54" kpx2="38"/><pair kern="-132" kpx2="121"/><pair kern="-137" kpx2="110"/><pair kern="-77" kpx2="174"/></kerning><kerning kpx1="85"><pair kern="-21" kpx2="254"/><pair kern="-21" kpx2="72"/><pair kern="-63" kpx2="16"/><pair kern="-21" kpx2="112"/><pair kern="-21" kpx2="123"/><pair kern="-17" kpx2="80"/><pair kern="-21" kpx2="113"/><pair kern="-17" kpx2="71"/><pair kern="-21" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-21" kpx2="252"/><pair kern="-21" kpx2="70"/><pair kern="-17" kpx2="85"/><pair kern="-17" kpx2="29"/><pair kern="-21" kpx2="125"/><pair kern="-21" kpx2="115"/><pair kern="-21" kpx2="111"/><pair kern="-21" kpx2="122"/><pair kern="-21" kpx2="82"/><pair kern="-17" kpx2="75"/><pair kern="-21" kpx2="114"/><pair kern="-26" kpx2="91"/><pair kern="-17" kpx2="81"/><pair kern="41" kpx2="181"/><pair kern="-91" kpx2="17"/><pair kern="-151" kpx2="197"/><pair kern="-17" kpx2="74"/><pair kern="-17" kpx2="84"/><pair kern="-21" kpx2="121"/><pair kern="-17" kpx2="247"/><pair kern="-17" kpx2="120"/></kerning><kerning kpx1="61"><pair kern="-17" kpx2="180"/><pair kern="-17" kpx2="197"/><pair kern="-17" kpx2="16"/><pair kern="-17" kpx2="181"/></kerning><kerning kpx1="234"><pair kern="-114" kpx2="126"/><pair kern="-137" kpx2="107"/><pair kern="-132" kpx2="72"/><pair kern="-77" kpx2="199"/><pair kern="-118" kpx2="16"/><pair kern="-132" kpx2="123"/><pair kern="-132" kpx2="112"/><pair kern="-54" kpx2="251"/><pair kern="-54" kpx2="208"/><pair kern="-132" kpx2="113"/><pair kern="-54" kpx2="180"/><pair kern="-137" kpx2="105"/><pair kern="-114" kpx2="129"/><pair kern="-132" kpx2="124"/><pair kern="-109" kpx2="169"/><pair kern="-77" kpx2="201"/><pair kern="-54" kpx2="253"/><pair kern="-137" kpx2="106"/><pair kern="-132" kpx2="29"/><pair kern="-132" kpx2="125"/><pair kern="-72" kpx2="170"/><pair kern="-132" kpx2="115"/><pair kern="-114" kpx2="88"/><pair kern="-132" kpx2="122"/><pair kern="-54" kpx2="100"/><pair kern="-137" kpx2="68"/><pair kern="-54" kpx2="210"/><pair kern="-77" kpx2="36"/><pair kern="-132" kpx2="82"/><pair kern="-132" kpx2="114"/><pair kern="-54" kpx2="175"/><pair kern="-114" kpx2="127"/><pair kern="-54" kpx2="50"/><pair kern="-54" kpx2="209"/><pair kern="-54" kpx2="103"/><pair kern="-137" kpx2="108"/><pair kern="-77" kpx2="98"/><pair kern="-35" kpx2="76"/><pair kern="-17" kpx2="181"/><pair kern="-202" kpx2="17"/><pair kern="-114" kpx2="128"/><pair kern="-77" kpx2="173"/><pair kern="-137" kpx2="109"/><pair kern="-128" kpx2="197"/><pair kern="-54" kpx2="38"/><pair kern="-132" kpx2="121"/><pair kern="-137" kpx2="110"/><pair kern="-77" kpx2="174"/></kerning><kerning kpx1="100"><pair kern="-17" kpx2="169"/><pair kern="-17" kpx2="60"/><pair kern="-17" kpx2="187"/><pair kern="18" kpx2="181"/><pair kern="-17" kpx2="170"/><pair kern="-17" kpx2="234"/></kerning><kerning kpx1="122"><pair kern="-72" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-63" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-30" kpx2="91"/><pair kern="-35" kpx2="181"/></kerning><kerning kpx1="47"><pair kern="-17" kpx2="126"/><pair kern="-91" kpx2="235"/><pair kern="-49" kpx2="104"/><pair kern="-17" kpx2="72"/><pair kern="22" kpx2="199"/><pair kern="-17" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-49" kpx2="213"/><pair kern="-35" kpx2="208"/><pair kern="-132" kpx2="187"/><pair kern="-17" kpx2="113"/><pair kern="-202" kpx2="180"/><pair kern="-17" kpx2="129"/><pair kern="-17" kpx2="124"/><pair kern="22" kpx2="201"/><pair kern="-132" kpx2="60"/><pair kern="-49" kpx2="211"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="115"/><pair kern="-132" kpx2="234"/><pair kern="-17" kpx2="88"/><pair kern="-17" kpx2="122"/><pair kern="-35" kpx2="210"/><pair kern="22" kpx2="36"/><pair kern="-17" kpx2="82"/><pair kern="-91" kpx2="58"/><pair kern="-91" kpx2="186"/><pair kern="-137" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-35" kpx2="175"/><pair kern="-17" kpx2="127"/><pair kern="-35" kpx2="50"/><pair kern="-35" kpx2="209"/><pair kern="-35" kpx2="103"/><pair kern="22" kpx2="98"/><pair kern="-262" kpx2="181"/><pair kern="-17" kpx2="128"/><pair kern="22" kpx2="173"/><pair kern="-49" kpx2="212"/><pair kern="-91" kpx2="92"/><pair kern="-17" kpx2="121"/><pair kern="-109" kpx2="57"/><pair kern="22" kpx2="174"/><pair kern="-49" kpx2="56"/></kerning><kerning kpx1="210"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="27" kpx2="16"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="98"/><pair kern="-17" kpx2="181"/><pair kern="-63" kpx2="59"/><pair kern="-40" kpx2="17"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="29"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="58"><pair kern="-35" kpx2="126"/><pair kern="-63" kpx2="107"/><pair kern="-17" kpx2="235"/><pair kern="-58" kpx2="72"/><pair kern="-54" kpx2="199"/><pair kern="-40" kpx2="16"/><pair kern="-58" kpx2="112"/><pair kern="-58" kpx2="123"/><pair kern="-58" kpx2="113"/><pair kern="-17" kpx2="180"/><pair kern="-63" kpx2="105"/><pair kern="-35" kpx2="129"/><pair kern="-58" kpx2="124"/><pair kern="-54" kpx2="169"/><pair kern="-54" kpx2="201"/><pair kern="-44" kpx2="85"/><pair kern="-63" kpx2="106"/><pair kern="-58" kpx2="29"/><pair kern="-58" kpx2="125"/><pair kern="-17" kpx2="170"/><pair kern="-58" kpx2="115"/><pair kern="-35" kpx2="88"/><pair kern="-58" kpx2="122"/><pair kern="-63" kpx2="68"/><pair kern="-54" kpx2="36"/><pair kern="-58" kpx2="82"/><pair kern="-17" kpx2="186"/><pair kern="-58" kpx2="114"/><pair kern="-35" kpx2="127"/><pair kern="-63" kpx2="108"/><pair kern="-54" kpx2="98"/><pair kern="-21" kpx2="76"/><pair kern="-114" kpx2="17"/><pair kern="-35" kpx2="128"/><pair kern="-54" kpx2="173"/><pair kern="-63" kpx2="109"/><pair kern="-128" kpx2="197"/><pair kern="-17" kpx2="92"/><pair kern="-58" kpx2="121"/><pair kern="-63" kpx2="110"/><pair kern="-54" kpx2="174"/></kerning><kerning kpx1="82"><pair kern="-72" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-63" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-30" kpx2="91"/><pair kern="-35" kpx2="181"/></kerning><kerning kpx1="186"><pair kern="-142" kpx2="17"/><pair kern="-17" kpx2="169"/><pair kern="-146" kpx2="197"/><pair kern="-17" kpx2="16"/><pair kern="-72" kpx2="29"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="175"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="27" kpx2="16"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="98"/><pair kern="-17" kpx2="181"/><pair kern="-63" kpx2="59"/><pair kern="-40" kpx2="17"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="29"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="209"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="27" kpx2="16"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="98"/><pair kern="-17" kpx2="181"/><pair kern="-63" kpx2="59"/><pair kern="-40" kpx2="17"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="29"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="103"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="27" kpx2="16"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="98"/><pair kern="-17" kpx2="181"/><pair kern="-63" kpx2="59"/><pair kern="-40" kpx2="17"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="29"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="81"><pair kern="-72" kpx2="180"/><pair kern="-44" kpx2="197"/><pair kern="-54" kpx2="181"/></kerning><kerning kpx1="98"><pair kern="-17" kpx2="246"/><pair kern="-67" kpx2="235"/><pair kern="-21" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-17" kpx2="251"/><pair kern="-17" kpx2="113"/><pair kern="-77" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-35" kpx2="73"/><pair kern="-17" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-77" kpx2="60"/><pair kern="27" kpx2="201"/><pair kern="-17" kpx2="29"/><pair kern="-77" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="122"/><pair kern="-17" kpx2="210"/><pair kern="-17" kpx2="82"/><pair kern="-54" kpx2="58"/><pair kern="-67" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="27" kpx2="98"/><pair kern="-123" kpx2="181"/><pair kern="-17" kpx2="17"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="84"/><pair kern="-17" kpx2="121"/><pair kern="-63" kpx2="57"/><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="87"/><pair kern="-17" kpx2="72"/><pair kern="27" kpx2="199"/><pair kern="-17" kpx2="71"/><pair kern="-128" kpx2="180"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="52"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="115"/><pair kern="-40" kpx2="90"/><pair kern="-17" kpx2="111"/><pair kern="27" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-17" kpx2="50"/><pair kern="27" kpx2="173"/><pair kern="-67" kpx2="92"/><pair kern="22" kpx2="197"/><pair kern="-58" kpx2="89"/><pair kern="27" kpx2="174"/></kerning><kerning kpx1="212"><pair kern="-17" kpx2="229"/><pair kern="-17" kpx2="61"/></kerning><kerning kpx1="229"><pair kern="-17" kpx2="180"/><pair kern="-17" kpx2="197"/><pair kern="-17" kpx2="16"/><pair kern="-17" kpx2="181"/></kerning><kerning kpx1="38"><pair kern="-17" kpx2="169"/><pair kern="-17" kpx2="60"/><pair kern="-17" kpx2="187"/><pair kern="18" kpx2="181"/><pair kern="-17" kpx2="170"/><pair kern="-17" kpx2="234"/></kerning><kerning kpx1="121"><pair kern="-72" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-63" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-30" kpx2="91"/><pair kern="-35" kpx2="181"/></kerning><kerning kpx1="57"><pair kern="-67" kpx2="126"/><pair kern="-77" kpx2="107"/><pair kern="-26" kpx2="235"/><pair kern="-77" kpx2="72"/><pair kern="-63" kpx2="199"/><pair kern="-58" kpx2="16"/><pair kern="-77" kpx2="123"/><pair kern="-77" kpx2="112"/><pair kern="-17" kpx2="208"/><pair kern="-77" kpx2="113"/><pair kern="-77" kpx2="105"/><pair kern="-67" kpx2="129"/><pair kern="-77" kpx2="124"/><pair kern="-86" kpx2="169"/><pair kern="-63" kpx2="201"/><pair kern="-77" kpx2="106"/><pair kern="-81" kpx2="29"/><pair kern="-77" kpx2="125"/><pair kern="-54" kpx2="170"/><pair kern="-77" kpx2="115"/><pair kern="-67" kpx2="88"/><pair kern="-77" kpx2="122"/><pair kern="-77" kpx2="68"/><pair kern="-17" kpx2="210"/><pair kern="-63" kpx2="36"/><pair kern="-77" kpx2="82"/><pair kern="-26" kpx2="186"/><pair kern="-77" kpx2="114"/><pair kern="-17" kpx2="175"/><pair kern="-67" kpx2="127"/><pair kern="-17" kpx2="50"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="-77" kpx2="108"/><pair kern="-63" kpx2="98"/><pair kern="-21" kpx2="76"/><pair kern="-128" kpx2="17"/><pair kern="-67" kpx2="128"/><pair kern="-63" kpx2="173"/><pair kern="-77" kpx2="109"/><pair kern="-137" kpx2="197"/><pair kern="-26" kpx2="92"/><pair kern="-77" kpx2="121"/><pair kern="-77" kpx2="110"/><pair kern="-63" kpx2="174"/></kerning><kerning kpx1="37"><pair kern="-17" kpx2="227"/><pair kern="-17" kpx2="246"/><pair kern="-17" kpx2="251"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-17" kpx2="54"/><pair kern="-54" kpx2="180"/><pair kern="-30" kpx2="169"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="170"/><pair kern="-54" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="210"/><pair kern="-35" kpx2="58"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="50"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="-54" kpx2="181"/><pair kern="-40" kpx2="197"/><pair kern="-17" kpx2="38"/><pair kern="-30" kpx2="57"/><pair kern="-17" kpx2="249"/></kerning><kerning kpx1="120"><pair kern="-72" kpx2="180"/><pair kern="-44" kpx2="197"/><pair kern="-54" kpx2="181"/></kerning><kerning kpx1="249"><pair kern="18" kpx2="173"/><pair kern="18" kpx2="36"/><pair kern="18" kpx2="201"/><pair kern="18" kpx2="199"/><pair kern="18" kpx2="174"/><pair kern="18" kpx2="98"/></kerning><kerning kpx1="227"><pair kern="18" kpx2="173"/><pair kern="18" kpx2="36"/><pair kern="18" kpx2="201"/><pair kern="18" kpx2="199"/><pair kern="18" kpx2="174"/><pair kern="18" kpx2="98"/></kerning><kerning kpx1="51"><pair kern="-17" kpx2="126"/><pair kern="-44" kpx2="107"/><pair kern="-35" kpx2="72"/><pair kern="-63" kpx2="199"/><pair kern="-21" kpx2="16"/><pair kern="-35" kpx2="123"/><pair kern="-35" kpx2="112"/><pair kern="-21" kpx2="187"/><pair kern="-35" kpx2="113"/><pair kern="-17" kpx2="86"/><pair kern="18" kpx2="180"/><pair kern="-44" kpx2="105"/><pair kern="-17" kpx2="129"/><pair kern="-35" kpx2="124"/><pair kern="-17" kpx2="169"/><pair kern="-63" kpx2="201"/><pair kern="-17" kpx2="85"/><pair kern="-21" kpx2="60"/><pair kern="-44" kpx2="106"/><pair kern="-35" kpx2="125"/><pair kern="-35" kpx2="115"/><pair kern="-21" kpx2="234"/><pair kern="-17" kpx2="88"/><pair kern="-35" kpx2="122"/><pair kern="-44" kpx2="68"/><pair kern="-63" kpx2="36"/><pair kern="-35" kpx2="82"/><pair kern="-35" kpx2="114"/><pair kern="-17" kpx2="250"/><pair kern="-17" kpx2="127"/><pair kern="-44" kpx2="108"/><pair kern="-63" kpx2="98"/><pair kern="-17" kpx2="81"/><pair kern="-21" kpx2="76"/><pair kern="18" kpx2="181"/><pair kern="-155" kpx2="17"/><pair kern="-17" kpx2="128"/><pair kern="-63" kpx2="173"/><pair kern="-44" kpx2="109"/><pair kern="-160" kpx2="197"/><pair kern="-35" kpx2="121"/><pair kern="-17" kpx2="228"/><pair kern="-44" kpx2="110"/><pair kern="-63" kpx2="174"/><pair kern="-17" kpx2="120"/></kerning><kerning kpx1="104"><pair kern="-17" kpx2="229"/><pair kern="-17" kpx2="61"/></kerning><kerning kpx1="72"><pair kern="-17" kpx2="91"/></kerning><kerning kpx1="199"><pair kern="-17" kpx2="246"/><pair kern="-67" kpx2="235"/><pair kern="-21" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-17" kpx2="251"/><pair kern="-17" kpx2="113"/><pair kern="-77" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-35" kpx2="73"/><pair kern="-17" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-77" kpx2="60"/><pair kern="27" kpx2="201"/><pair kern="-17" kpx2="29"/><pair kern="-77" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="122"/><pair kern="-17" kpx2="210"/><pair kern="-17" kpx2="82"/><pair kern="-54" kpx2="58"/><pair kern="-67" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="27" kpx2="98"/><pair kern="-123" kpx2="181"/><pair kern="-17" kpx2="17"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="84"/><pair kern="-17" kpx2="121"/><pair kern="-63" kpx2="57"/><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="87"/><pair kern="-17" kpx2="72"/><pair kern="27" kpx2="199"/><pair kern="-17" kpx2="71"/><pair kern="-128" kpx2="180"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="52"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="115"/><pair kern="-40" kpx2="90"/><pair kern="-17" kpx2="111"/><pair kern="27" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-17" kpx2="50"/><pair kern="27" kpx2="173"/><pair kern="-67" kpx2="92"/><pair kern="22" kpx2="197"/><pair kern="-58" kpx2="89"/><pair kern="27" kpx2="174"/></kerning><kerning kpx1="54"><pair kern="18" kpx2="173"/><pair kern="18" kpx2="36"/><pair kern="18" kpx2="201"/><pair kern="18" kpx2="199"/><pair kern="18" kpx2="174"/><pair kern="18" kpx2="98"/></kerning><kerning kpx1="180"><pair kern="-35" kpx2="235"/><pair kern="-35" kpx2="246"/><pair kern="-30" kpx2="43"/><pair kern="-72" kpx2="123"/><pair kern="-35" kpx2="251"/><pair kern="-35" kpx2="208"/><pair kern="-188" kpx2="144"/><pair kern="-58" kpx2="59"/><pair kern="-35" kpx2="73"/><pair kern="-30" kpx2="41"/><pair kern="-72" kpx2="124"/><pair kern="-54" kpx2="85"/><pair kern="-128" kpx2="201"/><pair kern="-17" kpx2="61"/><pair kern="-35" kpx2="100"/><pair kern="-72" kpx2="122"/><pair kern="-30" kpx2="47"/><pair kern="-35" kpx2="210"/><pair kern="-72" kpx2="82"/><pair kern="-35" kpx2="186"/><pair kern="-35" kpx2="175"/><pair kern="-35" kpx2="209"/><pair kern="-35" kpx2="103"/><pair kern="-128" kpx2="98"/><pair kern="-54" kpx2="81"/><pair kern="-17" kpx2="229"/><pair kern="-35" kpx2="38"/><pair kern="-72" kpx2="121"/><pair kern="-30" kpx2="37"/><pair kern="-54" kpx2="120"/><pair kern="-30" kpx2="51"/><pair kern="-128" kpx2="199"/><pair kern="-30" kpx2="53"/><pair kern="-30" kpx2="137"/><pair kern="-35" kpx2="233"/><pair kern="-35" kpx2="253"/><pair kern="-35" kpx2="52"/><pair kern="-72" kpx2="125"/><pair kern="-35" kpx2="42"/><pair kern="-35" kpx2="90"/><pair kern="-128" kpx2="36"/><pair kern="-35" kpx2="50"/><pair kern="-30" kpx2="39"/><pair kern="-30" kpx2="236"/><pair kern="-30" kpx2="45"/><pair kern="-128" kpx2="173"/><pair kern="-35" kpx2="92"/><pair kern="-35" kpx2="89"/><pair kern="-30" kpx2="46"/><pair kern="-128" kpx2="174"/></kerning><kerning kpx1="53"><pair kern="-21" kpx2="107"/><pair kern="-54" kpx2="235"/><pair kern="-40" kpx2="16"/><pair kern="-44" kpx2="112"/><pair kern="-44" kpx2="123"/><pair kern="-49" kpx2="251"/><pair kern="-44" kpx2="113"/><pair kern="-63" kpx2="187"/><pair kern="-44" kpx2="129"/><pair kern="-44" kpx2="124"/><pair kern="-54" kpx2="169"/><pair kern="-63" kpx2="60"/><pair kern="-40" kpx2="201"/><pair kern="-21" kpx2="106"/><pair kern="-30" kpx2="29"/><pair kern="-63" kpx2="234"/><pair kern="-49" kpx2="100"/><pair kern="-44" kpx2="122"/><pair kern="-21" kpx2="68"/><pair kern="-40" kpx2="58"/><pair kern="-44" kpx2="82"/><pair kern="-54" kpx2="186"/><pair kern="-40" kpx2="98"/><pair kern="-63" kpx2="181"/><pair kern="-35" kpx2="17"/><pair kern="-49" kpx2="38"/><pair kern="-44" kpx2="121"/><pair kern="-54" kpx2="57"/><pair kern="-44" kpx2="126"/><pair kern="-44" kpx2="72"/><pair kern="-40" kpx2="199"/><pair kern="-72" kpx2="180"/><pair kern="-21" kpx2="105"/><pair kern="-49" kpx2="253"/><pair kern="-44" kpx2="125"/><pair kern="-44" kpx2="115"/><pair kern="-17" kpx2="170"/><pair kern="-44" kpx2="88"/><pair kern="-40" kpx2="36"/><pair kern="-44" kpx2="114"/><pair kern="-72" kpx2="55"/><pair kern="-44" kpx2="127"/><pair kern="-21" kpx2="108"/><pair kern="-44" kpx2="128"/><pair kern="-40" kpx2="173"/><pair kern="-21" kpx2="109"/><pair kern="-54" kpx2="92"/><pair kern="-17" kpx2="197"/><pair kern="-21" kpx2="110"/><pair kern="-40" kpx2="174"/></kerning><kerning kpx1="137"><pair kern="-54" kpx2="180"/><pair kern="-40" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-54" kpx2="181"/></kerning><kerning kpx1="233"><pair kern="-44" kpx2="180"/><pair kern="-35" kpx2="197"/><pair kern="-54" kpx2="181"/></kerning><kerning kpx1="253"><pair kern="-17" kpx2="169"/><pair kern="-17" kpx2="60"/><pair kern="-17" kpx2="187"/><pair kern="18" kpx2="181"/><pair kern="-17" kpx2="170"/><pair kern="-17" kpx2="234"/></kerning><kerning kpx1="211"><pair kern="-17" kpx2="229"/><pair kern="-17" kpx2="61"/></kerning><kerning kpx1="78"><pair kern="-17" kpx2="107"/><pair kern="-30" kpx2="126"/><pair kern="-35" kpx2="235"/><pair kern="-35" kpx2="72"/><pair kern="-35" kpx2="112"/><pair kern="-35" kpx2="123"/><pair kern="-35" kpx2="113"/><pair kern="-17" kpx2="105"/><pair kern="-30" kpx2="129"/><pair kern="-35" kpx2="124"/><pair kern="-17" kpx2="106"/><pair kern="-35" kpx2="125"/><pair kern="-35" kpx2="115"/><pair kern="-30" kpx2="88"/><pair kern="-35" kpx2="122"/><pair kern="-17" kpx2="68"/><pair kern="-35" kpx2="82"/><pair kern="-35" kpx2="114"/><pair kern="-35" kpx2="186"/><pair kern="-30" kpx2="127"/><pair kern="-17" kpx2="108"/><pair kern="-30" kpx2="128"/><pair kern="-17" kpx2="109"/><pair kern="-35" kpx2="92"/><pair kern="-35" kpx2="121"/><pair kern="-17" kpx2="110"/></kerning><kerning kpx1="52"><pair kern="-21" kpx2="180"/><pair kern="-63" kpx2="197"/><pair kern="27" kpx2="16"/><pair kern="-17" kpx2="181"/></kerning><kerning kpx1="125"><pair kern="-72" kpx2="180"/><pair kern="-17" kpx2="17"/><pair kern="-63" kpx2="197"/><pair kern="18" kpx2="16"/><pair kern="-30" kpx2="91"/><pair kern="-35" kpx2="181"/></kerning><kerning kpx1="42"><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="169"/><pair kern="-26" kpx2="197"/><pair kern="-35" kpx2="55"/><pair kern="-49" kpx2="60"/><pair kern="-49" kpx2="187"/><pair kern="-21" kpx2="181"/><pair kern="-17" kpx2="170"/><pair kern="-49" kpx2="234"/></kerning><kerning kpx1="170"><pair kern="-17" kpx2="235"/><pair kern="-35" kpx2="199"/><pair kern="-17" kpx2="251"/><pair kern="-109" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-54" kpx2="59"/><pair kern="-109" kpx2="60"/><pair kern="-35" kpx2="201"/><pair kern="-17" kpx2="253"/><pair kern="-109" kpx2="234"/><pair kern="-17" kpx2="90"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="210"/><pair kern="-35" kpx2="36"/><pair kern="-54" kpx2="58"/><pair kern="-91" kpx2="55"/><pair kern="-17" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="50"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="-17" kpx2="39"/><pair kern="-35" kpx2="98"/><pair kern="-17" kpx2="45"/><pair kern="-35" kpx2="173"/><pair kern="-17" kpx2="92"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="89"/><pair kern="-86" kpx2="57"/><pair kern="-35" kpx2="37"/><pair kern="-35" kpx2="174"/></kerning><kerning kpx1="115"><pair kern="-17" kpx2="91"/></kerning><kerning kpx1="90"><pair kern="-91" kpx2="17"/><pair kern="-17" kpx2="169"/><pair kern="-104" kpx2="197"/><pair kern="-54" kpx2="29"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="36"><pair kern="-17" kpx2="246"/><pair kern="-67" kpx2="235"/><pair kern="-21" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-17" kpx2="251"/><pair kern="-17" kpx2="113"/><pair kern="-77" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-35" kpx2="73"/><pair kern="-17" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-77" kpx2="60"/><pair kern="27" kpx2="201"/><pair kern="-17" kpx2="29"/><pair kern="-77" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="122"/><pair kern="-17" kpx2="210"/><pair kern="-17" kpx2="82"/><pair kern="-54" kpx2="58"/><pair kern="-67" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="27" kpx2="98"/><pair kern="-123" kpx2="181"/><pair kern="-17" kpx2="17"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="84"/><pair kern="-17" kpx2="121"/><pair kern="-63" kpx2="57"/><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="87"/><pair kern="-17" kpx2="72"/><pair kern="27" kpx2="199"/><pair kern="-17" kpx2="71"/><pair kern="-128" kpx2="180"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="52"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="115"/><pair kern="-40" kpx2="90"/><pair kern="-17" kpx2="111"/><pair kern="27" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-17" kpx2="50"/><pair kern="27" kpx2="173"/><pair kern="-67" kpx2="92"/><pair kern="22" kpx2="197"/><pair kern="-58" kpx2="89"/><pair kern="27" kpx2="174"/></kerning><kerning kpx1="55"><pair kern="-165" kpx2="107"/><pair kern="-155" kpx2="235"/><pair kern="-91" kpx2="16"/><pair kern="-169" kpx2="112"/><pair kern="-169" kpx2="123"/><pair kern="-58" kpx2="251"/><pair kern="-169" kpx2="113"/><pair kern="-165" kpx2="86"/><pair kern="-151" kpx2="129"/><pair kern="-169" kpx2="124"/><pair kern="-91" kpx2="169"/><pair kern="-169" kpx2="252"/><pair kern="-169" kpx2="70"/><pair kern="-146" kpx2="85"/><pair kern="-77" kpx2="201"/><pair kern="-165" kpx2="106"/><pair kern="-109" kpx2="29"/><pair kern="-58" kpx2="100"/><pair kern="-169" kpx2="122"/><pair kern="-165" kpx2="68"/><pair kern="-169" kpx2="82"/><pair kern="-155" kpx2="186"/><pair kern="-165" kpx2="250"/><pair kern="-77" kpx2="98"/><pair kern="-21" kpx2="181"/><pair kern="-118" kpx2="17"/><pair kern="-58" kpx2="38"/><pair kern="-169" kpx2="121"/><pair kern="-165" kpx2="228"/><pair kern="-169" kpx2="254"/><pair kern="-151" kpx2="126"/><pair kern="-169" kpx2="72"/><pair kern="-77" kpx2="199"/><pair kern="-165" kpx2="105"/><pair kern="-58" kpx2="253"/><pair kern="-169" kpx2="125"/><pair kern="-169" kpx2="115"/><pair kern="-54" kpx2="170"/><pair kern="-151" kpx2="88"/><pair kern="-169" kpx2="111"/><pair kern="-165" kpx2="90"/><pair kern="-77" kpx2="36"/><pair kern="-17" kpx2="55"/><pair kern="-169" kpx2="114"/><pair kern="-151" kpx2="127"/><pair kern="-165" kpx2="108"/><pair kern="-30" kpx2="76"/><pair kern="-151" kpx2="128"/><pair kern="-77" kpx2="173"/><pair kern="-165" kpx2="109"/><pair kern="-155" kpx2="92"/><pair kern="-128" kpx2="197"/><pair kern="-165" kpx2="110"/><pair kern="-77" kpx2="174"/></kerning><kerning kpx1="114"><pair kern="-17" kpx2="91"/></kerning><kerning kpx1="50"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="27" kpx2="16"/><pair kern="-54" kpx2="187"/><pair kern="-17" kpx2="98"/><pair kern="-17" kpx2="181"/><pair kern="-63" kpx2="59"/><pair kern="-40" kpx2="17"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="29"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="91"><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="111"/><pair kern="-30" kpx2="122"/><pair kern="-30" kpx2="82"/><pair kern="-30" kpx2="114"/><pair kern="-30" kpx2="72"/><pair kern="-30" kpx2="112"/><pair kern="-30" kpx2="123"/><pair kern="-30" kpx2="113"/><pair kern="-30" kpx2="124"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-30" kpx2="121"/><pair kern="-30" kpx2="125"/><pair kern="-30" kpx2="115"/></kerning><kerning kpx1="39"><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="199"/><pair kern="-17" kpx2="98"/><pair kern="-54" kpx2="187"/><pair kern="-26" kpx2="181"/><pair kern="-21" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="169"/><pair kern="-91" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-54" kpx2="60"/><pair kern="-17" kpx2="57"/><pair kern="-17" kpx2="174"/><pair kern="-17" kpx2="170"/><pair kern="-54" kpx2="234"/></kerning><kerning kpx1="236"><pair kern="-17" kpx2="180"/><pair kern="-72" kpx2="17"/><pair kern="-91" kpx2="197"/><pair kern="-35" kpx2="29"/></kerning><kerning kpx1="45"><pair kern="-35" kpx2="180"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="36"/><pair kern="-17" kpx2="169"/><pair kern="-54" kpx2="197"/><pair kern="-17" kpx2="201"/><pair kern="-17" kpx2="199"/><pair kern="-35" kpx2="16"/><pair kern="-17" kpx2="174"/><pair kern="-17" kpx2="98"/><pair kern="-30" kpx2="181"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="173"><pair kern="-17" kpx2="246"/><pair kern="-67" kpx2="235"/><pair kern="-21" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-17" kpx2="251"/><pair kern="-17" kpx2="113"/><pair kern="-77" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-35" kpx2="73"/><pair kern="-17" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-77" kpx2="60"/><pair kern="27" kpx2="201"/><pair kern="-17" kpx2="29"/><pair kern="-77" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="122"/><pair kern="-17" kpx2="210"/><pair kern="-17" kpx2="82"/><pair kern="-54" kpx2="58"/><pair kern="-67" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="27" kpx2="98"/><pair kern="-123" kpx2="181"/><pair kern="-17" kpx2="17"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="84"/><pair kern="-17" kpx2="121"/><pair kern="-63" kpx2="57"/><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="87"/><pair kern="-17" kpx2="72"/><pair kern="27" kpx2="199"/><pair kern="-17" kpx2="71"/><pair kern="-128" kpx2="180"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="52"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="115"/><pair kern="-40" kpx2="90"/><pair kern="-17" kpx2="111"/><pair kern="27" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-17" kpx2="50"/><pair kern="27" kpx2="173"/><pair kern="-67" kpx2="92"/><pair kern="22" kpx2="197"/><pair kern="-58" kpx2="89"/><pair kern="27" kpx2="174"/></kerning><kerning kpx1="197"><pair kern="-35" kpx2="246"/><pair kern="-54" kpx2="235"/><pair kern="-35" kpx2="43"/><pair kern="-35" kpx2="123"/><pair kern="-54" kpx2="251"/><pair kern="-183" kpx2="187"/><pair kern="-54" kpx2="208"/><pair kern="18" kpx2="144"/><pair kern="-35" kpx2="59"/><pair kern="-17" kpx2="73"/><pair kern="-35" kpx2="41"/><pair kern="-35" kpx2="124"/><pair kern="-35" kpx2="85"/><pair kern="-183" kpx2="60"/><pair kern="18" kpx2="201"/><pair kern="-183" kpx2="234"/><pair kern="-54" kpx2="100"/><pair kern="-35" kpx2="122"/><pair kern="-35" kpx2="47"/><pair kern="-54" kpx2="210"/><pair kern="-35" kpx2="82"/><pair kern="-123" kpx2="58"/><pair kern="-54" kpx2="186"/><pair kern="-54" kpx2="175"/><pair kern="-54" kpx2="209"/><pair kern="-54" kpx2="103"/><pair kern="-35" kpx2="81"/><pair kern="18" kpx2="98"/><pair kern="-54" kpx2="38"/><pair kern="-35" kpx2="121"/><pair kern="-183" kpx2="57"/><pair kern="-35" kpx2="37"/><pair kern="-35" kpx2="120"/><pair kern="-35" kpx2="51"/><pair kern="18" kpx2="199"/><pair kern="-35" kpx2="53"/><pair kern="-35" kpx2="137"/><pair kern="-35" kpx2="233"/><pair kern="-54" kpx2="253"/><pair kern="-54" kpx2="52"/><pair kern="-35" kpx2="125"/><pair kern="-35" kpx2="42"/><pair kern="-95" kpx2="90"/><pair kern="18" kpx2="36"/><pair kern="-137" kpx2="55"/><pair kern="-54" kpx2="50"/><pair kern="-35" kpx2="39"/><pair kern="-35" kpx2="236"/><pair kern="22" kpx2="45"/><pair kern="18" kpx2="173"/><pair kern="-54" kpx2="92"/><pair kern="-114" kpx2="89"/><pair kern="-35" kpx2="46"/><pair kern="18" kpx2="174"/></kerning><kerning kpx1="92"><pair kern="-142" kpx2="17"/><pair kern="-17" kpx2="169"/><pair kern="-146" kpx2="197"/><pair kern="-17" kpx2="16"/><pair kern="-72" kpx2="29"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="89"><pair kern="-77" kpx2="17"/><pair kern="-17" kpx2="169"/><pair kern="-132" kpx2="197"/><pair kern="-26" kpx2="16"/><pair kern="-54" kpx2="29"/><pair kern="-17" kpx2="181"/><pair kern="-17" kpx2="170"/></kerning><kerning kpx1="46"><pair kern="-17" kpx2="107"/><pair kern="-72" kpx2="235"/><pair kern="-104" kpx2="16"/><pair kern="-49" kpx2="112"/><pair kern="-49" kpx2="123"/><pair kern="-54" kpx2="251"/><pair kern="-26" kpx2="213"/><pair kern="-49" kpx2="113"/><pair kern="-35" kpx2="187"/><pair kern="-54" kpx2="208"/><pair kern="-49" kpx2="129"/><pair kern="-49" kpx2="124"/><pair kern="-63" kpx2="169"/><pair kern="-35" kpx2="60"/><pair kern="-17" kpx2="201"/><pair kern="-17" kpx2="106"/><pair kern="-35" kpx2="234"/><pair kern="-54" kpx2="100"/><pair kern="-49" kpx2="122"/><pair kern="-17" kpx2="68"/><pair kern="-54" kpx2="210"/><pair kern="-35" kpx2="58"/><pair kern="-49" kpx2="82"/><pair kern="-72" kpx2="186"/><pair kern="-54" kpx2="175"/><pair kern="-54" kpx2="209"/><pair kern="-54" kpx2="103"/><pair kern="-17" kpx2="98"/><pair kern="-30" kpx2="181"/><pair kern="-26" kpx2="212"/><pair kern="-54" kpx2="38"/><pair kern="-49" kpx2="121"/><pair kern="-49" kpx2="126"/><pair kern="-26" kpx2="104"/><pair kern="-49" kpx2="72"/><pair kern="-17" kpx2="199"/><pair kern="-30" kpx2="180"/><pair kern="-17" kpx2="105"/><pair kern="-54" kpx2="253"/><pair kern="-26" kpx2="211"/><pair kern="-49" kpx2="125"/><pair kern="-49" kpx2="115"/><pair kern="-49" kpx2="88"/><pair kern="-17" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-49" kpx2="114"/><pair kern="-54" kpx2="50"/><pair kern="-49" kpx2="127"/><pair kern="-17" kpx2="108"/><pair kern="-49" kpx2="128"/><pair kern="-17" kpx2="173"/><pair kern="-17" kpx2="109"/><pair kern="-72" kpx2="92"/><pair kern="-17" kpx2="110"/><pair kern="-17" kpx2="174"/><pair kern="-26" kpx2="56"/></kerning><kerning kpx1="174"><pair kern="-17" kpx2="246"/><pair kern="-67" kpx2="235"/><pair kern="-21" kpx2="16"/><pair kern="-17" kpx2="112"/><pair kern="-17" kpx2="123"/><pair kern="-17" kpx2="251"/><pair kern="-17" kpx2="113"/><pair kern="-77" kpx2="187"/><pair kern="-17" kpx2="208"/><pair kern="-35" kpx2="73"/><pair kern="-17" kpx2="124"/><pair kern="-35" kpx2="169"/><pair kern="-17" kpx2="252"/><pair kern="-17" kpx2="70"/><pair kern="-77" kpx2="60"/><pair kern="27" kpx2="201"/><pair kern="-17" kpx2="29"/><pair kern="-77" kpx2="234"/><pair kern="-17" kpx2="100"/><pair kern="-17" kpx2="122"/><pair kern="-17" kpx2="210"/><pair kern="-17" kpx2="82"/><pair kern="-54" kpx2="58"/><pair kern="-67" kpx2="186"/><pair kern="-17" kpx2="175"/><pair kern="-17" kpx2="209"/><pair kern="-17" kpx2="103"/><pair kern="27" kpx2="98"/><pair kern="-123" kpx2="181"/><pair kern="-17" kpx2="17"/><pair kern="-17" kpx2="38"/><pair kern="-17" kpx2="84"/><pair kern="-17" kpx2="121"/><pair kern="-63" kpx2="57"/><pair kern="-17" kpx2="254"/><pair kern="-17" kpx2="87"/><pair kern="-17" kpx2="72"/><pair kern="27" kpx2="199"/><pair kern="-17" kpx2="71"/><pair kern="-128" kpx2="180"/><pair kern="-17" kpx2="253"/><pair kern="-17" kpx2="52"/><pair kern="-17" kpx2="125"/><pair kern="-17" kpx2="42"/><pair kern="-17" kpx2="115"/><pair kern="-40" kpx2="90"/><pair kern="-17" kpx2="111"/><pair kern="27" kpx2="36"/><pair kern="-77" kpx2="55"/><pair kern="-17" kpx2="114"/><pair kern="-17" kpx2="50"/><pair kern="27" kpx2="173"/><pair kern="-67" kpx2="92"/><pair kern="22" kpx2="197"/><pair kern="-58" kpx2="89"/><pair kern="27" kpx2="174"/></kerning><kerning kpx1="56"><pair kern="-17" kpx2="229"/><pair kern="-17" kpx2="61"/></kerning></font-metrics> \ No newline at end of file
diff --git a/handbook/poky-doc-tools/common/VeraMoBd.ttf b/handbook/poky-doc-tools/common/VeraMoBd.ttf
new file mode 100644
index 0000000000..9be6547ed6
--- /dev/null
+++ b/handbook/poky-doc-tools/common/VeraMoBd.ttf
Binary files differ
diff --git a/handbook/poky-doc-tools/common/VeraMoBd.xml b/handbook/poky-doc-tools/common/VeraMoBd.xml
new file mode 100644
index 0000000000..78c9207502
--- /dev/null
+++ b/handbook/poky-doc-tools/common/VeraMoBd.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><font-metrics type="TRUETYPE"><font-name>BitstreamVeraSansMono,Bold</font-name><embed/><cap-height>729</cap-height><x-height>546</x-height><ascender>928</ascender><descender>-235</descender><bbox><left>-19</left><bottom>-235</bottom><right>605</right><top>928</top></bbox><flags>34</flags><stemv>0</stemv><italicangle>0</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char idx="0" wdt="602"/><char idx="1" wdt="602"/><char idx="2" wdt="602"/><char idx="3" wdt="602"/><char idx="4" wdt="602"/><char idx="5" wdt="602"/><char idx="6" wdt="602"/><char idx="7" wdt="602"/><char idx="8" wdt="602"/><char idx="9" wdt="602"/><char idx="10" wdt="602"/><char idx="11" wdt="602"/><char idx="12" wdt="602"/><char idx="13" wdt="602"/><char idx="14" wdt="602"/><char idx="15" wdt="602"/><char idx="16" wdt="602"/><char idx="17" wdt="602"/><char idx="18" wdt="602"/><char idx="19" wdt="602"/><char idx="20" wdt="602"/><char idx="21" wdt="602"/><char idx="22" wdt="602"/><char idx="23" wdt="602"/><char idx="24" wdt="602"/><char idx="25" wdt="602"/><char idx="26" wdt="602"/><char idx="27" wdt="602"/><char idx="28" wdt="602"/><char idx="29" wdt="602"/><char idx="30" wdt="602"/><char idx="31" wdt="602"/><char idx="32" wdt="602"/><char idx="33" wdt="602"/><char idx="34" wdt="602"/><char idx="35" wdt="602"/><char idx="36" wdt="602"/><char idx="37" wdt="602"/><char idx="38" wdt="602"/><char idx="39" wdt="602"/><char idx="40" wdt="602"/><char idx="41" wdt="602"/><char idx="42" wdt="602"/><char idx="43" wdt="602"/><char idx="44" wdt="602"/><char idx="45" wdt="602"/><char idx="46" wdt="602"/><char idx="47" wdt="602"/><char idx="48" wdt="602"/><char idx="49" wdt="602"/><char idx="50" wdt="602"/><char idx="51" wdt="602"/><char idx="52" wdt="602"/><char idx="53" wdt="602"/><char idx="54" wdt="602"/><char idx="55" wdt="602"/><char idx="56" wdt="602"/><char idx="57" wdt="602"/><char idx="58" wdt="602"/><char idx="59" wdt="602"/><char idx="60" wdt="602"/><char idx="61" wdt="602"/><char idx="62" wdt="602"/><char idx="63" wdt="602"/><char idx="64" wdt="602"/><char idx="65" wdt="602"/><char idx="66" wdt="602"/><char idx="67" wdt="602"/><char idx="68" wdt="602"/><char idx="69" wdt="602"/><char idx="70" wdt="602"/><char idx="71" wdt="602"/><char idx="72" wdt="602"/><char idx="73" wdt="602"/><char idx="74" wdt="602"/><char idx="75" wdt="602"/><char idx="76" wdt="602"/><char idx="77" wdt="602"/><char idx="78" wdt="602"/><char idx="79" wdt="602"/><char idx="80" wdt="602"/><char idx="81" wdt="602"/><char idx="82" wdt="602"/><char idx="83" wdt="602"/><char idx="84" wdt="602"/><char idx="85" wdt="602"/><char idx="86" wdt="602"/><char idx="87" wdt="602"/><char idx="88" wdt="602"/><char idx="89" wdt="602"/><char idx="90" wdt="602"/><char idx="91" wdt="602"/><char idx="92" wdt="602"/><char idx="93" wdt="602"/><char idx="94" wdt="602"/><char idx="95" wdt="602"/><char idx="96" wdt="602"/><char idx="97" wdt="602"/><char idx="98" wdt="602"/><char idx="99" wdt="602"/><char idx="100" wdt="602"/><char idx="101" wdt="602"/><char idx="102" wdt="602"/><char idx="103" wdt="602"/><char idx="104" wdt="602"/><char idx="105" wdt="602"/><char idx="106" wdt="602"/><char idx="107" wdt="602"/><char idx="108" wdt="602"/><char idx="109" wdt="602"/><char idx="110" wdt="602"/><char idx="111" wdt="602"/><char idx="112" wdt="602"/><char idx="113" wdt="602"/><char idx="114" wdt="602"/><char idx="115" wdt="602"/><char idx="116" wdt="602"/><char idx="117" wdt="602"/><char idx="118" wdt="602"/><char idx="119" wdt="602"/><char idx="120" wdt="602"/><char idx="121" wdt="602"/><char idx="122" wdt="602"/><char idx="123" wdt="602"/><char idx="124" wdt="602"/><char idx="125" wdt="602"/><char idx="126" wdt="602"/><char idx="127" wdt="602"/><char idx="128" wdt="602"/><char idx="129" wdt="602"/><char idx="130" wdt="602"/><char idx="131" wdt="602"/><char idx="132" wdt="602"/><char idx="133" wdt="602"/><char idx="134" wdt="602"/><char idx="135" wdt="602"/><char idx="136" wdt="602"/><char idx="137" wdt="602"/><char idx="138" wdt="602"/><char idx="139" wdt="602"/><char idx="140" wdt="602"/><char idx="141" wdt="602"/><char idx="142" wdt="602"/><char idx="143" wdt="602"/><char idx="144" wdt="602"/><char idx="145" wdt="602"/><char idx="146" wdt="602"/><char idx="147" wdt="602"/><char idx="148" wdt="602"/><char idx="149" wdt="602"/><char idx="150" wdt="602"/><char idx="151" wdt="602"/><char idx="152" wdt="602"/><char idx="153" wdt="602"/><char idx="154" wdt="602"/><char idx="155" wdt="602"/><char idx="156" wdt="602"/><char idx="157" wdt="602"/><char idx="158" wdt="602"/><char idx="159" wdt="602"/><char idx="160" wdt="602"/><char idx="161" wdt="602"/><char idx="162" wdt="602"/><char idx="163" wdt="602"/><char idx="164" wdt="602"/><char idx="165" wdt="602"/><char idx="166" wdt="602"/><char idx="167" wdt="602"/><char idx="168" wdt="602"/><char idx="169" wdt="602"/><char idx="170" wdt="602"/><char idx="171" wdt="602"/><char idx="172" wdt="602"/><char idx="173" wdt="602"/><char idx="174" wdt="602"/><char idx="175" wdt="602"/><char idx="176" wdt="602"/><char idx="177" wdt="602"/><char idx="178" wdt="602"/><char idx="179" wdt="602"/><char idx="180" wdt="602"/><char idx="181" wdt="602"/><char idx="182" wdt="602"/><char idx="183" wdt="602"/><char idx="184" wdt="602"/><char idx="185" wdt="602"/><char idx="186" wdt="602"/><char idx="187" wdt="602"/><char idx="188" wdt="602"/><char idx="189" wdt="602"/><char idx="190" wdt="602"/><char idx="191" wdt="602"/><char idx="192" wdt="602"/><char idx="193" wdt="602"/><char idx="194" wdt="602"/><char idx="195" wdt="602"/><char idx="196" wdt="602"/><char idx="197" wdt="602"/><char idx="198" wdt="602"/><char idx="199" wdt="602"/><char idx="200" wdt="602"/><char idx="201" wdt="602"/><char idx="202" wdt="602"/><char idx="203" wdt="602"/><char idx="204" wdt="602"/><char idx="205" wdt="602"/><char idx="206" wdt="602"/><char idx="207" wdt="602"/><char idx="208" wdt="602"/><char idx="209" wdt="602"/><char idx="210" wdt="602"/><char idx="211" wdt="602"/><char idx="212" wdt="602"/><char idx="213" wdt="602"/><char idx="214" wdt="602"/><char idx="215" wdt="602"/><char idx="216" wdt="602"/><char idx="217" wdt="602"/><char idx="218" wdt="602"/><char idx="219" wdt="602"/><char idx="220" wdt="602"/><char idx="221" wdt="602"/><char idx="222" wdt="602"/><char idx="223" wdt="602"/><char idx="224" wdt="602"/><char idx="225" wdt="602"/><char idx="226" wdt="602"/><char idx="227" wdt="602"/><char idx="228" wdt="602"/><char idx="229" wdt="602"/><char idx="230" wdt="602"/><char idx="231" wdt="602"/><char idx="232" wdt="602"/><char idx="233" wdt="602"/><char idx="234" wdt="602"/><char idx="235" wdt="602"/><char idx="236" wdt="602"/><char idx="237" wdt="602"/><char idx="238" wdt="602"/><char idx="239" wdt="602"/><char idx="240" wdt="602"/><char idx="241" wdt="602"/><char idx="242" wdt="602"/><char idx="243" wdt="602"/><char idx="244" wdt="602"/><char idx="245" wdt="602"/><char idx="246" wdt="602"/><char idx="247" wdt="602"/><char idx="248" wdt="602"/><char idx="249" wdt="602"/><char idx="250" wdt="602"/><char idx="251" wdt="602"/><char idx="252" wdt="602"/><char idx="253" wdt="602"/><char idx="254" wdt="602"/><char idx="255" wdt="602"/></widths></singlebyte-extras></font-metrics> \ No newline at end of file
diff --git a/handbook/poky-doc-tools/common/VeraMono.ttf b/handbook/poky-doc-tools/common/VeraMono.ttf
new file mode 100644
index 0000000000..139f0b4311
--- /dev/null
+++ b/handbook/poky-doc-tools/common/VeraMono.ttf
Binary files differ
diff --git a/handbook/poky-doc-tools/common/VeraMono.xml b/handbook/poky-doc-tools/common/VeraMono.xml
new file mode 100644
index 0000000000..61607b453a
--- /dev/null
+++ b/handbook/poky-doc-tools/common/VeraMono.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><font-metrics type="TRUETYPE"><font-name>BitstreamVeraSansMono</font-name><embed/><cap-height>729</cap-height><x-height>546</x-height><ascender>928</ascender><descender>-235</descender><bbox><left>-4</left><bottom>-235</bottom><right>605</right><top>928</top></bbox><flags>34</flags><stemv>0</stemv><italicangle>0</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char idx="0" wdt="602"/><char idx="1" wdt="602"/><char idx="2" wdt="602"/><char idx="3" wdt="602"/><char idx="4" wdt="602"/><char idx="5" wdt="602"/><char idx="6" wdt="602"/><char idx="7" wdt="602"/><char idx="8" wdt="602"/><char idx="9" wdt="602"/><char idx="10" wdt="602"/><char idx="11" wdt="602"/><char idx="12" wdt="602"/><char idx="13" wdt="602"/><char idx="14" wdt="602"/><char idx="15" wdt="602"/><char idx="16" wdt="602"/><char idx="17" wdt="602"/><char idx="18" wdt="602"/><char idx="19" wdt="602"/><char idx="20" wdt="602"/><char idx="21" wdt="602"/><char idx="22" wdt="602"/><char idx="23" wdt="602"/><char idx="24" wdt="602"/><char idx="25" wdt="602"/><char idx="26" wdt="602"/><char idx="27" wdt="602"/><char idx="28" wdt="602"/><char idx="29" wdt="602"/><char idx="30" wdt="602"/><char idx="31" wdt="602"/><char idx="32" wdt="602"/><char idx="33" wdt="602"/><char idx="34" wdt="602"/><char idx="35" wdt="602"/><char idx="36" wdt="602"/><char idx="37" wdt="602"/><char idx="38" wdt="602"/><char idx="39" wdt="602"/><char idx="40" wdt="602"/><char idx="41" wdt="602"/><char idx="42" wdt="602"/><char idx="43" wdt="602"/><char idx="44" wdt="602"/><char idx="45" wdt="602"/><char idx="46" wdt="602"/><char idx="47" wdt="602"/><char idx="48" wdt="602"/><char idx="49" wdt="602"/><char idx="50" wdt="602"/><char idx="51" wdt="602"/><char idx="52" wdt="602"/><char idx="53" wdt="602"/><char idx="54" wdt="602"/><char idx="55" wdt="602"/><char idx="56" wdt="602"/><char idx="57" wdt="602"/><char idx="58" wdt="602"/><char idx="59" wdt="602"/><char idx="60" wdt="602"/><char idx="61" wdt="602"/><char idx="62" wdt="602"/><char idx="63" wdt="602"/><char idx="64" wdt="602"/><char idx="65" wdt="602"/><char idx="66" wdt="602"/><char idx="67" wdt="602"/><char idx="68" wdt="602"/><char idx="69" wdt="602"/><char idx="70" wdt="602"/><char idx="71" wdt="602"/><char idx="72" wdt="602"/><char idx="73" wdt="602"/><char idx="74" wdt="602"/><char idx="75" wdt="602"/><char idx="76" wdt="602"/><char idx="77" wdt="602"/><char idx="78" wdt="602"/><char idx="79" wdt="602"/><char idx="80" wdt="602"/><char idx="81" wdt="602"/><char idx="82" wdt="602"/><char idx="83" wdt="602"/><char idx="84" wdt="602"/><char idx="85" wdt="602"/><char idx="86" wdt="602"/><char idx="87" wdt="602"/><char idx="88" wdt="602"/><char idx="89" wdt="602"/><char idx="90" wdt="602"/><char idx="91" wdt="602"/><char idx="92" wdt="602"/><char idx="93" wdt="602"/><char idx="94" wdt="602"/><char idx="95" wdt="602"/><char idx="96" wdt="602"/><char idx="97" wdt="602"/><char idx="98" wdt="602"/><char idx="99" wdt="602"/><char idx="100" wdt="602"/><char idx="101" wdt="602"/><char idx="102" wdt="602"/><char idx="103" wdt="602"/><char idx="104" wdt="602"/><char idx="105" wdt="602"/><char idx="106" wdt="602"/><char idx="107" wdt="602"/><char idx="108" wdt="602"/><char idx="109" wdt="602"/><char idx="110" wdt="602"/><char idx="111" wdt="602"/><char idx="112" wdt="602"/><char idx="113" wdt="602"/><char idx="114" wdt="602"/><char idx="115" wdt="602"/><char idx="116" wdt="602"/><char idx="117" wdt="602"/><char idx="118" wdt="602"/><char idx="119" wdt="602"/><char idx="120" wdt="602"/><char idx="121" wdt="602"/><char idx="122" wdt="602"/><char idx="123" wdt="602"/><char idx="124" wdt="602"/><char idx="125" wdt="602"/><char idx="126" wdt="602"/><char idx="127" wdt="602"/><char idx="128" wdt="602"/><char idx="129" wdt="602"/><char idx="130" wdt="602"/><char idx="131" wdt="602"/><char idx="132" wdt="602"/><char idx="133" wdt="602"/><char idx="134" wdt="602"/><char idx="135" wdt="602"/><char idx="136" wdt="602"/><char idx="137" wdt="602"/><char idx="138" wdt="602"/><char idx="139" wdt="602"/><char idx="140" wdt="602"/><char idx="141" wdt="602"/><char idx="142" wdt="602"/><char idx="143" wdt="602"/><char idx="144" wdt="602"/><char idx="145" wdt="602"/><char idx="146" wdt="602"/><char idx="147" wdt="602"/><char idx="148" wdt="602"/><char idx="149" wdt="602"/><char idx="150" wdt="602"/><char idx="151" wdt="602"/><char idx="152" wdt="602"/><char idx="153" wdt="602"/><char idx="154" wdt="602"/><char idx="155" wdt="602"/><char idx="156" wdt="602"/><char idx="157" wdt="602"/><char idx="158" wdt="602"/><char idx="159" wdt="602"/><char idx="160" wdt="602"/><char idx="161" wdt="602"/><char idx="162" wdt="602"/><char idx="163" wdt="602"/><char idx="164" wdt="602"/><char idx="165" wdt="602"/><char idx="166" wdt="602"/><char idx="167" wdt="602"/><char idx="168" wdt="602"/><char idx="169" wdt="602"/><char idx="170" wdt="602"/><char idx="171" wdt="602"/><char idx="172" wdt="602"/><char idx="173" wdt="602"/><char idx="174" wdt="602"/><char idx="175" wdt="602"/><char idx="176" wdt="602"/><char idx="177" wdt="602"/><char idx="178" wdt="602"/><char idx="179" wdt="602"/><char idx="180" wdt="602"/><char idx="181" wdt="602"/><char idx="182" wdt="602"/><char idx="183" wdt="602"/><char idx="184" wdt="602"/><char idx="185" wdt="602"/><char idx="186" wdt="602"/><char idx="187" wdt="602"/><char idx="188" wdt="602"/><char idx="189" wdt="602"/><char idx="190" wdt="602"/><char idx="191" wdt="602"/><char idx="192" wdt="602"/><char idx="193" wdt="602"/><char idx="194" wdt="602"/><char idx="195" wdt="602"/><char idx="196" wdt="602"/><char idx="197" wdt="602"/><char idx="198" wdt="602"/><char idx="199" wdt="602"/><char idx="200" wdt="602"/><char idx="201" wdt="602"/><char idx="202" wdt="602"/><char idx="203" wdt="602"/><char idx="204" wdt="602"/><char idx="205" wdt="602"/><char idx="206" wdt="602"/><char idx="207" wdt="602"/><char idx="208" wdt="602"/><char idx="209" wdt="602"/><char idx="210" wdt="602"/><char idx="211" wdt="602"/><char idx="212" wdt="602"/><char idx="213" wdt="602"/><char idx="214" wdt="602"/><char idx="215" wdt="602"/><char idx="216" wdt="602"/><char idx="217" wdt="602"/><char idx="218" wdt="602"/><char idx="219" wdt="602"/><char idx="220" wdt="602"/><char idx="221" wdt="602"/><char idx="222" wdt="602"/><char idx="223" wdt="602"/><char idx="224" wdt="602"/><char idx="225" wdt="602"/><char idx="226" wdt="602"/><char idx="227" wdt="602"/><char idx="228" wdt="602"/><char idx="229" wdt="602"/><char idx="230" wdt="602"/><char idx="231" wdt="602"/><char idx="232" wdt="602"/><char idx="233" wdt="602"/><char idx="234" wdt="602"/><char idx="235" wdt="602"/><char idx="236" wdt="602"/><char idx="237" wdt="602"/><char idx="238" wdt="602"/><char idx="239" wdt="602"/><char idx="240" wdt="602"/><char idx="241" wdt="602"/><char idx="242" wdt="602"/><char idx="243" wdt="602"/><char idx="244" wdt="602"/><char idx="245" wdt="602"/><char idx="246" wdt="602"/><char idx="247" wdt="602"/><char idx="248" wdt="602"/><char idx="249" wdt="602"/><char idx="250" wdt="602"/><char idx="251" wdt="602"/><char idx="252" wdt="602"/><char idx="253" wdt="602"/><char idx="254" wdt="602"/><char idx="255" wdt="602"/></widths></singlebyte-extras></font-metrics> \ No newline at end of file
diff --git a/handbook/poky-doc-tools/common/draft.png b/handbook/poky-doc-tools/common/draft.png
new file mode 100644
index 0000000000..53051a9ddd
--- /dev/null
+++ b/handbook/poky-doc-tools/common/draft.png
Binary files differ
diff --git a/handbook/poky-doc-tools/common/fop-config.xml.in b/handbook/poky-doc-tools/common/fop-config.xml.in
new file mode 100644
index 0000000000..649ccb566f
--- /dev/null
+++ b/handbook/poky-doc-tools/common/fop-config.xml.in
@@ -0,0 +1,33 @@
+<configuration>
+ <entry>
+ <!--
+ Set the baseDir so common/openedhand.svg references in plans still
+ work ok. Note, relative file references to current dir should still work.
+ -->
+ <key>baseDir</key>
+ <value>@datadir@</value>
+ </entry>
+ <fonts>
+ <font metrics-file="@datadir@/common/VeraMono.xml"
+ kerning="yes"
+ embed-file="@datadir@/common/VeraMono.ttf">
+ <font-triplet name="veramono" style="normal" weight="normal"/>
+ </font>
+
+ <font metrics-file="@datadir@/common/VeraMoBd.xml"
+ kerning="yes"
+ embed-file="@datadir@/common/VeraMoBd.ttf">
+ <font-triplet name="veramono" style="normal" weight="bold"/>
+ </font>
+
+ <font metrics-file="@datadir@/common/Vera.xml"
+ kerning="yes"
+ embed-file="@datadir@/common/Vera.ttf">
+ <font-triplet name="verasans" style="normal" weight="normal"/>
+ <font-triplet name="verasans" style="normal" weight="bold"/>
+ <font-triplet name="verasans" style="italic" weight="normal"/>
+ <font-triplet name="verasans" style="italic" weight="bold"/>
+ </font>
+
+ </fonts>
+</configuration> \ No newline at end of file
diff --git a/handbook/poky-doc-tools/common/ohand-color.svg b/handbook/poky-doc-tools/common/ohand-color.svg
new file mode 100644
index 0000000000..e42ff9c6fc
--- /dev/null
+++ b/handbook/poky-doc-tools/common/ohand-color.svg
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://web.resource.org/cc/"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="141.17999"
+ height="55.34"
+ id="svg2207"
+ sodipodi:version="0.32"
+ inkscape:version="0.45"
+ version="1.0"
+ sodipodi:docname="ohand-color.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape"
+ sodipodi:docbase="/home/mallum/Projects/admin/oh-doc-tools/common"
+ sodipodi:modified="true">
+ <defs
+ id="defs3" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="1.2"
+ inkscape:cx="160"
+ inkscape:cy="146.21189"
+ inkscape:document-units="mm"
+ inkscape:current-layer="layer1"
+ height="55.34px"
+ width="141.18px"
+ inkscape:window-width="772"
+ inkscape:window-height="581"
+ inkscape:window-x="5"
+ inkscape:window-y="48" />
+ <metadata
+ id="metadata2211">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <g
+ id="g2094"
+ style="fill:#6d6d70;fill-opacity:1"
+ inkscape:export-filename="/home/mallum/Desktop/g2126.png"
+ inkscape:export-xdpi="312.71841"
+ inkscape:export-ydpi="312.71841"
+ transform="matrix(0.5954767,0,0,0.5954767,31.793058,-18.471052)">
+ <g
+ id="g19"
+ style="fill:#6d6d70;fill-opacity:1">
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path21"
+ d="M 48.693,50.633 C 40.282,50.633 33.439,57.477 33.439,65.888 L 33.439,81.142 L 41.066,81.142 L 41.066,65.888 C 41.066,61.684 44.486,58.261 48.692,58.261 C 52.897,58.261 56.32,61.684 56.32,65.888 C 56.32,70.093 52.897,73.516 48.692,73.516 C 45.677,73.516 43.065,71.756 41.828,69.211 L 41.828,79.504 C 43.892,80.549 46.224,81.142 48.692,81.142 C 57.103,81.142 63.947,74.3 63.947,65.888 C 63.948,57.477 57.104,50.633 48.693,50.633 z " />
+ </g>
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path23"
+ d="M 18.486,50.557 C 26.942,50.557 33.819,57.435 33.819,65.888 C 33.819,74.344 26.942,81.223 18.486,81.223 C 10.032,81.223 3.152,74.344 3.152,65.888 C 3.152,57.435 10.032,50.557 18.486,50.557 z M 18.486,73.556 C 22.713,73.556 26.153,70.118 26.153,65.888 C 26.153,61.661 22.713,58.222 18.486,58.222 C 14.258,58.222 10.819,61.661 10.819,65.888 C 10.82,70.117 14.259,73.556 18.486,73.556 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path25"
+ d="M 94.074,107.465 L 94.074,96.016 C 94.074,87.605 87.233,80.763 78.822,80.763 C 70.41,80.763 63.567,87.605 63.567,96.016 C 63.567,104.427 70.41,111.269 78.822,111.269 C 81.289,111.269 83.621,110.676 85.685,109.631 L 85.685,99.339 C 84.448,101.885 81.836,103.644 78.822,103.644 C 74.615,103.644 71.194,100.221 71.194,96.016 C 71.194,91.81 74.615,88.388 78.822,88.388 C 83.026,88.388 86.448,91.81 86.448,96.016 L 86.448,107.456 C 86.448,109.562 88.156,111.268 90.262,111.268 C 92.364,111.269 94.068,109.566 94.074,107.465 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path27"
+ d="M 124.197,95.814 C 124.088,87.496 117.293,80.762 108.949,80.762 C 100.59,80.762 93.783,87.52 93.697,95.856 L 93.693,95.856 L 93.695,107.456 C 93.695,109.562 95.402,111.268 97.509,111.268 C 99.611,111.268 101.316,109.566 101.321,107.464 L 101.321,95.994 L 101.321,95.994 C 101.333,91.798 104.747,88.388 108.948,88.388 C 113.147,88.388 116.563,91.798 116.575,95.994 L 116.575,107.456 C 116.575,109.562 118.282,111.268 120.387,111.268 C 122.492,111.268 124.201,109.562 124.201,107.456 L 124.201,95.814 L 124.197,95.814 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path29"
+ d="M 63.946,96.005 L 63.946,95.854 L 63.943,95.854 L 63.943,95.815 L 63.942,95.815 C 63.833,87.497 57.037,80.761 48.693,80.761 C 48.682,80.761 48.671,80.763 48.658,80.763 C 48.382,80.763 48.107,80.772 47.833,80.786 C 47.75,80.791 47.668,80.799 47.586,80.806 C 47.378,80.822 47.172,80.838 46.968,80.862 C 46.884,80.873 46.801,80.882 46.719,80.893 C 46.508,80.92 46.298,80.952 46.091,80.987 C 46.024,80.999 45.958,81.01 45.891,81.024 C 45.649,81.068 45.406,81.119 45.168,81.175 C 45.14,81.183 45.112,81.189 45.085,81.195 C 43.656,81.542 42.306,82.092 41.065,82.812 L 41.065,80.761 L 33.438,80.761 L 33.438,95.857 L 33.435,95.857 L 33.435,107.457 C 33.435,109.563 35.142,111.269 37.248,111.269 C 39.093,111.269 40.632,109.958 40.984,108.217 C 41.036,107.963 41.065,107.702 41.065,107.435 L 41.065,95.873 C 41.086,94.732 41.357,93.65 41.828,92.685 L 41.828,92.693 C 42.598,91.106 43.905,89.824 45.511,89.085 C 45.519,89.08 45.529,89.076 45.536,89.073 C 45.849,88.928 46.174,88.807 46.508,88.707 C 46.523,88.704 46.536,88.699 46.55,88.696 C 46.699,88.651 46.85,88.614 47.004,88.576 C 47.025,88.575 47.046,88.567 47.069,88.562 C 47.234,88.527 47.402,88.495 47.572,88.469 C 47.586,88.468 47.6,88.466 47.615,88.463 C 47.763,88.443 47.916,88.427 48.067,88.415 C 48.106,88.41 48.145,88.407 48.186,88.404 C 48.352,88.393 48.52,88.386 48.691,88.386 C 52.888,88.387 56.304,91.797 56.316,95.992 L 56.316,107.454 C 56.316,109.56 58.023,111.266 60.13,111.266 C 61.976,111.266 63.516,109.954 63.867,108.211 C 63.919,107.963 63.946,107.706 63.946,107.442 L 63.946,96.024 C 63.946,96.021 63.947,96.018 63.947,96.015 C 63.948,96.011 63.946,96.008 63.946,96.005 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path31"
+ d="M 180.644,50.633 C 178.539,50.633 176.832,52.341 176.832,54.447 L 176.832,65.887 C 176.832,70.092 173.41,73.513 169.203,73.513 C 164.998,73.513 161.576,70.092 161.576,65.887 C 161.576,61.683 164.998,58.26 169.203,58.26 C 172.219,58.26 174.83,60.019 176.068,62.565 L 176.068,52.271 C 174.004,51.225 171.673,50.632 169.203,50.632 C 160.793,50.632 153.951,57.476 153.951,65.887 C 153.951,74.298 160.793,81.141 169.203,81.141 C 177.615,81.141 184.459,74.298 184.459,65.887 L 184.459,54.447 C 184.458,52.341 182.751,50.633 180.644,50.633 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path33"
+ d="M 124.203,77.339 L 124.203,65.687 L 124.197,65.687 C 124.088,57.371 117.293,50.633 108.949,50.633 C 100.592,50.633 93.783,57.393 93.697,65.731 L 93.695,65.731 L 93.695,65.877 C 93.695,65.882 93.693,65.885 93.693,65.888 C 93.693,65.891 93.695,65.896 93.695,65.899 L 93.695,77.33 C 93.695,79.435 95.402,81.142 97.509,81.142 C 99.614,81.142 101.321,79.435 101.321,77.33 L 101.321,65.868 C 101.333,61.672 104.747,58.261 108.948,58.261 C 113.147,58.261 116.563,61.672 116.575,65.868 L 116.575,65.868 L 116.575,77.329 C 116.575,79.434 118.282,81.141 120.389,81.141 C 122.492,81.142 124.197,79.44 124.203,77.339 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path35"
+ d="M 150.517,80.761 C 148.41,80.761 146.703,82.469 146.703,84.575 L 146.703,96.015 C 146.703,100.22 143.283,103.643 139.076,103.643 C 134.871,103.643 131.449,100.22 131.449,96.015 C 131.449,91.808 134.871,88.387 139.076,88.387 C 142.092,88.387 144.703,90.145 145.941,92.692 L 145.941,82.397 C 143.875,81.353 141.545,80.76 139.076,80.76 C 130.666,80.76 123.822,87.604 123.822,96.015 C 123.822,104.426 130.666,111.268 139.076,111.268 C 147.486,111.268 154.33,104.426 154.33,96.015 L 154.33,84.575 C 154.33,82.469 152.623,80.761 150.517,80.761 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path37"
+ d="M 82.625,77.345 C 82.625,75.247 80.923,73.547 78.826,73.547 L 78.826,81.142 C 80.922,81.142 82.625,79.442 82.625,77.345 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path39"
+ d="M 90.252,69.685 C 92.35,69.685 94.048,67.987 94.048,65.888 L 86.453,65.888 C 86.453,67.986 88.154,69.685 90.252,69.685 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path41"
+ d="M 93.832,77.329 C 93.832,75.223 92.125,73.516 90.018,73.516 L 78.825,73.516 C 74.619,73.516 71.199,70.093 71.199,65.888 C 71.199,61.684 74.619,58.261 78.825,58.261 C 83.032,58.261 86.453,61.684 86.453,65.888 C 86.453,68.904 84.694,71.514 82.149,72.752 L 92.442,72.752 C 93.488,70.689 94.08,68.356 94.08,65.888 C 94.08,57.477 87.237,50.633 78.826,50.633 C 70.415,50.633 63.571,57.477 63.571,65.888 C 63.571,74.3 70.415,81.142 78.826,81.142 L 90.018,81.142 C 92.125,81.142 93.832,79.435 93.832,77.329 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path43"
+ d="M 142.869,77.345 C 142.869,75.247 141.168,73.547 139.07,73.547 L 139.07,81.142 C 141.167,81.142 142.869,79.442 142.869,77.345 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path45"
+ d="M 150.496,69.685 C 152.594,69.685 154.293,67.987 154.293,65.888 L 146.699,65.888 C 146.699,67.986 148.398,69.685 150.496,69.685 z " />
+ <path
+ style="fill:#6d6d70;fill-opacity:1"
+ id="path47"
+ d="M 154.076,77.329 C 154.076,75.223 152.367,73.516 150.262,73.516 L 139.07,73.516 C 134.865,73.516 131.443,70.093 131.443,65.888 C 131.443,61.684 134.865,58.261 139.07,58.261 C 143.275,58.261 146.699,61.684 146.699,65.888 C 146.699,68.904 144.939,71.514 142.392,72.752 L 152.687,72.752 C 153.73,70.689 154.324,68.356 154.324,65.888 C 154.324,57.477 147.48,50.633 139.07,50.633 C 130.66,50.633 123.816,57.477 123.816,65.888 C 123.816,74.3 130.66,81.142 139.07,81.142 L 150.261,81.142 C 152.367,81.142 154.076,79.435 154.076,77.329 z " />
+ </g>
+ <g
+ id="g2126"
+ transform="matrix(0.7679564,0,0,0.7679564,-66.520631,11.42903)"
+ inkscape:export-xdpi="312.71841"
+ inkscape:export-ydpi="312.71841"
+ style="fill:#35992a;fill-opacity:1">
+ <g
+ transform="translate(86.33975,4.23985e-2)"
+ style="fill:#35992a;fill-opacity:1"
+ id="g2114">
+ <g
+ style="fill:#35992a;fill-opacity:1"
+ id="g2116">
+ <path
+ id="path2118"
+ transform="translate(-86.33975,-4.239934e-2)"
+ d="M 89.96875,0.03125 C 87.962748,0.031250001 86.34375,1.6815001 86.34375,3.6875 L 86.34375,17.71875 L 86.34375,19.6875 L 86.34375,28.90625 C 86.343752,39.06825 94.61925,47.34375 104.78125,47.34375 L 113.375,47.34375 L 123.1875,47.34375 L 127.15625,47.34375 C 129.16325,47.343749 130.8125,45.72475 130.8125,43.71875 C 130.8125,41.71275 129.16325,40.09375 127.15625,40.09375 L 123.1875,40.09375 L 123.1875,19.6875 L 123.1875,14.65625 L 123.1875,3.6875 C 123.1875,1.6815 121.5675,0.03125 119.5625,0.03125 C 117.5555,0.031250001 115.9375,1.6815001 115.9375,3.6875 L 115.9375,14.28125 C 115.1185,13.65425 114.26275,13.109 113.34375,12.625 L 113.34375,3.6875 C 113.34475,1.6815 111.6925,0.03125 109.6875,0.03125 C 107.6825,0.031250001 106.0625,1.6815001 106.0625,3.6875 L 106.0625,10.5625 C 105.6305,10.5325 105.22025,10.5 104.78125,10.5 C 104.34125,10.5 103.90075,10.5325 103.46875,10.5625 L 103.46875,3.6875 C 103.46975,1.6815 101.84975,0.03125 99.84375,0.03125 C 97.837749,0.031250001 96.21875,1.6815001 96.21875,3.6875 L 96.21875,12.625 C 95.299754,13.109 94.41375,13.65425 93.59375,14.28125 L 93.59375,3.6875 C 93.59475,1.6815 91.97475,0.03125 89.96875,0.03125 z M 104.78125,14.34375 C 112.80825,14.34375 119.3125,20.87925 119.3125,28.90625 C 119.3125,36.93325 112.80825,43.46875 104.78125,43.46875 C 96.754254,43.46875 90.21875,36.93425 90.21875,28.90625 C 90.218752,20.87825 96.753253,14.34375 104.78125,14.34375 z "
+ style="fill:#35992a;fill-opacity:1" />
+ </g>
+ </g>
+ <path
+ style="fill:#35992a;fill-opacity:1"
+ id="path2122"
+ d="M 112.04875,28.913399 C 112.04875,24.899399 108.78275,21.634399 104.76975,21.634399 C 100.75675,21.634399 97.490753,24.900399 97.490753,28.913399 C 97.490753,32.926399 100.75675,36.192399 104.76975,36.192399 C 108.78275,36.192399 112.04875,32.927399 112.04875,28.913399 z " />
+ </g>
+ </g>
+</svg>
diff --git a/handbook/poky-doc-tools/common/poky-db-pdf.xsl b/handbook/poky-doc-tools/common/poky-db-pdf.xsl
new file mode 100644
index 0000000000..d1452eb0bb
--- /dev/null
+++ b/handbook/poky-doc-tools/common/poky-db-pdf.xsl
@@ -0,0 +1,64 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
+
+ <xsl:import href="file:///usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl"/>
+
+ <!-- check project-plan.sh for how this is generated, needed to tweak
+ the cover page
+ -->
+ <xsl:include href="/tmp/titlepage.xsl"/>
+
+ <!-- To force a page break in document, i.e per section add a
+ <?hard-pagebreak?> tag.
+ -->
+ <xsl:template match="processing-instruction('hard-pagebreak')">
+ <fo:block break-before='page' />
+ </xsl:template>
+
+ <!--Fix for defualt indent getting TOC all wierd..
+ See http://sources.redhat.com/ml/docbook-apps/2005-q1/msg00455.html
+ FIXME: must be a better fix
+ -->
+ <xsl:param name="body.start.indent" select="'0'"/>
+ <!--<xsl:param name="title.margin.left" select="'0'"/>-->
+
+ <!-- stop long-ish header titles getting wrapped -->
+ <xsl:param name="header.column.widths">1 10 1</xsl:param>
+
+ <!-- customise headers and footers a little -->
+
+ <xsl:template name="head.sep.rule">
+ <xsl:if test="$header.rule != 0">
+ <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
+ <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
+ <xsl:attribute name="border-bottom-color">#cccccc</xsl:attribute>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="foot.sep.rule">
+ <xsl:if test="$footer.rule != 0">
+ <xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
+ <xsl:attribute name="border-top-style">solid</xsl:attribute>
+ <xsl:attribute name="border-top-color">#cccccc</xsl:attribute>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:attribute-set name="header.content.properties">
+ <xsl:attribute name="color">#cccccc</xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:attribute-set name="footer.content.properties">
+ <xsl:attribute name="color">#cccccc</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!-- general settings -->
+
+ <xsl:param name="fop.extensions" select="1"></xsl:param>
+ <xsl:param name="paper.type" select="'A4'"></xsl:param>
+ <xsl:param name="section.autolabel" select="1"></xsl:param>
+ <xsl:param name="body.font.family" select="'verasans'"></xsl:param>
+ <xsl:param name="title.font.family" select="'verasans'"></xsl:param>
+ <xsl:param name="monospace.font.family" select="'veramono'"></xsl:param>
+
+</xsl:stylesheet>
diff --git a/handbook/poky-doc-tools/common/poky-handbook.png b/handbook/poky-doc-tools/common/poky-handbook.png
new file mode 100644
index 0000000000..2085edb467
--- /dev/null
+++ b/handbook/poky-doc-tools/common/poky-handbook.png
Binary files differ
diff --git a/handbook/poky-doc-tools/common/poky.svg b/handbook/poky-doc-tools/common/poky.svg
new file mode 100644
index 0000000000..a4ea5e2f45
--- /dev/null
+++ b/handbook/poky-doc-tools/common/poky.svg
@@ -0,0 +1,163 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.0"
+ width="158.56076"
+ height="79.284424"
+ viewBox="-40.981 -92.592 300 300"
+ id="svg2"
+ xml:space="preserve">
+<defs
+ id="defs4">
+</defs>
+<path
+ d="M -36.585379,54.412576 L -36.585379,54.421305 L -36.582469,54.421305 L -36.582469,54.243829 C -36.57956,54.302018 -36.585379,54.357297 -36.585379,54.412576 z "
+ style="fill:#6ac7bd"
+ id="path6" />
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g8">
+ <g
+ id="g10">
+ <path
+ d="M 24.482,23.998 L 24.482,23.995 C 10.961,23.994 0,34.955 0,48.476 L 0.001,48.479 L 0.001,48.482 C 0.003,62.001 10.962,72.96 24.482,72.96 L 24.482,72.96 L 0,72.96 L 0,97.442 L 0.003,97.442 C 13.523,97.44 24.482,86.48 24.482,72.961 L 24.485,72.961 C 38.005,72.959 48.963,62 48.963,48.479 L 48.963,48.476 C 48.962,34.957 38.001,23.998 24.482,23.998 z M 24.482,50.928 C 23.13,50.928 22.034,49.832 22.034,48.48 C 22.034,47.128 23.13,46.032 24.482,46.032 C 25.834,46.032 26.93,47.128 26.93,48.48 C 26.93,49.832 25.834,50.928 24.482,50.928 z "
+ style="fill:#ef412a"
+ id="path12" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g14">
+ <g
+ id="g16">
+ <path
+ d="M 119.96,48.842 C 120.024,47.548 121.086,46.516 122.397,46.516 C 123.707,46.516 124.768,47.548 124.833,48.843 C 137.211,47.62 146.879,37.181 146.879,24.483 L 122.397,24.483 C 122.396,10.961 111.435,0 97.915,0 L 97.915,24.485 C 97.917,37.183 107.584,47.619 119.96,48.842 z M 124.833,49.084 C 124.769,50.379 123.707,51.411 122.397,51.411 L 122.396,51.411 L 122.396,73.444 L 146.878,73.444 L 146.878,73.441 C 146.876,60.745 137.208,50.308 124.833,49.084 z M 119.949,48.963 L 97.915,48.963 L 97.915,73.442 L 97.915,73.442 C 110.613,73.442 121.052,63.774 122.275,51.399 C 120.981,51.334 119.949,50.274 119.949,48.963 z "
+ style="fill:#a9c542"
+ id="path18" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g20">
+ <g
+ id="g22">
+ <path
+ d="M 168.912,48.967 C 168.912,47.656 169.945,46.596 171.24,46.531 C 170.018,34.152 159.579,24.482 146.879,24.482 L 146.879,48.963 C 146.879,62.484 157.84,73.444 171.361,73.444 L 171.361,51.414 C 170.007,51.415 168.912,50.319 168.912,48.967 z M 195.841,48.978 C 195.841,48.973 195.842,48.969 195.842,48.964 L 195.842,24.482 L 195.838,24.482 C 183.14,24.484 172.702,34.154 171.482,46.531 C 172.776,46.595 173.808,47.656 173.808,48.967 C 173.808,50.278 172.776,51.339 171.481,51.403 C 172.679,63.59 182.814,73.146 195.244,73.445 L 171.361,73.445 L 171.361,97.927 L 171.364,97.927 C 184.879,97.925 195.834,86.973 195.842,73.46 L 195.844,73.46 L 195.844,48.979 L 195.841,48.978 z M 195.832,48.964 L 195.842,48.964 L 195.842,48.978 L 195.832,48.964 z "
+ style="fill:#f9c759"
+ id="path24" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g26">
+ <g
+ id="g28">
+ <path
+ d="M 70.994,48.479 L 48.962,48.479 L 48.962,48.481 L 70.995,48.481 C 70.995,48.481 70.994,48.48 70.994,48.479 z M 73.44,24.001 L 73.437,24.001 L 73.437,46.032 C 73.439,46.032 73.44,46.032 73.442,46.032 C 74.794,46.032 75.89,47.128 75.89,48.48 C 75.89,49.832 74.794,50.928 73.442,50.928 C 72.091,50.928 70.996,49.834 70.994,48.483 L 48.958,48.483 L 48.958,48.486 C 48.96,62.005 59.919,72.964 73.437,72.964 C 86.955,72.964 97.914,62.005 97.916,48.486 L 97.916,48.483 C 97.916,34.963 86.958,24.003 73.44,24.001 z "
+ style="fill:#6ac7bd"
+ id="path30" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g32">
+ <g
+ id="g34">
+ <path
+ d="M 24.482,23.998 L 24.482,23.995 C 10.961,23.994 0,34.955 0,48.476 L 22.034,48.476 C 22.036,47.125 23.131,46.031 24.482,46.031 C 25.834,46.031 26.93,47.127 26.93,48.479 C 26.93,49.831 25.834,50.927 24.482,50.927 L 24.482,72.937 C 24.469,59.427 13.514,48.479 0,48.479 L 0,72.96 L 24.481,72.96 L 24.481,72.96 L 0,72.96 L 0,97.442 L 0.003,97.442 C 13.523,97.44 24.482,86.48 24.482,72.961 L 24.485,72.961 C 38.005,72.959 48.963,62 48.963,48.479 L 48.963,48.476 C 48.962,34.957 38.001,23.998 24.482,23.998 z "
+ style="fill:#ef412a"
+ id="path36" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g38">
+ <g
+ id="g40">
+ <path
+ d="M 122.397,46.516 C 123.707,46.516 124.768,47.548 124.833,48.843 C 137.211,47.62 146.879,37.181 146.879,24.483 L 122.397,24.483 L 122.397,46.516 L 122.397,46.516 z M 97.915,0 L 97.915,24.482 L 122.396,24.482 C 122.396,10.961 111.435,0 97.915,0 z M 122.275,46.528 C 121.052,34.151 110.613,24.482 97.914,24.482 L 97.914,48.964 L 97.914,48.964 L 97.914,73.443 L 97.914,73.443 C 110.612,73.443 121.051,63.775 122.274,51.4 C 120.98,51.335 119.948,50.275 119.948,48.964 C 119.949,47.653 120.98,46.593 122.275,46.528 z M 124.833,49.084 C 124.769,50.379 123.707,51.411 122.397,51.411 L 122.396,51.411 L 122.396,73.444 L 146.878,73.444 L 146.878,73.441 C 146.876,60.745 137.208,50.308 124.833,49.084 z "
+ style="fill:#a9c542"
+ id="path42" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g44">
+ <g
+ id="g46">
+ <path
+ d="M 173.795,49.1 C 173.724,50.389 172.666,51.415 171.36,51.415 C 170.006,51.415 168.911,50.319 168.911,48.967 C 168.911,47.656 169.944,46.596 171.239,46.531 C 170.017,34.152 159.578,24.482 146.878,24.482 L 146.878,48.963 C 146.878,62.484 157.839,73.444 171.36,73.444 L 171.36,97.926 L 171.363,97.926 C 184.878,97.924 195.833,86.972 195.841,73.459 L 195.842,73.459 L 195.842,73.443 L 195.841,73.443 C 195.833,60.753 186.167,50.322 173.795,49.1 z M 195.838,24.482 C 183.14,24.484 172.702,34.154 171.482,46.531 C 172.775,46.595 173.806,47.655 173.808,48.964 L 195.841,48.964 L 195.841,48.979 C 195.841,48.974 195.842,48.969 195.842,48.964 L 195.842,24.482 L 195.838,24.482 z "
+ style="fill:#f9c759"
+ id="path48" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g50">
+ <g
+ id="g52">
+ <path
+ d="M 71.007,48.347 C 71.075,47.105 72.062,46.117 73.304,46.046 C 72.509,38.02 67.85,31.133 61.201,27.284 C 57.601,25.2 53.424,24 48.965,24 L 48.962,24 C 48.962,28.46 50.161,32.638 52.245,36.24 C 56.093,42.891 62.98,47.552 71.007,48.347 z M 48.962,48.418 C 48.962,48.438 48.961,48.456 48.961,48.476 L 48.961,48.479 L 48.962,48.479 L 48.962,48.418 z M 70.995,48.482 C 70.995,48.481 70.995,48.481 70.995,48.48 L 48.962,48.48 L 48.962,48.482 L 70.995,48.482 z M 73.44,24.001 L 73.437,24.001 L 73.437,46.032 C 73.439,46.032 73.44,46.032 73.442,46.032 C 74.794,46.032 75.89,47.128 75.89,48.48 C 75.89,49.832 74.794,50.928 73.442,50.928 C 72.091,50.928 70.996,49.834 70.994,48.483 L 48.958,48.483 L 48.958,48.486 C 48.96,62.005 59.919,72.964 73.437,72.964 C 86.955,72.964 97.914,62.005 97.916,48.486 L 97.916,48.483 C 97.916,34.963 86.958,24.003 73.44,24.001 z "
+ style="fill:#6ac7bd"
+ id="path54" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g56">
+ <g
+ id="g58">
+ <path
+ d="M 24.482,23.998 L 24.482,23.995 C 10.961,23.994 0,34.955 0,48.476 L 22.034,48.476 C 22.036,47.125 23.131,46.031 24.482,46.031 C 25.834,46.031 26.93,47.127 26.93,48.479 C 26.93,49.831 25.834,50.927 24.482,50.927 C 23.171,50.927 22.11,49.894 22.046,48.6 C 9.669,49.824 0.001,60.262 0.001,72.96 L 0,72.96 L 0,97.442 L 0.003,97.442 C 13.523,97.44 24.482,86.48 24.482,72.961 L 24.485,72.961 C 38.005,72.959 48.963,62 48.963,48.479 L 48.963,48.476 C 48.962,34.957 38.001,23.998 24.482,23.998 z "
+ style="fill:#ef412a"
+ id="path60" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g62">
+ <g
+ id="g64">
+ <path
+ d="M 119.949,48.963 C 119.949,47.611 121.045,46.515 122.397,46.515 C 123.707,46.515 124.768,47.547 124.833,48.842 C 137.211,47.619 146.879,37.18 146.879,24.482 L 122.397,24.482 C 122.396,10.961 111.435,0 97.915,0 L 97.915,24.482 L 122.394,24.482 C 108.874,24.484 97.916,35.444 97.916,48.963 L 97.916,48.963 L 97.916,73.442 L 97.916,73.442 C 110.614,73.442 121.053,63.774 122.276,51.399 C 120.981,51.334 119.949,50.274 119.949,48.963 z M 124.833,49.084 C 124.769,50.379 123.707,51.411 122.397,51.411 L 122.396,51.411 L 122.396,73.444 L 146.878,73.444 L 146.878,73.441 C 146.876,60.745 137.208,50.308 124.833,49.084 z "
+ style="fill:#a9c542"
+ id="path66" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g68">
+ <g
+ id="g70">
+ <path
+ d="M 195.841,48.979 L 195.835,48.964 L 195.841,48.964 L 195.841,48.979 C 195.841,48.974 195.842,48.969 195.842,48.964 L 195.842,24.482 L 195.838,24.482 C 183.14,24.484 172.702,34.154 171.482,46.531 C 172.776,46.595 173.808,47.656 173.808,48.967 C 173.808,50.319 172.712,51.415 171.361,51.415 C 170.007,51.415 168.912,50.319 168.912,48.967 C 168.912,47.656 169.945,46.596 171.24,46.531 C 170.018,34.152 159.579,24.482 146.879,24.482 L 146.879,48.963 C 146.879,62.484 157.84,73.444 171.361,73.444 L 171.361,97.926 L 171.364,97.926 C 184.883,97.924 195.843,86.963 195.843,73.444 L 171.959,73.444 C 185.203,73.126 195.841,62.299 195.841,48.979 z "
+ style="fill:#f9c759"
+ id="path72" />
+ </g>
+</g>
+<g
+ transform="matrix(2.9094193,0,0,2.9094193,-179.03055,-86.624435)"
+ style="opacity:0.65"
+ id="g74">
+ <g
+ id="g76">
+ <path
+ d="M 73.44,24.001 L 73.437,24.001 C 59.919,24.003 48.96,34.959 48.958,48.476 L 48.958,48.479 L 48.961,48.479 L 48.961,48.481 L 48.957,48.482 L 48.957,48.485 C 48.959,62.004 59.918,72.963 73.436,72.963 C 86.954,72.963 97.913,62.004 97.915,48.485 L 97.915,48.482 C 97.916,34.963 86.958,24.003 73.44,24.001 z M 73.442,50.928 C 72.09,50.928 70.994,49.832 70.994,48.48 C 70.994,47.128 72.09,46.032 73.442,46.032 C 74.794,46.032 75.89,47.128 75.89,48.48 C 75.89,49.832 74.794,50.928 73.442,50.928 z "
+ style="fill:#6ac7bd"
+ id="path78" />
+ </g>
+</g>
+</svg> \ No newline at end of file
diff --git a/handbook/poky-doc-tools/common/titlepage.templates.xml b/handbook/poky-doc-tools/common/titlepage.templates.xml
new file mode 100644
index 0000000000..ff640fa5f2
--- /dev/null
+++ b/handbook/poky-doc-tools/common/titlepage.templates.xml
@@ -0,0 +1,1240 @@
+<!DOCTYPE t:templates [
+<!ENTITY hsize0 "10pt">
+<!ENTITY hsize1 "12pt">
+<!ENTITY hsize2 "14.4pt">
+<!ENTITY hsize3 "17.28pt">
+<!ENTITY hsize4 "20.736pt">
+<!ENTITY hsize5 "24.8832pt">
+<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
+<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
+<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
+<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
+<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
+<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
+]>
+<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
+ xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- ********************************************************************
+ $Id: titlepage.templates.xml,v 1.23 2003/12/16 00:30:49 bobstayton Exp $
+ ********************************************************************
+
+ This file is part of the DocBook XSL Stylesheet distribution.
+ See ../README or http://docbook.sf.net/ for copyright
+ and other information.
+
+ ******************************************************************** -->
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="article" t:wrapper="fo:block"
+ font-family="{$title.fontset}">
+
+ <t:titlepage-content t:side="recto"
+ text-align="center">
+
+ <mediaobject/>
+
+ <title t:named-template="component.title"
+ param:node="ancestor-or-self::article[1]"
+ keep-with-next="always"
+ font-size="&hsize5;"
+ font-weight="bold"/>
+
+ <subtitle param:node="ancestor-or-self::article[1]"
+ keep-with-next="always"
+ font-size="&hsize3;"
+ font-weight="bold"
+ space-after="0.8em"/>
+
+ <corpauthor space-before="0.5em"
+ font-size="&hsize3;"/>
+ <authorgroup space-before="0.5em"
+ font-size="&hsize2;"/>
+ <author space-before="0.5em"
+ font-size="&hsize2;"
+ space-after="0.8em"/>
+
+ <email font-size="&hsize2;"/>
+
+ <othercredit space-before="0.5em"/>
+ <releaseinfo space-before="0.5em"/>
+ <copyright space-before="0.5em"/>
+ <legalnotice text-align="start"
+ margin-left="0.5in"
+ margin-right="0.5in"
+ font-family="{$body.fontset}"/>
+ <pubdate space-before="0.5em"/>
+ <para></para>
+ <revision space-before="0.5em"/>
+ <revhistory space-before="0.5em"/>
+ <abstract space-before="0.5em"
+ text-align="start"
+ margin-left="0.5in"
+ margin-right="0.5in"
+ font-family="{$body.fontset}"/>
+
+ <para></para>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="set" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:named-template="division.title"
+ param:node="ancestor-or-self::set[1]"
+ text-align="center"
+ font-size="&hsize5;"
+ space-before="&hsize5space;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"
+ text-align="center"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="book" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+
+ <mediaobject/>
+
+ <title
+ t:named-template="division.title"
+ param:node="ancestor-or-self::book[1]"
+ text-align="center"
+ font-size="&hsize5;"
+ space-before="&hsize5space;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ text-align="center"
+ font-size="&hsize4;"
+ space-before="&hsize4space;"
+ font-family="{$title.fontset}"/>
+ <corpauthor font-size="&hsize3;"
+ keep-with-next="always"
+ space-before="2in"/>
+ <authorgroup space-before="2in"/>
+ <author font-size="&hsize3;"
+ space-before="&hsize2space;"
+ keep-with-next="always"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ <title
+ t:named-template="book.verso.title"
+ font-size="&hsize2;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup t:named-template="verso.authorgroup"/>
+ <author/>
+ <othercredit/>
+ <pubdate space-before="1em"/>
+ <copyright/>
+ <abstract/>
+ <legalnotice font-size="8pt"/>
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ <fo:block break-after="page"/>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ <fo:block break-after="page"/>
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="part" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:named-template="division.title"
+ param:node="ancestor-or-self::part[1]"
+ text-align="center"
+ font-size="&hsize5;"
+ space-before="&hsize5space;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ text-align="center"
+ font-size="&hsize4;"
+ space-before="&hsize4space;"
+ font-weight='bold'
+ font-style='italic'
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="partintro" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ text-align="center"
+ font-size="&hsize5;"
+ font-weight="bold"
+ space-before="1em"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ text-align="center"
+ font-size="&hsize2;"
+ font-weight="bold"
+ font-style="italic"
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="reference" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:named-template="division.title"
+ param:node="ancestor-or-self::reference[1]"
+ text-align="center"
+ font-size="&hsize5;"
+ space-before="&hsize5space;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"
+ text-align="center"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="refsynopsisdiv" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="refsection" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="refsect1" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="refsect2" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="refsect3" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="dedication" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::dedication[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="preface" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::preface[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="chapter" t:wrapper="fo:block"
+ font-family="{$title.fontset}">
+ <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}">
+ <title t:named-template="component.title"
+ param:node="ancestor-or-self::chapter[1]"
+ font-size="&hsize5;"
+ font-weight="bold"/>
+
+ <subtitle space-before="0.5em"
+ font-style="italic"
+ font-size="&hsize2;"
+ font-weight="bold"/>
+
+ <corpauthor space-before="0.5em"
+ space-after="0.5em"
+ font-size="&hsize2;"/>
+
+ <authorgroup space-before="0.5em"
+ space-after="0.5em"
+ font-size="&hsize2;"/>
+
+ <author space-before="0.5em"
+ space-after="0.5em"
+ font-size="&hsize2;"/>
+
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="appendix" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:named-template="component.title"
+ param:node="ancestor-or-self::appendix[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize5;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="section" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="sect1" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="sect2" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="sect3" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="sect4" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="sect5" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<t:titlepage t:element="simplesect" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ margin-left="{$title.margin.left}"
+ font-family="{$title.fontset}"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ <corpauthor/>
+ <authorgroup/>
+ <author/>
+ <othercredit/>
+ <releaseinfo/>
+ <copyright/>
+ <legalnotice/>
+ <pubdate/>
+ <revision/>
+ <revhistory/>
+ <abstract/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="bibliography" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::bibliography[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="bibliodiv" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title t:named-template="component.title"
+ param:node="ancestor-or-self::bibliodiv[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize4;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="glossary" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::glossary[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="glossdiv" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title t:named-template="component.title"
+ param:node="ancestor-or-self::glossdiv[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize4;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="index" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::index[1]"
+ param:pagewide="1"
+ margin-left="0pt"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <!-- The indexdiv.title template is used so that manual and -->
+ <!-- automatically generated indexdiv titles get the same -->
+ <!-- formatting. -->
+
+ <t:titlepage t:element="indexdiv" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title t:force="1"
+ t:named-template="indexdiv.title"
+ param:title="title"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="setindex" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::setindex[1]"
+ param:pagewide="1"
+ margin-left="0pt"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="colophon" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="component.title"
+ param:node="ancestor-or-self::colophon[1]"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize5;"
+ font-family="{$title.fontset}"
+ font-weight="bold"/>
+ <subtitle
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+</t:titlepage>
+
+<!-- ==================================================================== -->
+
+ <t:titlepage t:element="table.of.contents" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'TableofContents'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+ <t:titlepage t:element="list.of.tables" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'ListofTables'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+ <t:titlepage t:element="list.of.figures" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'ListofFigures'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+ <t:titlepage t:element="list.of.examples" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'ListofExamples'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+ <t:titlepage t:element="list.of.equations" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'ListofEquations'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+ <t:titlepage t:element="list.of.procedures" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'ListofProcedures'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+ <t:titlepage t:element="list.of.unknowns" t:wrapper="fo:block">
+ <t:titlepage-content t:side="recto">
+ <title
+ t:force="1"
+ t:named-template="gentext"
+ param:key="'ListofUnknown'"
+ space-before.minimum="1em"
+ space-before.optimum="1.5em"
+ space-before.maximum="2em"
+ space-after="0.5em"
+ margin-left="{$title.margin.left}"
+ font-size="&hsize3;"
+ font-weight="bold"
+ font-family="{$title.fontset}"/>
+ </t:titlepage-content>
+
+ <t:titlepage-content t:side="verso">
+ </t:titlepage-content>
+
+ <t:titlepage-separator>
+ </t:titlepage-separator>
+
+ <t:titlepage-before t:side="recto">
+ </t:titlepage-before>
+
+ <t:titlepage-before t:side="verso">
+ </t:titlepage-before>
+ </t:titlepage>
+
+<!-- ==================================================================== -->
+
+</t:templates>
diff --git a/handbook/poky-doc-tools/configure.ac b/handbook/poky-doc-tools/configure.ac
new file mode 100644
index 0000000000..0d15c8198c
--- /dev/null
+++ b/handbook/poky-doc-tools/configure.ac
@@ -0,0 +1,27 @@
+AC_PREREQ(2.53)
+AC_INIT(poky-doc-tools, 0.1, http://o-hand.com)
+AM_INIT_AUTOMAKE()
+
+AC_PATH_PROG(HAVE_XSLTPROC, xsltproc, no)
+if test x$HAVE_XSLTPROC = xno; then
+ AC_MSG_ERROR([Required xsltproc program not found])
+fi
+
+AC_PATH_PROG(HAVE_FOP, fop, no)
+if test x$HAVE_FOP = xno; then
+ AC_MSG_ERROR([Required fop program not found])
+fi
+
+AC_CHECK_FILE([/usr/share/xml/docbook/stylesheet/nwalsh/template/titlepage.xsl],HAVE_NWALSH="yes", HAVE_NWALSH="no")
+if test x$HAVE_FOP = xno; then
+ AC_MSG_ERROR([Required 'nwalsh' docbook stylesheets not found])
+fi
+
+AC_OUTPUT([
+Makefile
+common/Makefile
+])
+
+echo "
+ == poky-doc-tools $VERSION configured successfully. ==
+" \ No newline at end of file
diff --git a/handbook/poky-doc-tools/poky-docbook-to-pdf.in b/handbook/poky-doc-tools/poky-docbook-to-pdf.in
new file mode 100644
index 0000000000..cc999ab995
--- /dev/null
+++ b/handbook/poky-doc-tools/poky-docbook-to-pdf.in
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+if [ -z "$1" ]; then
+ echo "usage: [-v] $0 <docbook file>"
+ echo
+ echo "*NOTE* you need xsltproc, fop and nwalsh docbook stylesheets"
+ echo " installed for this to work!"
+ echo
+ exit 0
+fi
+
+if [ "$1" = "-v" ]; then
+ echo "Version @version@"
+ exit 1
+fi
+
+BASENAME=`basename $1 .xml` || exit 1
+FO="$BASENAME.fo"
+PDF="$BASENAME.pdf"
+
+xsltproc -o /tmp/titlepage.xsl \
+ --xinclude \
+ /usr/share/xml/docbook/stylesheet/nwalsh/template/titlepage.xsl \
+ @datadir@/common/titlepage.templates.xml || exit 1
+
+xsltproc --xinclude \
+ --stringparam hyphenate false \
+ --stringparam formal.title.placement "figure after" \
+ --stringparam ulink.show 1 \
+ --stringparam body.font.master 9 \
+ --stringparam title.font.master 11 \
+ --stringparam draft.watermark.image "@datadir@/common/draft.png" \
+ --output $FO \
+ @datadir@/common/poky-db-pdf.xsl \
+ $1 || exit 1
+
+fop -c @datadir@/common/fop-config.xml -fo $FO -pdf $PDF || exit 1
+
+rm -f $FO
+rm -f /tmp/titlepage.xsl
+
+echo
+echo " #### Success! $PDF ready. ####"
+echo \ No newline at end of file
diff --git a/handbook/poky-handbook.html b/handbook/poky-handbook.html
new file mode 100644
index 0000000000..abc32354dd
--- /dev/null
+++ b/handbook/poky-handbook.html
@@ -0,0 +1,2429 @@
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Poky Handbook</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.72.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="poky-handbook"></a>Poky Handbook</h1></div><div><h2 class="subtitle">Hitchhiker's Guide to Poky</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Richard</span> <span class="surname">Purdie</span></h3><div class="affiliation"><span class="orgname">OpenedHand Ltd<br></span></div><code class="email">&lt;<a href="mailto:richard@openedhand.com">richard@openedhand.com</a>&gt;</code></div><div class="author"><h3 class="author"><span class="firstname">Tomas</span> <span class="surname">Frydrych</span></h3><div class="affiliation"><span class="orgname">OpenedHand Ltd<br></span></div><code class="email">&lt;<a href="mailto:tf@openedhand.com">tf@openedhand.com</a>&gt;</code></div><div class="author"><h3 class="author"><span class="firstname">Marcin</span> <span class="surname">Juszkiewicz</span></h3><div class="affiliation"><span class="orgname">OpenedHand Ltd<br></span></div><code class="email">&lt;<a href="mailto:hrw@openedhand.com">hrw@openedhand.com</a>&gt;</code></div><div class="author"><h3 class="author"><span class="firstname">Dodji</span> <span class="surname">Seketeli</span></h3><div class="affiliation"><span class="orgname">OpenedHand Ltd<br></span></div><code class="email">&lt;<a href="mailto:dodji@openedhand.com">dodji@openedhand.com</a>&gt;</code></div></div></div><div><p class="copyright">Copyright © 2007 OpenedHand Limited</p></div><div><div class="legalnotice"><a name="id1081631"></a><p>
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/" target="_top">Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England &amp; Wales</a> as published by Creative Commons.
+ </p></div></div><div><div class="revhistory"><table border="1" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="2"><b>Revision History</b></th></tr><tr><td align="left">Revision 3.1</td><td align="left">15 Feburary 2008</td></tr><tr><td align="left" colspan="2">Poky 3.1 (Pinky) Documentation Release</td></tr></table></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="#intro">1. Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="#intro-what-is">1. What is Poky?</a></span></dt><dt><span class="section"><a href="#intro-manualoverview">2. Documentation Overview</a></span></dt><dt><span class="section"><a href="#intro-requirements">3. System Requirements</a></span></dt><dt><span class="section"><a href="#intro-quickstart">4. Quick Start</a></span></dt><dd><dl><dt><span class="section"><a href="#intro-quickstart-build">4.1. Building and Running an Image</a></span></dt><dt><span class="section"><a href="#intro-quickstart-qemu">4.2. Downloading and Using Prebuilt Images</a></span></dt></dl></dd><dt><span class="section"><a href="#intro-getit">5. Obtaining Poky</a></span></dt><dd><dl><dt><span class="section"><a href="#intro-getit-releases">5.1. Releases</a></span></dt><dt><span class="section"><a href="#intro-getit-nightly">5.2. Nightly Builds</a></span></dt><dt><span class="section"><a href="#intro-getit-dev">5.3. Development Checkouts</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#usingpoky">2. Using Poky</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-components">1. Poky Overview</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-components-bitbake">1.1. Bitbake</a></span></dt><dt><span class="section"><a href="#usingpoky-components-metadata">1.2. Metadata (Recipes)</a></span></dt><dt><span class="section"><a href="#usingpoky-components-classes">1.3. Classes</a></span></dt><dt><span class="section"><a href="#usingpoky-components-configuration">1.4. Configuration</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-build">2. Running a Build</a></span></dt><dt><span class="section"><a href="#usingpoky-install">3. Installing and Using the Result</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-install-usbnetworking">3.1. USB Networking</a></span></dt><dt><span class="section"><a href="#usingpoky-install-qemu-networking">3.2. QEMU/USB networking with IP masquerading</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-debugging">4. Debugging Build Failures</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-debugging-taskfailures">4.1. Task Failures</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-taskrunning">4.2. Running specific tasks</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-dependencies">4.3. Dependency Graphs</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-bitbake">4.4. General Bitbake Problems</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-buildfile">4.5. Building with no dependencies</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-variables">4.6. Variables</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-others">4.7. Other Tips</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#extendpoky">3. Extending Poky</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-extend-addpkg">1. Adding a Package</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-extend-addpkg-singlec">1.1. Single .c File Package (Hello World!)</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-autotools">1.2. Autotooled Package</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-makefile">1.3. Makefile-Based Package</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-files">1.4. Controlling packages content</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-postinstalls">1.5. Post Install Scripts</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-extend-customimage">2. Customising Images</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-extend-customimage-custombb">2.1. Customising Images through a custom image .bb files</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-customimage-customtasks">2.2. Customising Images through custom tasks</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-customimage-imagefeatures">2.3. Customising Images through custom IMAGE_FEATURES</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-customimage-localconf">2.4. Customising Images through local.conf</a></span></dt></dl></dd><dt><span class="section"><a href="#platdev-newmachine">3. Porting Poky to a new machine</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-newmachine-conffile">3.1. Adding the machine configuration file</a></span></dt><dt><span class="section"><a href="#platdev-newmachine-kernel">3.2. Adding a kernel for the machine</a></span></dt><dt><span class="section"><a href="#platdev-newmachine-formfactor">3.3. Adding a formfactor configuration file</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-changes">4. Making and Maintaining Changes</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-changes-collections">4.1. Bitbake Collections</a></span></dt><dt><span class="section"><a href="#usingpoky-changes-commits">4.2. Committing Changes</a></span></dt><dt><span class="section"><a href="#usingpoky-changes-prbump">4.3. Package Revision Incrementing</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-modifing-packages">5. Modifying Package Source Code</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-modifying-packages-quilt">5.1. Modifying Package Source Code with quilt</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#platdev">4. Platform Development with Poky</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-appdev">1. Software development</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-appdev-external-anjuta">1.1. Developing externally using the Anjuta Plugin</a></span></dt><dt><span class="section"><a href="#platdev-appdev-external-sdk">1.2. Developing externally using the Poky SDK</a></span></dt><dt><span class="section"><a href="#platdev-appdev-qemu">1.3. Developing externally in QEMU</a></span></dt><dt><span class="section"><a href="#platdev-appdev-chroot">1.4. Developing externally in a chroot</a></span></dt><dt><span class="section"><a href="#platdev-appdev-insitu">1.5. Developing in Poky directly</a></span></dt><dt><span class="section"><a href="#platdev-appdev-devshell">1.6. Developing with 'devshell'</a></span></dt><dt><span class="section"><a href="#platdev-appdev-srcrev">1.7. Developing within Poky with an external SCM based package</a></span></dt></dl></dd><dt><span class="section"><a href="#platdev-gdb-remotedebug">2. Debugging with GDB Remotely</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-gdb-remotedebug-launch-gdbserver">2.1. Launching GDBSERVER on the target</a></span></dt><dt><span class="section"><a href="#platdev-gdb-remotedebug-launch-gdb">2.2. Launching GDB on the host computer</a></span></dt></dl></dd><dt><span class="section"><a href="#platdev-oprofile">3. Profiling with OProfile</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-oprofile-target">3.1. Profiling on the target</a></span></dt><dt><span class="section"><a href="#platdev-oprofile-oprofileui">3.2. Using OProfileUI</a></span></dt></dl></dd></dl></dd><dt><span class="appendix"><a href="#ref-structure">1. Reference: Directory Structure</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-core">1. Top level core components</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-core-bitbake">1.1. <code class="filename">bitbake/</code></a></span></dt><dt><span class="section"><a href="#structure-core-build">1.2. <code class="filename">build/</code></a></span></dt><dt><span class="section"><a href="#structure-core-meta">1.3. <code class="filename">meta/</code></a></span></dt><dt><span class="section"><a href="#structure-core-meta-extras">1.4. <code class="filename">meta-extras/</code></a></span></dt><dt><span class="section"><a href="#structure-core-scripts">1.5. <code class="filename">scripts/</code></a></span></dt><dt><span class="section"><a href="#structure-core-sources">1.6. <code class="filename">sources/</code></a></span></dt><dt><span class="section"><a href="#structure-core-script">1.7. <code class="filename">poky-init-build-env</code></a></span></dt></dl></dd><dt><span class="section"><a href="#structure-build">2. <code class="filename">build/</code> - The Build Directory</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-build-conf-local.conf">2.1. <code class="filename">build/conf/local.conf</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp">2.2. <code class="filename">build/tmp/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-cache">2.3. <code class="filename">build/tmp/cache/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-cross">2.4. <code class="filename">build/tmp/cross/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy">2.5. <code class="filename">build/tmp/deploy/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy-deb">2.6. <code class="filename">build/tmp/deploy/deb/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy-images">2.7. <code class="filename">build/tmp/deploy/images/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy-ipk">2.8. <code class="filename">build/tmp/deploy/ipk/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-rootfs">2.9. <code class="filename">build/tmp/rootfs/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-staging">2.10. <code class="filename">build/tmp/staging/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-stamps">2.11. <code class="filename">build/tmp/stamps/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-work">2.12. <code class="filename">build/tmp/work/</code></a></span></dt></dl></dd><dt><span class="section"><a href="#structure-meta">3. <code class="filename">meta/</code> - The Metadata</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-meta-classes">3.1. <code class="filename">meta/classes/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-conf">3.2. <code class="filename">meta/conf/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-conf-machine">3.3. <code class="filename">meta/conf/machine/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-conf-distro">3.4. <code class="filename">meta/conf/distro/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-packages">3.5. <code class="filename">meta/packages/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-site">3.6. <code class="filename">meta/site/</code></a></span></dt></dl></dd></dl></dd><dt><span class="appendix"><a href="#ref-bitbake">2. Reference: Bitbake</a></span></dt><dd><dl><dt><span class="section"><a href="#ref-bitbake-parsing">1. Parsing</a></span></dt><dt><span class="section"><a href="#ref-bitbake-providers">2. Preferences and Providers</a></span></dt><dt><span class="section"><a href="#ref-bitbake-dependencies">3. Dependencies</a></span></dt><dt><span class="section"><a href="#ref-bitbake-tasklist">4. The Task List</a></span></dt><dt><span class="section"><a href="#ref-bitbake-runtask">5. Running a Task</a></span></dt><dt><span class="section"><a href="#ref-bitbake-commandline">6. Commandline</a></span></dt><dt><span class="section"><a href="#ref-bitbake-fetchers">7. Fetchers</a></span></dt></dl></dd><dt><span class="appendix"><a href="#ref-classes">3. Reference: Classes</a></span></dt><dd><dl><dt><span class="section"><a href="#ref-classes-base">1. The base class - <code class="filename">base.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-autotools">2. Autotooled Packages - <code class="filename">autotools.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-update-alternatives">3. Alternatives - <code class="filename">update-alternatives.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-update-rc.d">4. Initscripts - <code class="filename">update-rc.d.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-binconfig">5. Binary config scripts - <code class="filename">binconfig.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-debian">6. Debian renaming - <code class="filename">debian.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-pkgconfig">7. Pkg-config - <code class="filename">pkgconfig.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-src-distribute">8. Distribution of sources - <code class="filename">src_distribute_local.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-perl">9. Perl modules - <code class="filename">cpan.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-distutils">10. Python extensions - <code class="filename">distutils.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-devshell">11. Developer Shell - <code class="filename">devshell.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-package">12. Packaging - <code class="filename">package*.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-kernel">13. Building kernels - <code class="filename">kernel.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-image">14. Creating images - <code class="filename">image.bbclass</code> and <code class="filename">rootfs*.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-sanity">15. Host System sanity checks - <code class="filename">sanity.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-insane">16. Generated output quality assurance checks - <code class="filename">insane.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-siteinfo">17. Autotools configuration data cache - <code class="filename">siteinfo.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-others">18. Other Classes</a></span></dt></dl></dd><dt><span class="appendix"><a href="#ref-images">4. Reference: Images</a></span></dt><dt><span class="appendix"><a href="#ref-features">5. Reference: Features</a></span></dt><dd><dl><dt><span class="section"><a href="#ref-features-distro">1. Distro</a></span></dt><dt><span class="section"><a href="#ref-features-machine">2. Machine</a></span></dt><dt><span class="section"><a href="#ref-features-image">3. Reference: Images</a></span></dt></dl></dd><dt><span class="appendix"><a href="#ref-variables-glos">6. Reference: Variables Glossary</a></span></dt><dd><dl><dt><span class="glossary"><a href="#ref-variables-glossary">Glossary</a></span></dt></dl></dd><dt><span class="appendix"><a href="#ref-varlocality">7. Reference: Variable Locality (Distro, Machine, Recipe etc.)</a></span></dt><dd><dl><dt><span class="section"><a href="#ref-varlocality-config-distro">1. Distro Configuration</a></span></dt><dt><span class="section"><a href="#ref-varlocality-config-machine">2. Machine Configuration</a></span></dt><dt><span class="section"><a href="#ref-varlocality-config-local">3. Local Configuration (local.conf)</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-required">4. Recipe Variables - Required</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-dependencies">5. Recipe Variables - Dependencies</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-paths">6. Recipe Variables - Paths</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-build">7. Recipe Variables - Extra Build Information</a></span></dt></dl></dd><dt><span class="appendix"><a href="#faq">8. FAQ</a></span></dt><dt><span class="appendix"><a href="#resources">9. Contributing to Poky</a></span></dt><dd><dl><dt><span class="section"><a href="#resources-intro">1. Introduction</a></span></dt><dt><span class="section"><a href="#resources-bugtracker">2. Bugtracker</a></span></dt><dt><span class="section"><a href="#resources-mailinglist">3. Mailing list</a></span></dt><dt><span class="section"><a href="#resources-irc">4. IRC</a></span></dt><dt><span class="section"><a href="#resources-links">5. Links</a></span></dt></dl></dd><dt><span class="appendix"><a href="#contact">10. OpenedHand Contact Information</a></span></dt><dt><span class="index"><a href="#index">Index</a></span></dt></dl></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="intro"></a>Chapter 1. Introduction</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#intro-what-is">1. What is Poky?</a></span></dt><dt><span class="section"><a href="#intro-manualoverview">2. Documentation Overview</a></span></dt><dt><span class="section"><a href="#intro-requirements">3. System Requirements</a></span></dt><dt><span class="section"><a href="#intro-quickstart">4. Quick Start</a></span></dt><dd><dl><dt><span class="section"><a href="#intro-quickstart-build">4.1. Building and Running an Image</a></span></dt><dt><span class="section"><a href="#intro-quickstart-qemu">4.2. Downloading and Using Prebuilt Images</a></span></dt></dl></dd><dt><span class="section"><a href="#intro-getit">5. Obtaining Poky</a></span></dt><dd><dl><dt><span class="section"><a href="#intro-getit-releases">5.1. Releases</a></span></dt><dt><span class="section"><a href="#intro-getit-nightly">5.2. Nightly Builds</a></span></dt><dt><span class="section"><a href="#intro-getit-dev">5.3. Development Checkouts</a></span></dt></dl></dd></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="intro-what-is"></a>1. What is Poky?</h2></div></div></div><p>
+ Poky is an open source platform build tool. It is a complete software
+ development environment for the creation of Linux devices. It aids the
+ design, development, building, debugging, simulation and testing of
+ complete modern software stacks using Linux, the X Window System and
+ GNOME Mobile based application frameworks. It is based on
+ <a href="http://openembedded.org/" target="_top">OpenEmbedded</a>
+ but has been customised with a particular focus.
+ </p><p> Poky was setup to:</p><div class="itemizedlist"><ul type="disc"><li><p>Provide an open source Linux, X11, Matchbox, GTK+, <a href="http://gnome.org/mobile" target="_top">GNOME Mobile</a> platform.</p></li><li><p>Create a focused, stable, subset of OpenEmbedded that can be easily and reliably built and developed upon.</p></li><li><p>Fully support a wide range of x86 and ARM hardware</p></li></ul></div><p><a href="http://www.o-hand.com" target="_top">OpenedHand</a> is the principle developer and maintainer of Poky and uses it to:</p><div class="itemizedlist"><ul type="disc"><li><p>Provide <a href="http://www.o-hand.com" target="_top">OpenedHand</a> with stable R&amp;D platform we can build and develop upon.</p></li><li><p>
+ Demonstrate the skills available within <a href="http://www.o-hand.com" target="_top">
+ OpenedHand</a> and provide a showcase for our software products
+ (such as the <a href="http://www.matchbox-project.org/" target="_top">Matchbox</a> and
+ <a href="http://www.pimlico-project.org/" target="_top">Pimlico</a> software packages and
+ Sato, the default user interface in Poky).
+ </p></li><li><p>Provide a base we can supply to our clients for building and developing their customised platforms.</p></li></ul></div><p>
+ Poky is primarily a platform builder which generates filesystem images
+ based on open source software such as the Kdrive X server, the Matchbox
+ window manager, the GTK+ toolkit and the D-Bus message bus system. Images
+ for many kinds of devices can be generated, however the standard example
+ machines target QEMU system emulation (both x86 and ARM) and the ARM based
+ Sharp Zaurus series of devices. Poky's ability to boot inside a QEMU
+ emulator makes it particularly suitable as a test platform for development
+ of embedded software.
+ </p><p>
+ An important component integrated within Poky is Sato, a GNOME Mobile
+ based user interface environment.
+ It is designed to work well with screens at very high DPI and restricted
+ size, such as those often found on smartphones and PDAs. It is coded with
+ focus on efficiency and speed so that it works smoothly on hand-held and
+ other embedded hardware. It will sit neatly on top of any device
+ using the GNOME Mobile stack, providing a well defined user experience.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="intro-manualoverview"></a>2. Documentation Overview</h2></div></div></div><p>
+ The handbook is split into sections covering different aspects of Poky.
+ The <a href="#usingpoky" title="Chapter 2. Using Poky">'Using Poky' section</a> gives an overview
+ of the components that make up Poky followed by information about using and
+ debugging the Poky build system. The <a href="#extendpoky" title="Chapter 3. Extending Poky">'Extending Poky' section</a>
+ gives information about how to extend and customise Poky along with advice
+ on how to manage these changes. The <a href="#platdev" title="Chapter 4. Platform Development with Poky">'Platform Development with Poky'
+ section</a> gives information about interaction between Poky and target
+ hardware for common platform development tasks such as software development,
+ debugging and profiling. The rest of the manual
+ consists of several reference sections each giving details on a specific
+ section of Poky functionality.
+ </p><p>
+ This manual applies to Poky Release 3.1 (Pinky).
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="intro-requirements"></a>3. System Requirements</h2></div></div></div><p>
+ We recommend Debian-based distributions, in particular a recent Ubuntu
+ release (7.04 or newer), as the host system for Poky. Nothing in Poky is
+ distribution specific and
+ other distributions will most likely work as long as the appropriate
+ prerequisites are installed - we know of Poky being used successfully on Redhat,
+ SUSE, Gentoo and Slackware host systems.
+ </p><p>On a Debian-based system, you need the following packages installed:</p><div class="itemizedlist"><ul type="disc"><li><p>build-essential</p></li><li><p>python</p></li><li><p>diffstat</p></li><li><p>texinfo</p></li><li><p>texi2html</p></li><li><p>cvs</p></li><li><p>subversion</p></li><li><p>wget</p></li><li><p>gawk</p></li><li><p>help2man</p></li><li><p>bochsbios (only to run qemux86 images)</p></li></ul></div><p>
+ Debian users can add debian.o-hand.com to their APT sources (See
+ <a href="http://debian.o-hand.com" target="_top">http://debian.o-hand.com</a>
+ for instructions on doing this) and then run <span><strong class="command">
+ "apt-get install qemu poky-depends poky-scripts"</strong></span> which will
+ automatically install all these dependencies. OpenedHand can also provide
+ VMware images with Poky and all dependencies pre-installed if required.
+ </p><p>
+ Poky can use a system provided QEMU or build its own depending on how it's
+ configured. See the options in <code class="filename">local.conf</code> for more details.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="intro-quickstart"></a>4. Quick Start</h2></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="intro-quickstart-build"></a>4.1. Building and Running an Image</h3></div></div></div><p>
+ If you want to try Poky, you can do so in a few commands. The example below
+ checks out the Poky source code, sets up a build environment, builds an
+ image and then runs that image under the QEMU emulator in ARM system emulation mode:
+ </p><p>
+ </p><pre class="literallayout">
+$ wget http://pokylinux.org/releases/pinky-3.1.tar.gz
+$ tar zxvf pinky-3.1.tar.gz
+$ cd pinky-3.1/
+$ source poky-init-build-env
+$ bitbake poky-image-sato
+$ runqemu qemuarm
+</pre><p>
+ </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+ This process will need Internet access, about 3 GB of disk space
+ available, and you should expect the build to take about 4 - 5 hours since
+ it is building an entire Linux system from source including the toolchain!
+ </p></div><p>
+ To build for other machines see the <em class="glossterm"><a href="#var-MACHINE" title="MACHINE">MACHINE</a></em> variable in build/conf/local.conf
+ which also contains other configuration information. The images/kernels built
+ by Poky are placed in the <code class="filename">tmp/deploy/images</code>
+ directory.
+ </p><p>
+ You could also run <span><strong class="command">"poky-qemu zImage-qemuarm.bin poky-image-sato-qemuarm.ext2"
+ </strong></span> within the images directory if you have the poky-scripts Debian package
+ installed from debian.o-hand.com. This allows the QEMU images to be used standalone
+ outside the Poky build environment.
+ </p><p>
+ To setup networking within QEMU see the <a href="#usingpoky-install-qemu-networking" title="3.2. QEMU/USB networking with IP masquerading">
+ QEMU/USB networking with IP masquerading</a> section.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="intro-quickstart-qemu"></a>4.2. Downloading and Using Prebuilt Images</h3></div></div></div><p>
+ Prebuilt images from Poky are also available if you just want to run the system
+ under QEMU. To use these you need to:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ Add debian.o-hand.com to your APT sources (See
+ <a href="http://debian.o-hand.com" target="_top">http://debian.o-hand.com</a> for instructions on doing this)
+ </p></li><li><p>Install patched QEMU and poky-scripts:</p><p>
+ </p><pre class="literallayout">
+$ apt-get install qemu poky-scripts
+</pre><p>
+ </p></li><li><p>
+ Download a Poky QEMU release kernel (*zImage*qemu*.bin) and compressed
+ filesystem image (poky-image-*-qemu*.ext2.bz2) which
+ you'll need to decompress with 'bzip2 -d'. These are available from the
+ <a href="http://pokylinux.org/releases/blinky-3.0/" target="_top">last release</a>
+ or from the <a href="http://pokylinux.org/autobuild/poky/" target="_top">autobuilder</a>.
+ </p></li><li><p>Start the image:</p><p>
+ </p><pre class="literallayout">
+$ poky-qemu &lt;kernel&gt; &lt;image&gt;
+</pre><p>
+ </p></li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+ A patched version of QEMU is required at present. A suitable version is available from
+ <a href="http://debian.o-hand.com" target="_top">http://debian.o-hand.com</a>, it can be built
+ by poky (bitbake qemu-native) or can be downloaded/built as part of the toolchain/SDK tarballs.
+ </p></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="intro-getit"></a>5. Obtaining Poky</h2></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="intro-getit-releases"></a>5.1. Releases</h3></div></div></div><p>Periodically, we make releases of Poky and these are available
+ at <a href="http://pokylinux.org/releases/" target="_top">http://pokylinux.org/releases/</a>.
+ These are more stable and tested than the nightly development images.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="intro-getit-nightly"></a>5.2. Nightly Builds</h3></div></div></div><p>
+ We make nightly builds of Poky for testing purposes and to make the
+ latest developments available. The output from these builds is available
+ at <a href="http://pokylinux.org/autobuild/" target="_top">http://pokylinux.org/autobuild/</a>
+ where the numbers represent the svn revision the builds were made from.
+ </p><p>
+ Automated builds are available for "standard" Poky and for Poky SDKs and toolchains as well
+ as any testing versions we might have such as poky-bleeding. The toolchains can
+ be used either as external standalone toolchains or can be combined with Poky as a
+ prebuilt toolchain to reduce build time. Using the external toolchains is simply a
+ case of untarring the tarball into the root of your system (it only creates files in
+ <code class="filename">/usr/local/poky</code>) and then enabling the option
+ in <code class="filename">local.conf</code>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="intro-getit-dev"></a>5.3. Development Checkouts</h3></div></div></div><p>
+ Poky is available from our SVN repository located at
+ http://svn.o-hand.com/repos/poky/trunk; a web interface to the repository
+ can be accessed at <a href="http://svn.o-hand.com/view/poky/" target="_top">http://svn.o-hand.com/view/poky/</a>.
+ </p><p>
+ 'trunk' is where the deveopment work takes place and you should use this if you're
+ after to work with the latest cutting edge developments. It is possible trunk
+ can suffer temporary periods of instability while new features are developed and
+ if this is undesireable we recommend using one of the release branches.
+ </p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="usingpoky"></a>Chapter 2. Using Poky</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#usingpoky-components">1. Poky Overview</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-components-bitbake">1.1. Bitbake</a></span></dt><dt><span class="section"><a href="#usingpoky-components-metadata">1.2. Metadata (Recipes)</a></span></dt><dt><span class="section"><a href="#usingpoky-components-classes">1.3. Classes</a></span></dt><dt><span class="section"><a href="#usingpoky-components-configuration">1.4. Configuration</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-build">2. Running a Build</a></span></dt><dt><span class="section"><a href="#usingpoky-install">3. Installing and Using the Result</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-install-usbnetworking">3.1. USB Networking</a></span></dt><dt><span class="section"><a href="#usingpoky-install-qemu-networking">3.2. QEMU/USB networking with IP masquerading</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-debugging">4. Debugging Build Failures</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-debugging-taskfailures">4.1. Task Failures</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-taskrunning">4.2. Running specific tasks</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-dependencies">4.3. Dependency Graphs</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-bitbake">4.4. General Bitbake Problems</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-buildfile">4.5. Building with no dependencies</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-variables">4.6. Variables</a></span></dt><dt><span class="section"><a href="#usingpoky-debugging-others">4.7. Other Tips</a></span></dt></dl></dd></dl></div><p>
+ This section gives an overview of the components that make up Poky
+ following by information about running poky builds and dealing with any
+ problems that may arise.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-components"></a>1. Poky Overview</h2></div></div></div><p>
+ At the core of Poky is the bitbake task executor together with various types of
+ configuration files. This section gives an overview of bitbake and the
+ configuration files, in particular what they are used for, and how they
+ interact.
+ </p><p>
+ Bitbake handles the parsing and execution of the data
+ files. The data itself is of various types; recipes which give
+ details about particular pieces of software, class data which is an
+ abstraction of common build information (e.g. how to build a Linux kernel)
+ and configuration data for machines, policy decisions, etc., which acts as
+ a glue and binds everything together. Bitbake knows how to combine multiple
+ data sources together, each data source being referred to as a <a href="#usingpoky-changes-collections" title="4.1. Bitbake Collections">'collection'</a>.
+ </p><p>
+ The <a href="#ref-structure" title="Appendix 1. Reference: Directory Structure">directory structure walkthrough</a>
+ section gives details on the meaning of specific directories but some
+ brief details on the core components follows:
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-components-bitbake"></a>1.1. Bitbake</h3></div></div></div><p>
+ Bitbake is the tool at the heart of Poky and is responsible
+ for parsing the metadata, generating a list of tasks from it
+ and then executing them. To see a list of the options it
+ supports look at <span><strong class="command">bitbake --help</strong></span>.
+ </p><p>
+ The most common usage is <span><strong class="command">bitbake packagename</strong></span> where
+ packagename is the name of the package you wish to build
+ (from now on called the target). This often equates to the first part of a .bb
+ filename, so to run the <code class="filename">matchbox-desktop_1.2.3.bb</code> file, you
+ might type <span><strong class="command">bitbake matchbox-desktop</strong></span>.
+ Several different versions of matchbox-desktop might exist and
+ bitbake will choose the one selected by the distribution configuration
+ (more details about how bitbake chooses between different versions
+ and providers is available in the <a href="#ref-bitbake-providers" title="2. Preferences and Providers">
+ 'Preferences and Providers' section</a>). Bitbake will also try to execute any
+ dependent tasks first so before building matchbox-desktop it
+ would build a cross compiler and glibc if not already built.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-components-metadata"></a>1.2. Metadata (Recipes)</h3></div></div></div><p>
+ The .bb files are usually referred to as 'recipes'. In general, a
+ recipe contains information about a single piece of software such
+ as where to download the source, any patches that are needed,
+ any special configuration options, how to compile the source files
+ and how to package the compiled output.
+ </p><p>
+ 'package' can also used to describe recipes but since the same
+ word is used for the packaged output from Poky (i.e. .ipk or .deb
+ files), this document will avoid it.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-components-classes"></a>1.3. Classes</h3></div></div></div><p>
+ Class (.bbclass) files contain information which is useful to share
+ between metadata files. An example is the autotools class which contains
+ the common settings that any application using autotools would use. The
+ <a href="#ref-classes" title="Appendix 3. Reference: Classes">classes reference section</a> gives details
+ on common classes and how to use them.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-components-configuration"></a>1.4. Configuration</h3></div></div></div><p>
+ The configuration (.conf) files define various configuration variables
+ which govern what Poky does. These are split into several areas, such
+ as machine configuration options, distribution configuration options,
+ compiler tuning options, general common configuration and user
+ configuration (local.conf).
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-build"></a>2. Running a Build</h2></div></div></div><p>
+ First the Poky build environment needs to be setup using the following command:
+ </p><p>
+ </p><pre class="literallayout">
+$ source poky-init-build-env
+</pre><p>
+ </p><p>
+ Once the Poky build environment is setup, a target can now be built using:
+ </p><p>
+ </p><pre class="literallayout">
+$ bitbake &lt;target&gt;
+</pre><p>
+ </p><p>
+ The target is the name of the recipe you want to build. Common targets are the
+ images (in <code class="filename">meta/packages/images/</code>)
+ or the name of a recipe for a specific piece of software like
+ <span class="application">busybox</span>. More details about the standard images
+ are available in the <a href="#ref-images" title="Appendix 4. Reference: Images">image reference section</a>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-install"></a>3. Installing and Using the Result</h2></div></div></div><p>
+ Once an image has been built it often needs to be installed. The images/kernels built
+ by Poky are placed in the <code class="filename">tmp/deploy/images</code>
+ directory. Running qemux86 and qemuarm images is covered in the <a href="#intro-quickstart-qemu" title="4.2. Downloading and Using Prebuilt Images">Running an Image</a> section. See your
+ board/machine documentation for information about how to install these images.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-install-usbnetworking"></a>3.1. USB Networking</h3></div></div></div><p>
+ Devices commonly have USB connectivity. To connect to the usbnet interface, on
+ the host machine run:
+ </p><p>
+ </p><pre class="programlisting">
+modprobe usbnet
+ifconfig usb0 192.168.0.200
+route add 192.168.0.202 usb0
+</pre><p>
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-install-qemu-networking"></a>3.2. QEMU/USB networking with IP masquerading</h3></div></div></div><p>
+ On Ubuntu, Debian or similar distributions you can have the network automatically
+ configured. You can also enable masquerading between the QEMU system and the rest
+ of your network. To do this you need to edit <code class="filename">/etc/network/interfaces</code> to include:
+ </p><pre class="programlisting">
+allow-hotplug tap0
+iface tap0 inet static
+ address 192.168.7.200
+ netmask 255.255.255.0
+ network 192.168.7.0
+ post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.0/24
+ post-up echo 1 &gt; /proc/sys/net/ipv4/ip_forward
+ post-up iptables -P FORWARD ACCEPT
+</pre><p>
+ </p><p>
+ This ensures the tap0 interface will be up everytime you run QEMU
+ and it will have network/internet access.
+ </p><p>
+ Under emulation there are two steps to configure for internet access
+ via tap0. The first step is to configure routing:
+ </p><pre class="programlisting">
+route add default gw 192.168.7.200 tap0
+</pre><p>
+ </p><p>
+ The second is to configure name resolution which is configured in the
+ <code class="filename">/etc/resolv.conf</code> file. The simplest solution is
+ to copy it's content from the host machine.
+ </p><p>
+ USB connections to devices can be setup and automated in a similar way.
+ First add the following to
+ <code class="filename">/etc/network/interfaces</code>:
+ </p><pre class="programlisting">
+allow-hotplug usb0
+iface usb0 inet static
+ address 192.168.0.200
+ netmask 255.255.255.0
+ network 192.168.0.0
+ post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
+ post-up echo 1 &gt; /proc/sys/net/ipv4/ip_forward
+ post-up iptables -P FORWARD ACCEPT
+</pre><p>
+ </p><p>
+ and then to configure routing on the device you would use:
+ </p><pre class="programlisting">
+route add default gw 192.168.0.202 usb0
+</pre><p>
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-debugging"></a>4. Debugging Build Failures</h2></div></div></div><p>
+ The exact method for debugging Poky depends on the nature of the
+ bug(s) and which part of the system they might be from. Standard
+ debugging practises such as comparing to the last
+ known working version and examining the changes, reapplying the
+ changes in steps to identify the one causing the problem etc. are
+ valid for Poky just like any other system. Its impossible to detail
+ every possible potential failure here but there are some general
+ tips to aid debugging:
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-taskfailures"></a>4.1. Task Failures</h3></div></div></div><p>The log file for shell tasks is available in <code class="filename">${WORKDIR}/temp/log.do_taskname.pid</code>.
+ For the compile task of busybox 1.01 on the ARM spitz machine, this
+ might be <code class="filename">tmp/work/armv5te-poky-linux-gnueabi/busybox-1.01/temp/log.do_compile.1234</code>
+ for example. To see what bitbake ran to generate that log, look at the <code class="filename">run.do_taskname.pid </code>
+ file in the same directory.
+ </p><p>The output from python tasks is sent directly to the console at present.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-taskrunning"></a>4.2. Running specific tasks</h3></div></div></div><p> Any given package consists of a set of tasks, in most
+ cases the series is fetch, unpack, patch, configure,
+ compile, install, package, package_write and build. The
+ default task is "build" and any tasks this depends on are
+ built first hence the standard bitbake behaviour. There are
+ some tasks such as devshell which are not part of the
+ default build chain. If you wish to run such a task you can
+ use the "-c" option to bitbake e.g. <span><strong class="command">bitbake
+ matchbox-desktop -c devshell</strong></span>.
+ </p><p>
+ If you wish to rerun a task you can use the force option
+ "-f". A typical usage session might look like: </p><p>
+ </p><pre class="literallayout">
+% bitbake matchbox-desktop
+[change some source in the WORKDIR for example]
+% bitbake matchbox-desktop -c compile -f
+% bitbake matchbox-desktop</pre><p>
+ </p><p>
+ which would build matchbox-desktop, then recompile it. The
+ final command reruns all tasks after the compile (basically
+ the packaging tasks) since bitbake will notice the the
+ compile has been rerun and hence the other tasks also need
+ to run again.
+ </p><p>
+ You can view a list of tasks in a given package by running
+ the listtasks task e.g. <span><strong class="command">bitbake matchbox-desktop -c
+ listtasks</strong></span>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-dependencies"></a>4.3. Dependency Graphs</h3></div></div></div><p>
+ Sometimes it can be hard to see why bitbake wants to build
+ some other packages before a given package you've specified.
+ <span><strong class="command">bitbake -g targetname</strong></span> will create
+ <code class="filename">depends.dot</code> and
+ <code class="filename">task-depends.dot</code> files in the current
+ directory. They show
+ which packages and tasks depend on which other packages and
+ tasks and are useful for debugging purposes.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-bitbake"></a>4.4. General Bitbake Problems</h3></div></div></div><p>
+ Debug output from bitbake can be seen with the "-D" option.
+ The debug output gives more information about what bitbake
+ is doing and/or why. Each -D option increases the logging
+ level, the most common usage being "-DDD".
+ </p><p>
+ The output from <span><strong class="command">bitbake -DDD -v targetname</strong></span> can reveal why
+ a certain version of a package might be chosen, why bitbake
+ picked a certain provider or help in other situations where
+ bitbake does something you're not expecting.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-buildfile"></a>4.5. Building with no dependencies</h3></div></div></div><p>
+ If you really want to build a specific .bb file, you can use
+ the form <span><strong class="command">bitbake -b somepath/somefile.bb</strong></span>. Note that this
+ will not check the dependencies so this option should only
+ be used when you know its dependencies already exist. You
+ can specify fragments of the filename and bitbake will see
+ if it can find a unique match.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-variables"></a>4.6. Variables</h3></div></div></div><p>
+ The "-e" option will dump the resulting environment for
+ either the configuration (no package specified) or for a
+ specific package when specified with the "-b" option.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-debugging-others"></a>4.7. Other Tips</h3></div></div></div><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>When adding new packages it is worth keeping an eye open for bad
+ things creeping into compiler commandlines such as references to local
+ system files (<code class="filename">/usr/lib/</code> or <code class="filename">/usr/include/</code> etc.).
+ </p></div><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>
+ If you want to remove the psplash boot splashscreen, add "psplash=false"
+ to the kernel commandline and psplash won't load allowing you to see
+ the console. It's also possible to switch out of the splashscreen by
+ switching virtual console (Fn+Left or Fn+Right on a Zaurus).
+ </p></div></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="extendpoky"></a>Chapter 3. Extending Poky</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#usingpoky-extend-addpkg">1. Adding a Package</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-extend-addpkg-singlec">1.1. Single .c File Package (Hello World!)</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-autotools">1.2. Autotooled Package</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-makefile">1.3. Makefile-Based Package</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-files">1.4. Controlling packages content</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-addpkg-postinstalls">1.5. Post Install Scripts</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-extend-customimage">2. Customising Images</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-extend-customimage-custombb">2.1. Customising Images through a custom image .bb files</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-customimage-customtasks">2.2. Customising Images through custom tasks</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-customimage-imagefeatures">2.3. Customising Images through custom IMAGE_FEATURES</a></span></dt><dt><span class="section"><a href="#usingpoky-extend-customimage-localconf">2.4. Customising Images through local.conf</a></span></dt></dl></dd><dt><span class="section"><a href="#platdev-newmachine">3. Porting Poky to a new machine</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-newmachine-conffile">3.1. Adding the machine configuration file</a></span></dt><dt><span class="section"><a href="#platdev-newmachine-kernel">3.2. Adding a kernel for the machine</a></span></dt><dt><span class="section"><a href="#platdev-newmachine-formfactor">3.3. Adding a formfactor configuration file</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-changes">4. Making and Maintaining Changes</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-changes-collections">4.1. Bitbake Collections</a></span></dt><dt><span class="section"><a href="#usingpoky-changes-commits">4.2. Committing Changes</a></span></dt><dt><span class="section"><a href="#usingpoky-changes-prbump">4.3. Package Revision Incrementing</a></span></dt></dl></dd><dt><span class="section"><a href="#usingpoky-modifing-packages">5. Modifying Package Source Code</a></span></dt><dd><dl><dt><span class="section"><a href="#usingpoky-modifying-packages-quilt">5.1. Modifying Package Source Code with quilt</a></span></dt></dl></dd></dl></div><p>
+ This section gives information about how to extend the functionality
+ already present in Poky, documenting standard tasks such as adding new
+ software packages, extending or customising images or porting poky to
+ new hardware (adding a new machine). It also contains advice about how
+ to manage the process of making changes to Poky to achieve best results.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-extend-addpkg"></a>1. Adding a Package</h2></div></div></div><p>
+ To add package into Poky you need to write a recipe for it.
+ Writing a recipe means creating a .bb file which sets various
+ variables. The variables
+ useful for recipes are detailed in the <a href="#ref-varlocality-recipe-required" title="4. Recipe Variables - Required">
+ recipe reference</a> section along with more detailed information
+ about issues such as recipe naming.
+ </p><p>
+ The simplest way to add a new package is to base it on a similar
+ pre-existing recipe. There are some examples below of how to add
+ standard types of packages:
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-addpkg-singlec"></a>1.1. Single .c File Package (Hello World!)</h3></div></div></div><p>
+ To build an application from a single file stored locally requires a
+ recipe which has the file listed in the <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em> variable. In addition
+ the <code class="function">do_compile</code> and <code class="function">do_install</code>
+ tasks need to be manually written. The <em class="glossterm"><a href="#var-S" title="S">
+ S</a></em> variable defines the directory containing the source
+ code which in this case is set equal to <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">
+ WORKDIR</a></em>, the directory BitBake uses for the build.
+ </p><pre class="programlisting">
+DESCRIPTION = "Simple helloworld application"
+SECTION = "examples"
+LICENSE = "MIT"
+
+SRC_URI = "file://helloworld.c"
+
+S = "${WORKDIR}"
+
+do_compile() {
+ ${CC} helloworld.c -o helloworld
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 helloworld ${D}${bindir}
+}
+ </pre><p>
+ As a result of the build process "helloworld" and "helloworld-dbg"
+ packages will be built.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-addpkg-autotools"></a>1.2. Autotooled Package</h3></div></div></div><p>
+ Applications which use autotools (autoconf, automake)
+ require a recipe which has a source archive listed in
+ <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em> and
+ <span><strong class="command">inherit autotools</strong></span> to instruct BitBake to use the
+ <code class="filename">autotools.bbclass</code> which has
+ definitions of all the steps
+ needed to build an autotooled application.
+ The result of the build will be automatically packaged and if
+ the application uses NLS to localise then packages with
+ locale information will be generated (one package per
+ language).
+ </p><pre class="programlisting">
+DESCRIPTION = "GNU Helloworld application"
+SECTION = "examples"
+LICENSE = "GPLv2"
+
+SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.bz2"
+
+inherit autotools
+ </pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-addpkg-makefile"></a>1.3. Makefile-Based Package</h3></div></div></div><p>
+ Applications which use GNU make require a recipe which has
+ the source archive listed in <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em>.
+ Adding a <code class="function">do_compile</code> step
+ is not needed as by default BitBake will start the "make"
+ command to compile the application. If there is a need for
+ additional options to make then they should be stored in the
+ <em class="glossterm"><a href="#var-EXTRA_OEMAKE" title="EXTRA_OEMAKE">EXTRA_OEMAKE</a></em> variable - BitBake
+ will pass them into the GNU
+ make invocation. A <code class="function">do_install</code> task is required
+ - otherwise BitBake will run an empty <code class="function">do_install</code>
+ task by default.
+ </p><p>
+ Some applications may require extra parameters to be passed to
+ the compiler, for example an additional header path. This can
+ be done buy adding to the <em class="glossterm"><a href="#var-CFLAGS" title="CFLAGS">CFLAGS</a></em> variable, as in the example below.
+ </p><pre class="programlisting">
+DESCRIPTION = "Tools for managing memory technology devices."
+SECTION = "base"
+DEPENDS = "zlib"
+HOMEPAGE = "http://www.linux-mtd.infradead.org/"
+LICENSE = "GPLv2"
+
+SRC_URI = "ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-${PV}.tar.gz"
+
+CFLAGS_prepend = "-I ${S}/include "
+
+do_install() {
+ oe_runmake install DESTDIR=${D}
+}
+ </pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-addpkg-files"></a>1.4. Controlling packages content</h3></div></div></div><p>
+ The variables <em class="glossterm"><a href="#var-PACKAGES" title="PACKAGES">PACKAGES</a></em> and
+ <em class="glossterm"><a href="#var-FILES" title="FILES">FILES</a></em> are used to split an
+ application into multiple packages.
+ </p><p>
+ Below the "libXpm" recipe is used as an example. By
+ default the "libXpm" recipe generates one package
+ which contains the library
+ and also a few binaries. The recipe can be adapted to
+ split the binaries into separate packages.
+ </p><pre class="programlisting">
+require xorg-lib-common.inc
+
+DESCRIPTION = "X11 Pixmap library"
+LICENSE = "X-BSD"
+DEPENDS += "libxext"
+PE = "1"
+
+XORG_PN = "libXpm"
+
+PACKAGES =+ "sxpm cxpm"
+FILES_cxpm = "${bindir}/cxpm"
+FILES_sxpm = "${bindir}/sxpm"
+ </pre><p>
+ In this example we want to ship the "sxpm" and "cxpm" binaries
+ in separate packages. Since "bindir" would be packaged into the
+ main <em class="glossterm"><a href="#var-PN" title="PN">PN</a></em>
+ package as standard we prepend the <em class="glossterm"><a href="#var-PACKAGES" title="PACKAGES">PACKAGES</a></em> variable so
+ additional package names are added to the start of list. The
+ extra <em class="glossterm"><a href="#var-PN" title="PN">FILES</a></em>_*
+ variables then contain information to specify which files and
+ directories goes into which package.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-addpkg-postinstalls"></a>1.5. Post Install Scripts</h3></div></div></div><p>
+ To add a post-installation script to a package, add
+ a <code class="function">pkg_postinst_PACKAGENAME()</code>
+ function to the .bb file
+ where PACKAGENAME is the name of the package to attach
+ the postinst script to. A post-installation function has the following structure:
+ </p><pre class="programlisting">
+pkg_postinst_PACKAGENAME () {
+#!/bin/sh -e
+# Commands to carry out
+}
+ </pre><p>
+ The script defined in the post installation function
+ gets called when the rootfs is made. If the script succeeds,
+ the package is marked as installed. If the script fails,
+ the package is marked as unpacked and the script will be
+ executed again on the first boot of the image.
+ </p><p>
+ Sometimes it is necessary that the execution of a post-installation
+ script is delayed until the first boot, because the script
+ needs to be executed the device itself. To delay script execution
+ until boot time, the post-installation function should have the
+ following structure:
+ </p><pre class="programlisting">
+pkg_postinst_PACKAGENAME () {
+#!/bin/sh -e
+if [ x"$D" = "x" ]; then
+# Actions to carry out on the device go here
+else
+exit 1
+fi
+}
+ </pre><p>
+ The structure above delays execution until first boot
+ because the <em class="glossterm"><a href="#var-D" title="D">D</a></em> variable points
+ to the 'image'
+ directory when the rootfs is being made at build time but
+ is unset when executed on the first boot.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-extend-customimage"></a>2. Customising Images</h2></div></div></div><p>
+ Poky images can be customised to satisfy
+ particular requirements. Several methods are detailed below
+ along with guidelines of when to use them.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-customimage-custombb"></a>2.1. Customising Images through a custom image .bb files</h3></div></div></div><p>
+ One way to get additional software into an image is by creating a
+ custom image. The recipe will contain two lines:
+ </p><pre class="programlisting">
+IMAGE_INSTALL = "task-poky-x11-base package1 package2"
+
+inherit poky-image
+ </pre><p>
+ By creating a custom image, a developer has total control
+ over the contents of the image. It is important use
+ the correct names of packages in the <em class="glossterm"><a href="#var-IMAGE_INSTALL" title="IMAGE_INSTALL">IMAGE_INSTALL</a></em> variable.
+ The names must be in
+ the OpenEmbedded notation instead of Debian notation, for example
+ "glibc-dev" instead of "libc6-dev" etc.
+ </p><p>
+ The other method of creating a new image is by modifying
+ an existing image. For example if a developer wants to add
+ "strace" into "poky-image-sato" the following recipe can
+ be used:
+ </p><pre class="programlisting">
+require poky-image-sato.bb
+
+IMAGE_INSTALL += "strace"
+ </pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-customimage-customtasks"></a>2.2. Customising Images through custom tasks</h3></div></div></div><p>
+ For for complex custom images, the best approach is to create a custom
+ task package which is them used to build the image (or images). A good
+ example of a tasks package is <code class="filename">meta/packages/tasks/task-poky.bb
+ </code>. The <em class="glossterm"><a href="#var-PACKAGES" title="PACKAGES">PACKAGES</a></em>
+ variable lists the task packages to build (along with the complimentary
+ -dbg and -dev packages). For each package added,
+ <em class="glossterm"><a href="#var-PACKAGES" title="PACKAGES">RDEPENDS</a></em> and
+ <em class="glossterm"><a href="#var-PACKAGES" title="PACKAGES">RRECOMMENDS</a></em>
+ entries can then be added each containing a list of packages the parent
+ task package should contain. An example would be:
+ </p><p>
+ </p><pre class="programlisting">
+DESCRIPTION = "My Custom Tasks"
+
+PACKAGES = "\
+ task-custom-apps \
+ task-custom-apps-dbg \
+ task-custom-apps-dev \
+ task-custom-tools \
+ task-custom-tools-dbg \
+ task-custom-tools-dev \
+ "
+
+RDEPENDS_task-custom-apps = "\
+ dropbear \
+ portmap \
+ psplash"
+
+RDEPENDS_task-custom-tools = "\
+ oprofile \
+ oprofileui-server \
+ lttng-control \
+ lttng-viewer"
+
+RRECOMMENDS_task-custom-tools = "\
+ kernel-module-oprofile"
+</pre><p>
+ </p><p>
+ In this example, two tasks packages are created, task-custom-apps and
+ task-custom-tools with the dependencies and recommended package dependencies
+ listed. To build an image using these task packages, you would then add
+ "task-custom-apps" and/or "task-custom-tools" to <em class="glossterm"><a href="#var-IMAGE_INSTALL" title="IMAGE_INSTALL">IMAGE_INSTALL</a></em> or other forms
+ of image dependencies as described in other areas of this section.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-customimage-imagefeatures"></a>2.3. Customising Images through custom <em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em></h3></div></div></div><p>
+ Ultimately users may want to add extra image "features" as used by Poky with the
+ <em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em>
+ variable. To create these, the best reference is <code class="filename">meta/classes/poky-image.bbclass</code>
+ which illustrates how poky achieves this. In summary, the file looks at the contents of the
+ <em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em>
+ variable and based on this generates the <em class="glossterm"><a href="#var-IMAGE_INSTALL" title="IMAGE_INSTALL">
+ IMAGE_INSTALL</a></em> variable automatically. Extra features can be added by
+ extending the class or creating a custom class for use with specialised image .bb files.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-extend-customimage-localconf"></a>2.4. Customising Images through local.conf</h3></div></div></div><p>
+ It is possible to customise image contents by abusing
+ variables used by distribution maintainers in local.conf.
+ This method only allows the addition of packages and
+ is not recommended.
+ </p><p>
+ To add an "strace" package into the image the following is
+ added to local.conf:
+ </p><pre class="programlisting">
+DISTRO_EXTRA_RDEPENDS += "strace"
+ </pre><p>
+ However, since the <em class="glossterm"><a href="#var-DISTRO_EXTRA_RDEPENDS" title="DISTRO_EXTRA_RDEPENDS">
+ DISTRO_EXTRA_RDEPENDS</a></em> variable is for
+ distribution maintainers this method does not make
+ adding packages as simple as a custom .bb file. Using
+ this method, a few packages will need to be recreated
+ and the the image built.
+ </p><pre class="programlisting">
+bitbake -cclean task-boot task-base task-poky
+bitbake poky-image-sato
+ </pre><p>
+ Cleaning task-* packages is required because they use the
+ <em class="glossterm"><a href="#var-DISTRO_EXTRA_RDEPENDS" title="DISTRO_EXTRA_RDEPENDS">
+ DISTRO_EXTRA_RDEPENDS</a></em> variable. There is no need to
+ build them by hand as Poky images depend on the packages they contain so
+ dependencies will be built automatically. For this reason we don't use the
+ "rebuild" task in this case since "rebuild" does not care about
+ dependencies - it only rebuilds the specified package.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="platdev-newmachine"></a>3. Porting Poky to a new machine</h2></div></div></div><p>
+ Adding a new machine to Poky is a straightforward process and
+ this section gives an idea of the changes that are needed. This guide is
+ meant to cover adding machines similar to those Poky already supports.
+ Adding a totally new architecture might require gcc/glibc changes as
+ well as updates to the site information and, whilst well within Poky's
+ capabilities, is outside the scope of this section.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-newmachine-conffile"></a>3.1. Adding the machine configuration file</h3></div></div></div><p>
+ A .conf file needs to be added to conf/machine/ with details of the
+ device being added. The name of the file determines the name Poky will
+ use to reference this machine.
+ </p><p>
+ The most important variables to set in this file are <em class="glossterm">
+ <a href="#var-TARGET_ARCH" title="TARGET_ARCH">TARGET_ARCH</a></em>
+ (e.g. "arm"), <em class="glossterm"><a href="#var-PREFERRED_PROVIDER" title="PREFERRED_PROVIDER">
+ PREFERRED_PROVIDER</a></em>_virtual/kernel (see below) and
+ <em class="glossterm"><a href="#var-MACHINE_FEATURES" title="MACHINE_FEATURES">MACHINE_FEATURES
+ </a></em> (e.g. "kernel26 apm screen wifi"). Other variables
+ like <em class="glossterm"><a href="#var-SERIAL_CONSOLE" title="SERIAL_CONSOLE">SERIAL_CONSOLE
+ </a></em> (e.g. "115200 ttyS0"), <em class="glossterm">
+ <a href="#var-KERNEL_IMAGETYPE" title="KERNEL_IMAGETYPE">KERNEL_IMAGETYPE</a>
+ </em> (e.g. "zImage") and <em class="glossterm"><a href="#var-IMAGE_FSTYPES" title="IMAGE_FSTYPES">
+ IMAGE_FSTYPES</a></em> (e.g. "tar.gz jffs2") might also be
+ needed. Full details on what these variables do and the meaning of
+ their contents is available through the links.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-newmachine-kernel"></a>3.2. Adding a kernel for the machine</h3></div></div></div><p>
+ Poky needs to be able to build a kernel for the machine. You need
+ to either create a new kernel recipe for this machine or extend an
+ existing recipe. There are plenty of kernel examples in the
+ packages/linux directory which can be used as references.
+ </p><p>
+ If creating a new recipe the "normal" recipe writing rules apply
+ for setting up a <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI
+ </a></em> including any patches and setting <em class="glossterm">
+ <a href="#var-S" title="S">S</a></em> to point at the source
+ code. You will need to create a configure task which configures the
+ unpacked kernel with a defconfig be that through a "make defconfig"
+ command or more usually though copying in a suitable defconfig and
+ running "make oldconfig". By making use of "inherit kernel" and also
+ maybe some of the linux-*.inc files, most other functionality is
+ centralised and the the defaults of the class normally work well.
+ </p><p>
+ If extending an existing kernel it is usually a case of adding a
+ suitable defconfig file in a location similar to that used by other
+ machine's defconfig files in a given kernel, possibly listing it in
+ the SRC_URI and adding the machine to the expression in <em class="glossterm">
+ <a href="#var-COMPATIBLE_MACHINES" title="COMPATIBLE_MACHINES">COMPATIBLE_MACHINES</a>
+ </em>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-newmachine-formfactor"></a>3.3. Adding a formfactor configuration file</h3></div></div></div><p>
+ A formfactor configuration file provides information about the
+ target hardware on which Poky is running, and that Poky cannot
+ obtain from other sources such as the kernel. Some examples of
+ information contained in a formfactor configuration file include
+ framebuffer orientation, whether or not the system has a keyboard,
+ the positioning of the keyboard in relation to the screen, and
+ screen resolution.
+ </p><p>
+ Sane defaults should be used in most cases, but if customisation is
+ necessary you need to create a <code class="filename">machconfig</code> file
+ under <code class="filename">meta/packages/formfactor/files/MACHINENAME/</code>
+ where <code class="literal">MACHINENAME</code> is the name for which this infomation
+ applies. For information about the settings available and the defaults, please see
+ <code class="filename">meta/packages/formfactor/files/config</code>.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-changes"></a>4. Making and Maintaining Changes</h2></div></div></div><p>
+ We recognise that people will want to extend/configure/optimise Poky for
+ their specific uses, especially due to the extreme configurability and
+ flexibility Poky offers. To ensure ease of keeping pace with future
+ changes in Poky we recommend making changes to Poky in a controlled way.
+ </p><p>
+ Poky supports the idea of <a href="#usingpoky-changes-collections" title="4.1. Bitbake Collections">"collections"</a> which when used
+ properly can massively ease future upgrades and allow segregation
+ between the Poky core and a given developer's changes. Some other advice on
+ managing changes to Poky is also given in the following section.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-changes-collections"></a>4.1. Bitbake Collections</h3></div></div></div><p>
+ Often, people want to extend Poky either through adding packages
+ or overriding files contained within Poky to add their own
+ functionality. Bitbake has a powerful mechanism called
+ collections which provide a way to handle this which is fully
+ supported and actively encouraged within Poky.
+ </p><p>
+ In the standard tree, meta-extras is an example of how you can
+ do this. As standard the data in meta-extras is not used on a
+ Poky build but local.conf.sample shows how to enable it:
+ </p><p>
+ </p><pre class="literallayout">
+BBFILES := "${OEROOT}/meta/packages/*/*.bb ${OEROOT}/meta-extras/packages/*/*.bb"
+BBFILE_COLLECTIONS = "normal extras"
+BBFILE_PATTERN_normal = "^${OEROOT}/meta/"
+BBFILE_PATTERN_extras = "^${OEROOT}/meta-extras/"
+BBFILE_PRIORITY_normal = "5"
+BBFILE_PRIORITY_extras = "5"</pre><p>
+ </p><p>
+ As can be seen, the extra recipes are added to BBFILES. The
+ BBFILE_COLLECTIONS variable is then set to contain a list of
+ collection names. The BBFILE_PATTERN variables are regular
+ expressions used to match files from BBFILES into a particular
+ collection in this case by using the base pathname.
+ The BBFILE_PRIORITY variable then assigns the different
+ priorities to the files in different collections. This is useful
+ in situations where the same package might appear in both
+ repositories and allows you to choose which collection should
+ 'win'.
+ </p><p>
+ This works well for recipes. For bbclasses and configuration
+ files, you can use the BBPATH environment variable. In this
+ case, the first file with the matching name found in BBPATH is
+ the one that is used, just like the PATH variable for binaries.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-changes-commits"></a>4.2. Committing Changes</h3></div></div></div><p>
+ Modifications to Poky are often managed under some kind of source
+ revision control system. The policy for committing to such systems
+ is important as some simple policy can significantly improve
+ usability. The tips below are based on the policy that OpenedHand
+ uses for commits to Poky.
+ </p><p>
+ It helps to use a consistent style for commit messages when committing
+ changes. We've found a style where the first line of a commit message
+ summarises the change and starts with the name of any package affected
+ work well. Not all changes are to specific packages so the prefix could
+ also be a machine name or class name instead. If a change needs a longer
+ description this should follow the summary.
+ </p><p>
+ Any commit should be self contained in that it should leave the
+ metadata in a consistent state, buildable before and after the
+ commit. This helps ensure the autobuilder test results are valid
+ but is good practice regardless.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-changes-prbump"></a>4.3. Package Revision Incrementing</h3></div></div></div><p>
+ If a committed change will result in changing the package output
+ then the value of the <em class="glossterm"><a href="#var-PR" title="PR">PR</a>
+ </em> variable needs to be increased (commonly referred to
+ as 'bumped') as part of that commit. Only integer values are used
+ and <em class="glossterm"><a href="#var-PR" title="PR">PR</a></em> =
+ "r0" should not be added into new recipes as this is default value.
+ When upgrading the version of a package (<em class="glossterm"><a href="#var-PV" title="PV">PV</a></em>), the <em class="glossterm"><a href="#var-PR" title="PR">PR</a></em> variable should be removed.
+ </p><p>
+ The aim is that the package version will only ever increase. If
+ for some reason <em class="glossterm"><a href="#var-PV" title="PV">PV</a></em>
+ will change and but not increase, the <em class="glossterm"><a href="#var-PE" title="PE">PE</a></em> (Package Epoch) can
+ be increased (it defaults to '0'). The version numbers aim to
+ follow the <a href="http://www.debian.org/doc/debian-policy/ch-controlfields.html" target="_top">
+ Debian Version Field Policy Guidelines</a> which define how
+ versions are compared and hence what "increasing" means.
+ </p><p>
+ There are two reasons for doing this, the first is to ensure that
+ when a developer updates and rebuilds, they get all the changes to
+ the repository and don't have to remember to rebuild any sections.
+ The second is to ensure that target users are able to upgrade their
+ devices via their package manager such as with the <span><strong class="command">
+ ipkg update;ipkg upgrade</strong></span> commands (or similar for
+ dpkg/apt or rpm based systems). The aim is to ensure Poky has
+ upgradable packages in all cases.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="usingpoky-modifing-packages"></a>5. Modifying Package Source Code</h2></div></div></div><p>
+ Poky is usually used to build software rather than modifying
+ it. However, there are ways Poky can be used to modify software.
+ </p><p>
+ During building, the sources are available in <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em> directory.
+ Where exactly this is depends on the type of package and the
+ architecture of target device. For a standard recipe not
+ related to <em class="glossterm"><a href="#var-MACHINE" title="MACHINE">MACHINE</a></em> it will be
+ <code class="filename">tmp/work/PACKAGE_ARCH-poky-TARGET_OS/PN-PV-PR/</code>.
+ Target device dependent packages use <em class="glossterm"><a href="#var-MACHINE" title="MACHINE">MACHINE
+ </a></em>
+ instead of <em class="glossterm"><a href="#var-PACKAGE_ARCH" title="PACKAGE_ARCH">PACKAGE_ARCH
+ </a></em>
+ in the directory name.
+ </p><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>
+ Check the package recipe sets the <em class="glossterm"><a href="#var-S" title="S">S</a></em> variable to something
+ other than standard <code class="filename">WORKDIR/PN-PV/</code> value.
+ </p></div><p>
+ After building a package, a user can modify the package source code
+ without problem. The easiest way to test changes is by calling the
+ "compile" task:
+ </p><pre class="programlisting">
+bitbake --cmd compile --force NAME_OF_PACKAGE
+ </pre><p>
+ Other tasks may also be called this way.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="usingpoky-modifying-packages-quilt"></a>5.1. Modifying Package Source Code with quilt</h3></div></div></div><p>
+ By default Poky uses <a href="http://savannah.nongnu.org/projects/quilt" target="_top">quilt</a>
+ to manage patches in <code class="function">do_patch</code> task.
+ It is a powerful tool which can be used to track all
+ modifications done to package sources.
+ </p><p>
+ Before modifying source code it is important to
+ notify quilt so it will track changes into new patch
+ file:
+ </p><pre class="programlisting">
+quilt new NAME-OF-PATCH.patch
+ </pre><p>
+
+ Then add all files which will be modified into that
+ patch:
+ </p><pre class="programlisting">
+quilt add file1 file2 file3
+ </pre><p>
+
+ Now start editing. At the end quilt needs to be used
+ to generate final patch which will contain all
+ modifications:
+ </p><pre class="programlisting">
+quilt refresh
+ </pre><p>
+
+ The resulting patch file can be found in the
+ <code class="filename">patches/</code> subdirectory of the source
+ (<em class="glossterm"><a href="#var-S" title="S">S</a></em>) directory. For future builds it
+ should be copied into
+ Poky metadata and added into <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em> of a recipe:
+ </p><pre class="programlisting">
+SRC_URI += "file://NAME-OF-PATCH.patch;patch=1"
+ </pre><p>
+
+ This also requires a bump of <em class="glossterm"><a href="#var-PR" title="PR">PR</a></em> value in the same recipe as we changed resulting packages.
+ </p></div></div></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="platdev"></a>Chapter 4. Platform Development with Poky</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#platdev-appdev">1. Software development</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-appdev-external-anjuta">1.1. Developing externally using the Anjuta Plugin</a></span></dt><dt><span class="section"><a href="#platdev-appdev-external-sdk">1.2. Developing externally using the Poky SDK</a></span></dt><dt><span class="section"><a href="#platdev-appdev-qemu">1.3. Developing externally in QEMU</a></span></dt><dt><span class="section"><a href="#platdev-appdev-chroot">1.4. Developing externally in a chroot</a></span></dt><dt><span class="section"><a href="#platdev-appdev-insitu">1.5. Developing in Poky directly</a></span></dt><dt><span class="section"><a href="#platdev-appdev-devshell">1.6. Developing with 'devshell'</a></span></dt><dt><span class="section"><a href="#platdev-appdev-srcrev">1.7. Developing within Poky with an external SCM based package</a></span></dt></dl></dd><dt><span class="section"><a href="#platdev-gdb-remotedebug">2. Debugging with GDB Remotely</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-gdb-remotedebug-launch-gdbserver">2.1. Launching GDBSERVER on the target</a></span></dt><dt><span class="section"><a href="#platdev-gdb-remotedebug-launch-gdb">2.2. Launching GDB on the host computer</a></span></dt></dl></dd><dt><span class="section"><a href="#platdev-oprofile">3. Profiling with OProfile</a></span></dt><dd><dl><dt><span class="section"><a href="#platdev-oprofile-target">3.1. Profiling on the target</a></span></dt><dt><span class="section"><a href="#platdev-oprofile-oprofileui">3.2. Using OProfileUI</a></span></dt></dl></dd></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="platdev-appdev"></a>1. Software development</h2></div></div></div><p>
+ Poky supports several methods of software development. These different
+ forms of development are explained below and can be switched
+ between as needed.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-external-anjuta"></a>1.1. Developing externally using the Anjuta Plugin</h3></div></div></div><p>
+ An Anjuta IDE plugin exists to make developing software within the Poky framework
+ easier for the application developer. It presents a graphical IDE from which the
+ developer can cross compile an application then deploy and execute the output in a QEMU
+ emulation session. It also supports cross debugging and profiling.
+ </p><p>
+ To use the plugin, a toolchain and SDK built by Poky is required along with Anjuta and the Anjuta
+ plugin. The Poky Anjuta plugin is available from the OpenedHand SVN repository located at
+ http://svn.o-hand.com/repos/anjuta-poky/trunk/anjuta-plugin-sdk/; a web interface
+ to the repository can be accessed at <a href="http://svn.o-hand.com/view/anjuta-poky/" target="_top">http://svn.o-hand.com/view/anjuta-poky/</a>.
+ See the README file contained in the project for more information.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-external-sdk"></a>1.2. Developing externally using the Poky SDK</h3></div></div></div><p>
+ The meta-toolchain and meta-toolchain-sdk targets (<a href="#ref-images" title="Appendix 4. Reference: Images">see
+ the images section</a>) build tarballs which contain toolchains and
+ libraries suitable for application development outside Poky. These unpack into the
+ <code class="filename">/usr/local/poky</code> directory and contain
+ a setup script, e.g.
+ <code class="filename">/usr/local/poky/eabi-glibc/arm/environment-setup</code> which
+ can be sourced to initialise a suitable environment. After sourcing this, the
+ compiler, QEMU scripts, QEMU binary, a special version of pkgconfig and other
+ useful utilities are added to the PATH. Variables to assist pkgconfig and
+ autotools are also set so that, for example, configure can find pre-generated test
+ results for tests which need target hardware to run.
+ </p><p>
+ Using the toolchain with autotool enabled packages is straightforward, just pass the
+ appropriate host option to configure e.g. "./configure --host=arm-poky-linux-gnueabi".
+ For other projects it is usually a case of ensuring the cross tools are used e.g.
+ CC=arm-poky-linux-gnueabi-gcc and LD=arm-poky-linux-gnueabi-ld.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-qemu"></a>1.3. Developing externally in QEMU</h3></div></div></div><p>
+ Running Poky QEMU images is covered in the <a href="#intro-quickstart-qemu" title="4.2. Downloading and Using Prebuilt Images">Running an Image</a> section.
+ </p><p>
+ Poky's QEMU images contain a complete native toolchain. This means
+ that applications can be developed within QEMU in the same was as a
+ normal system. Using qemux86 on an x86 machine is fast since the
+ guest and host architectures match, qemuarm is slower but gives
+ faithful emulation of ARM specific issues. To speed things up these
+ images support using distcc to call a cross-compiler outside the
+ emulated system too. If <span><strong class="command">runqemu</strong></span> was used to start
+ QEMU, and distccd is present on the host system, any bitbake cross
+ compiling toolchain available from the build system will automatically
+ be used from within qemu simply by calling distcc
+ (<span><strong class="command">export CC="distcc"</strong></span> can be set in the enviroment).
+ Alterntatively, if a suitable SDK/toolchain is present in
+ <code class="filename">/usr/local/poky</code> it will also
+ automatically be used.
+ </p><p>
+ There are several options for connecting into the emulated system.
+ QEMU provides a framebuffer interface which has standard consoles
+ available. There is also a serial connection available which has a
+ console to the system running on it and IP networking as standard.
+ The images have a dropbear ssh server running with the root password
+ disabled allowing standard ssh and scp commands to work. The images
+ also contain an NFS server exporting the guest's root filesystem
+ allowing that to be made available to the host.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-chroot"></a>1.4. Developing externally in a chroot</h3></div></div></div><p>
+ If you have a system that matches the architecture of the Poky machine you're using,
+ such as qemux86, you can run binaries directly from the image on the host system
+ using a chroot combined with tools like <a href="http://projects.o-hand.com/xephyr" target="_top">Xephyr</a>.
+ </p><p>
+ Poky has some scripts to make using its qemux86 images within a chroot easier. To use
+ these you need to install the poky-scripts package or otherwise obtain the
+ <code class="filename">poky-chroot-setup</code> and <code class="filename">poky-chroot-run</code> scripts.
+ You also need Xephyr and chrootuid binaries available. To initialize a system use the setup script:
+ </p><p>
+ </p><pre class="literallayout">
+# poky-chroot-setup &lt;qemux86-rootfs.tgz&gt; &lt;target-directory&gt;
+</pre><p>
+ </p><p>
+ which will unpack the specified qemux86 rootfs tarball into the target-directory.
+ You can then start the system with:
+ </p><p>
+ </p><pre class="literallayout">
+# poky-chroot-run &lt;target-directory&gt; &lt;command&gt;
+</pre><p>
+ </p><p>
+ where the target-directory is the place the rootfs was unpacked to and command is
+ an optional command to run. If no command is specified, the system will drop you
+ within a bash shell. A Xephyr window will be displayed containing the emulated
+ system and you may be asked for a password since some of the commands used for
+ bind mounting directories need to be run using sudo.
+ </p><p>
+ There are limits as to how far the the realism of the chroot environment extends.
+ It is useful for simple development work or quick tests but full system emulation
+ with QEMU offers a much more realistic environment for more complex development
+ tasks. Note that chroot support within Poky is still experimental.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-insitu"></a>1.5. Developing in Poky directly</h3></div></div></div><p>
+ Working directly in Poky is a fast and effective development technique.
+ The idea is that you can directly edit files in
+ <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em>
+ or the source directory <em class="glossterm"><a href="#var-S" title="S">S</a></em>
+ and then force specific tasks to rerun in order to test the changes.
+ An example session working on the matchbox-desktop package might
+ look like this:
+ </p><p>
+ </p><pre class="literallayout">
+$ bitbake matchbox-desktop
+$ sh
+$ cd tmp/work/armv5te-poky-linux-gnueabi/matchbox-desktop-2.0+svnr1708-r0/
+$ cd matchbox-desktop-2
+$ vi src/main.c
+$ exit
+$ bitbake matchbox-desktop -c compile -f
+$ bitbake matchbox-desktop
+</pre><p>
+ </p><p>
+ Here, we build the package, change into the work directory for the package,
+ change a file, then recompile the package. Instead of using sh like this,
+ you can also use two different terminals. The risk with working like this
+ is that a command like unpack could wipe out the changes you've made to the
+ work directory so you need to work carefully.
+ </p><p>
+ It is useful when making changes directly to the work directory files to do
+ so using quilt as detailed in the <a href="#usingpoky-modifying-packages-quilt" title="5.1. Modifying Package Source Code with quilt">
+ modifying packages with quilt</a> section. The resulting patches can be copied
+ into the recipe directory and used directly in the <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em>.
+ </p><p>
+ For a review of the skills used in this section see Sections <a href="#usingpoky-components-bitbake" title="1.1. Bitbake">2.1.1</a> and <a href="#usingpoky-debugging-taskrunning" title="4.2. Running specific tasks">2.4.2</a>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-devshell"></a>1.6. Developing with 'devshell'</h3></div></div></div><p>
+ When debugging certain commands or even to just edit packages, the
+ 'devshell' can be a useful tool. To start it you run a command like:
+ </p><p>
+ </p><pre class="literallayout">
+$ bitbake matchbox-desktop -c devshell
+</pre><p>
+ </p><p>
+ which will open a terminal with a shell prompt within the Poky
+ environment. This means PATH is setup to include the cross toolchain,
+ the pkgconfig variables are setup to find the right .pc files,
+ configure will be able to find the Poky site files etc. Within this
+ environment, you can run configure or compile command as if they
+ were being run by Poky itself. You are also changed into the
+ source (<em class="glossterm"><a href="#var-S" title="S">S</a></em>)
+ directory automatically. When finished with the shell just exit it
+ or close the terminal window.
+ </p><p>
+ The default shell used by devshell is the gnome-terminal. Other
+ forms of terminal can also be used by setting the <em class="glossterm">
+ <a href="#var-TERMCMD" title="TERMCMD">TERMCMD</a></em> and <em class="glossterm">
+ <a href="#var-TERMCMDRUN" title="TERMCMDRUN">TERMCMDRUN</a></em> variables
+ in local.conf. For examples of the other options available, see
+ <code class="filename">meta/conf/bitbake.conf</code>. An external shell is
+ launched rather than opening directly into the original terminal
+ window to make interaction with bitbakes multiple threads easier
+ and also allow a client/server split of bitbake in the future
+ (devshell will still work over X11 forwarding or similar).
+ </p><p>
+ It is worth remembering that inside devshell you need to use the full
+ compiler name such as <span><strong class="command">arm-poky-linux-gnueabi-gcc</strong></span>
+ instead of just <span><strong class="command">gcc</strong></span> and the same applies to other
+ applications from gcc, bintuils, libtool etc. Poky will have setup
+ environmental variables such as CC to assist applications, such as make,
+ find the correct tools.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-appdev-srcrev"></a>1.7. Developing within Poky with an external SCM based package</h3></div></div></div><p>
+ If you're working on a recipe which pulls from an external SCM it
+ is possible to have Poky notice new changes added to the
+ SCM and then build the latest version. This only works for SCMs
+ where its possible to get a sensible revision number for changes.
+ Currently it works for svn, git and bzr repositories.
+ </p><p>
+ To enable this behaviour it is simply a case of adding <em class="glossterm">
+ <a href="#var-SRCREV" title="SRCREV">SRCREV</a></em>_pn-<em class="glossterm">
+ <a href="#var-PN" title="PN">PN</a></em> = "${AUTOREV}" to
+ local.conf where <em class="glossterm"><a href="#var-PN" title="PN">PN</a></em>
+ is the name of the package for which you want to enable automatic source
+ revision updating.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="platdev-gdb-remotedebug"></a>2. Debugging with GDB Remotely</h2></div></div></div><p>
+ <a href="http://sourceware.org/gdb/" target="_top">GDB</a> (The GNU Project Debugger)
+ allows you to examine running programs to understand and fix problems and
+ also to perform postmortem style analsys of program crashes. It is available
+ as a package within poky and installed by default in sdk images. It works best
+ when -dbg packages for the application being debugged are installed as the
+ extra symbols give more meaningful output from GDB.
+ </p><p>
+ Sometimes, due to memory or disk space constraints, it is not possible
+ to use GDB directly on the remote target to debug applications. This is
+ due to the fact that
+ GDB needs to load the debugging information and the binaries of the
+ process being debugged. GDB then needs to perform many
+ computations to locate information such as function names, variable
+ names and values, stack traces, etc. even before starting the debugging
+ process. This places load on the target system and can alter the
+ characteristics of the program being debugged.
+ </p><p>
+ This is where GDBSERVER comes into play as it runs on the remote target
+ and does not load any debugging information from the debugged process.
+ Instead, the debugging information processing is done by a GDB instance
+ running on a distant computer - the host GDB. The host GDB then sends
+ control commands to GDBSERVER to make it stop or start the debugged
+ program, as well as read or write some memory regions of that debugged
+ program. All the debugging information loading and processing as well
+ as the heavy debugging duty is done by the host GDB, giving the
+ GDBSERVER running on the target a chance to remain small and fast.
+ </p><p>
+ As the host GDB is responsible for loading the debugging information and
+ doing the necessary processing to make actual debugging happen, the
+ user has to make sure it can access the unstripped binaries complete
+ with their debugging information and compiled with no optimisations. The
+ host GDB must also have local access to all the libraries used by the
+ debugged program. On the remote target the binaries can remain stripped
+ as GDBSERVER does not need any debugging information there. However they
+ must also be compiled without optimisation matching the host's binaries.
+ </p><p>
+ The binary being debugged on the remote target machine is hence referred
+ to as the 'inferior' in keeping with GDB documentation and terminology.
+ Further documentation on GDB, is available on
+ <a href="http://sourceware.org/gdb/documentation/" target="_top">on their site</a>.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-gdb-remotedebug-launch-gdbserver"></a>2.1. Launching GDBSERVER on the target</h3></div></div></div><p>
+ First, make sure gdbserver is installed on the target. If not,
+ install the gdbserver package (which needs the libthread-db1
+ package).
+ </p><p>
+ To launch GDBSERVER on the target and make it ready to "debug" a
+ program located at <span class="emphasis"><em>/path/to/inferior</em></span>, connect
+ to the target and launch:
+ </p><pre class="programlisting">$ gdbserver localhost:2345 /path/to/inferior</pre><p>
+ After that, gdbserver should be listening on port 2345 for debugging
+ commands coming from a remote GDB process running on the host computer.
+ Communication between the GDBSERVER and the host GDB will be done using
+ TCP. To use other communication protocols please refer to the
+ GDBSERVER documentation.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-gdb-remotedebug-launch-gdb"></a>2.2. Launching GDB on the host computer</h3></div></div></div><p>
+ Running GDB on the host computer takes a number of stages, described in the
+ following sections.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="platdev-gdb-remotedebug-launch-gdb-buildcross"></a>2.2.1. Build the cross GDB package</h4></div></div></div><p>
+ A suitable gdb cross binary is required which runs on your host computer but
+ knows about the the ABI of the remote target. This can be obtained from
+ the the Poky toolchain, e.g.
+ <code class="filename">/usr/local/poky/eabi-glibc/arm/bin/arm-poky-linux-gnueabi-gdb</code>
+ which "arm" is the target architecture and "linux-gnueabi" the target ABI.
+ </p><p>
+ Alternatively this can be built directly by Poky. To do this you would build
+ the gdb-cross package so for example you would run:
+ </p><pre class="programlisting">bitbake gdb-cross</pre><p>
+ Once built, the cross gdb binary can be found at
+ </p><pre class="programlisting">tmp/cross/bin/&lt;target-abi&gt;-gdb </pre><p>
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="platdev-gdb-remotedebug-launch-gdb-inferiorbins"></a>2.2.2. Making the inferior binaries available</h4></div></div></div><p>
+ The inferior binary needs to be available to GDB complete with all debugging
+ symbols in order to get the best possible results along with any libraries
+ the inferior depends on and their debugging symbols. There are a number of
+ ways this can be done.
+ </p><p>
+ Perhaps the easiest is to have an 'sdk' image corresponding to the plain
+ image installed on the device. In the case of 'pky-image-sato',
+ 'poky-image-sdk' would contain suitable symbols. The sdk images already
+ have the debugging symbols installed so its just a question expanding the
+ archive to some location and telling GDB where this is.
+ </p><p>
+ Alternatively, poky can build a custom directory of files for a specific
+ debugging purpose by reusing its tmp/rootfs directory, on the host computer
+ in a slightly different way to normal. This directory contains the contents
+ of the last built image. This process assumes the image running on the
+ target was the last image to be built by Poky, the package <span class="emphasis"><em>foo</em></span>
+ contains the inferior binary to be debugged has been built without without
+ optimisation and has debugging information available.
+ </p><p>
+ Firstly you want to install the <span class="emphasis"><em>foo</em></span> package to tmp/rootfs
+ by doing:
+ </p><pre class="programlisting">tmp/staging/i686-linux/usr/bin/ipkg-cl -f \
+tmp/work/&lt;target-abi&gt;/poky-image-sato-1.0-r0/temp/ipkg.conf -o \
+tmp/rootfs/ update</pre><p>
+ then,
+ </p><pre class="programlisting">tmp/staging/i686-linux/usr/bin/ipkg-cl -f \
+tmp/work/&lt;target-abi&gt;/poky-image-sato-1.0-r0/temp/ipkg.conf \
+-o tmp/rootfs install foo
+
+tmp/staging/i686-linux/usr/bin/ipkg-cl -f \
+tmp/work/&lt;target-abi&gt;/poky-image-sato-1.0-r0/temp/ipkg.conf \
+-o tmp/rootfs install foo-dbg</pre><p>
+ which installs the debugging information too.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="platdev-gdb-remotedebug-launch-gdb-launchhost"></a>2.2.3. Launch the host GDB</h4></div></div></div><p>
+ To launch the host GDB, run the cross gdb binary identified above with
+ the inferior binary specified on the commandline:
+ </p><pre class="programlisting">&lt;target-abi&gt;-gdb rootfs/usr/bin/foo</pre><p>
+ This loads the binary of program <span class="emphasis"><em>foo</em></span>
+ as well as its debugging information. Once the gdb prompt
+ appears, you must instruct GDB to load all the libraries
+ of the inferior from tmp/rootfs:
+ </p><pre class="programlisting">set solib-absolute-prefix /path/to/tmp/rootfs</pre><p>
+ where <code class="filename">/path/to/tmp/rootfs</code> must be
+ the absolute path to <code class="filename">tmp/rootfs</code> or wherever the
+ binaries with debugging information are located.
+ </p><p>
+ Now, tell GDB to connect to the GDBSERVER running on the remote target:
+ </p><pre class="programlisting">target remote remote-target-ip-address:2345</pre><p>
+ Where remote-target-ip-address is the IP address of the
+ remote target where the GDBSERVER is running. 2345 is the
+ port on which the GDBSERVER is running.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="platdev-gdb-remotedebug-launch-gdb-using"></a>2.2.4. Using the Debugger</h4></div></div></div><p>
+ Debugging can now proceed as normal, as if the debugging were being done on the
+ local machine, for example to tell GDB to break in the <span class="emphasis"><em>main</em></span>
+ function, for instance:
+ </p><pre class="programlisting">break main</pre><p>
+ and then to tell GDB to "continue" the inferior execution,
+ </p><pre class="programlisting">continue</pre><p>
+ </p><p>
+ For more information about using GDB please see the
+ project's online documentation at <a href="http://sourceware.org/gdb/download/onlinedocs/" target="_top">http://sourceware.org/gdb/download/onlinedocs/</a>.
+ </p></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="platdev-oprofile"></a>3. Profiling with OProfile</h2></div></div></div><p>
+ <a href="http://oprofile.sourceforge.net/" target="_top">OProfile</a> is a
+ statistical profiler well suited to finding performance
+ bottlenecks in both userspace software and the kernel. It provides
+ answers to questions like "Which functions does my application spend
+ the most time in when doing X?". Poky is well integrated with OProfile
+ to make profiling applications on target hardware straightforward.
+ </p><p>
+ To use OProfile you need an image with OProfile installed. The easiest
+ way to do this is with "tools-profile" in <em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em>. You also
+ need debugging symbols to be available on the system where the analysis
+ will take place. This can be achieved with "dbg-pkgs" in <em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em> or by
+ installing the appropriate -dbg packages. For
+ successful call graph analysis the binaries must preserve the frame
+ pointer register and hence should be compiled with the
+ "-fno-omit-framepointer" flag. In Poky this can be achieved with
+ <em class="glossterm"><a href="#var-SELECTED_OPTIMIZATION" title="SELECTED_OPTIMIZATION">SELECTED_OPTIMIZATION
+ </a></em> = "-fexpensive-optimizations -fno-omit-framepointer
+ -frename-registers -O2" or by setting <em class="glossterm"><a href="#var-DEBUG_BUILD" title="DEBUG_BUILD">DEBUG_BUILD</a></em> = "1" in
+ local.conf (the latter will also add extra debug information making the
+ debug packages large).
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-oprofile-target"></a>3.1. Profiling on the target</h3></div></div></div><p>
+ All the profiling work can be performed on the target device. A
+ simple OProfile session might look like:
+ </p><p>
+ </p><pre class="literallayout">
+# opcontrol --reset
+# opcontrol --start --separate=lib --no-vmlinux -c 5
+[do whatever is being profiled]
+# opcontrol --stop
+$ opreport -cl
+</pre><p>
+ </p><p>
+ Here, the reset command clears any previously profiled data,
+ OProfile is then started. The options used to start OProfile mean
+ dynamic library data is kept separately per application, kernel
+ profiling is disabled and callgraphing is enabled up to 5 levels
+ deep. To profile the kernel, you would specify the
+ <em class="parameter"><code>--vmlinux=/path/to/vmlinux</code></em> option (the vmlinux file is usually in
+ <code class="filename">/boot/</code> in Poky and must match the running kernel). The profile is
+ then stopped and the results viewed with opreport with options
+ to see the separate library symbols and callgraph information.
+ </p><p>
+ Callgraphing means OProfile not only logs infomation about which
+ functions time is being spent in but also which functions
+ called those functions (their parents) and which functions that
+ function calls (its children). The higher the callgraphing depth,
+ the more accurate the results but this also increased the loging
+ overhead so it should be used with caution. On ARM, binaries need
+ to have the frame pointer enabled for callgraphing to work (compile
+ with the gcc option -fno-omit-framepointer).
+ </p><p>
+ For more information on using OProfile please see the OProfile
+ online documentation at <a href="http://oprofile.sourceforge.net/docs/" target="_top">http://oprofile.sourceforge.net/docs/</a>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="platdev-oprofile-oprofileui"></a>3.2. Using OProfileUI</h3></div></div></div><p>
+ A graphical user interface for OProfile is also available. You can
+ either use prebuilt Debian packages from the <a href="http://debian.o-hand.com/" target="_top">OpenedHand repository</a> or
+ download and build from svn at
+ http://svn.o-hand.com/repos/oprofileui/trunk/. If the
+ "tools-profile" image feature is selected, all necessary binaries
+ are installed onto the target device for OProfileUI interaction.
+ </p><p>
+ In order to convert the data in the sample format from the target
+ to the host the <code class="filename">opimport</code> program is needed.
+ This is not included in standard Debian OProfile packages but an
+ OProfile package with this addition is also available from the <a href="http://debian.o-hand.com/" target="_top">OpenedHand repository</a>.
+ We recommend using OProfile 0.9.3 or greater. Other patches to
+ OProfile may be needed for recent OProfileUI features, but Poky
+ usually includes all needed patches on the target device. Please
+ see the <a href="http://svn.o-hand.com/repos/oprofileui/trunk/README" target="_top">
+ OProfileUI README</a> for up to date information, and the
+ <a href="http://labs.o-hand.com/oprofileui" target="_top">OProfileUI website
+ </a> for more information on the OProfileUI project.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="platdev-oprofile-oprofileui-online"></a>3.2.1. Online mode</h4></div></div></div><p>
+ This assumes a working network connection with the target
+ hardware. In this case you just need to run <span><strong class="command">
+ "oprofile-server"</strong></span> on the device. By default it listens
+ on port 4224. This can be changed with the <em class="parameter"><code>--port</code></em> command line
+ option.
+
+ </p><p>
+ The client program is called <span><strong class="command">oprofile-viewer</strong></span>. The
+ UI is relatively straightforward, the key functionality is accessed
+ through the buttons on the toolbar (which are duplicated in the
+ menus.) These buttons are:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ Connect - connect to the remote host, the IP address or hostname for the
+ target can be supplied here.
+ </p></li><li><p>
+ Disconnect - disconnect from the target.
+ </p></li><li><p>
+ Start - start the profiling on the device.
+ </p></li><li><p>
+ Stop - stop the profiling on the device and download the data to the local
+ host. This will generate the profile and show it in the viewer.
+ </p></li><li><p>
+ Download - download the data from the target, generate the profile and show it
+ in the viewer.
+ </p></li><li><p>
+ Reset - reset the sample data on the device. This will remove the sample
+ information that was collected on a previous sampling run. Ensure you do this
+ if you do not want to include old sample information.
+ </p></li><li><p>
+ Save - save the data downloaded from the target to another directory for later
+ examination.
+ </p></li><li><p>
+ Open - load data that was previously saved.
+ </p></li></ul></div><p>
+ The behaviour of the client is to download the complete 'profile archive' from
+ the target to the host for processing. This archive is a directory containing
+ the sample data, the object files and the debug information for said object
+ files. This archive is then converted using a script included in this
+ distribution ('oparchconv') that uses 'opimport' to convert the archive from
+ the target to something that can be processed on the host.
+ </p><p>
+ Downloaded archives are kept in /tmp and cleared up when they are no longer in
+ use.
+ </p><p>
+ If you wish to profile into the kernel, this is possible, you just need to ensure
+ a vmlinux file matching the running kernel is available. In Poky this is usually
+ located in /boot/vmlinux-KERNELVERSION, where KERNEL-version is the version of
+ the kernel e.g. 2.6.23. Poky generates separate vmlinux packages for each kernel
+ it builds so it should be a question of just ensuring a matching package is
+ installed (<span><strong class="command"> ipkg install kernel-vmlinux</strong></span>. These are automatically
+ installed into development and profiling images alongside OProfile. There is a
+ configuration option within the OProfileUI settings page where the location of
+ the vmlinux file can be entered.
+ </p><p>
+ Waiting for debug symbols to transfer from the device can be slow and it's not
+ always necessary to actually have them on device for OProfile use. All that is
+ needed is a copy of the filesystem with the debug symbols present on the viewer
+ system. The <a href="#platdev-gdb-remotedebug-launch-gdb" title="2.2. Launching GDB on the host computer">GDB remote debug
+ section</a> covers how to create such a directory with Poky and the location
+ of this directory can again be specified in the OProfileUI settings dialog. If
+ specified, it will be used where the file checksums match those on the system
+ being profiled.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="platdev-oprofile-oprofileui-offline"></a>3.2.2. Offline mode</h4></div></div></div><p>
+ If no network access to the target is available an archive for processing in
+ 'oprofile-viewer' can be generated with the following set of command.
+ </p><p>
+ </p><pre class="literallayout">
+# opcontrol --reset
+# opcontrol --start --separate=lib --no-vmlinux -c 5
+[do whatever is being profiled]
+# opcontrol --stop
+# oparchive -o my_archive
+</pre><p>
+ </p><p>
+ Where my_archive is the name of the archive directory where you would like the
+ profile archive to be kept. The directory will be created for you. This can
+ then be copied to another host and loaded using 'oprofile-viewer''s open
+ functionality. The archive will be converted if necessary.
+ </p></div></div></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-structure"></a>Appendix 1. Reference: Directory Structure</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#structure-core">1. Top level core components</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-core-bitbake">1.1. <code class="filename">bitbake/</code></a></span></dt><dt><span class="section"><a href="#structure-core-build">1.2. <code class="filename">build/</code></a></span></dt><dt><span class="section"><a href="#structure-core-meta">1.3. <code class="filename">meta/</code></a></span></dt><dt><span class="section"><a href="#structure-core-meta-extras">1.4. <code class="filename">meta-extras/</code></a></span></dt><dt><span class="section"><a href="#structure-core-scripts">1.5. <code class="filename">scripts/</code></a></span></dt><dt><span class="section"><a href="#structure-core-sources">1.6. <code class="filename">sources/</code></a></span></dt><dt><span class="section"><a href="#structure-core-script">1.7. <code class="filename">poky-init-build-env</code></a></span></dt></dl></dd><dt><span class="section"><a href="#structure-build">2. <code class="filename">build/</code> - The Build Directory</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-build-conf-local.conf">2.1. <code class="filename">build/conf/local.conf</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp">2.2. <code class="filename">build/tmp/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-cache">2.3. <code class="filename">build/tmp/cache/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-cross">2.4. <code class="filename">build/tmp/cross/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy">2.5. <code class="filename">build/tmp/deploy/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy-deb">2.6. <code class="filename">build/tmp/deploy/deb/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy-images">2.7. <code class="filename">build/tmp/deploy/images/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-deploy-ipk">2.8. <code class="filename">build/tmp/deploy/ipk/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-rootfs">2.9. <code class="filename">build/tmp/rootfs/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-staging">2.10. <code class="filename">build/tmp/staging/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-stamps">2.11. <code class="filename">build/tmp/stamps/</code></a></span></dt><dt><span class="section"><a href="#structure-build-tmp-work">2.12. <code class="filename">build/tmp/work/</code></a></span></dt></dl></dd><dt><span class="section"><a href="#structure-meta">3. <code class="filename">meta/</code> - The Metadata</a></span></dt><dd><dl><dt><span class="section"><a href="#structure-meta-classes">3.1. <code class="filename">meta/classes/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-conf">3.2. <code class="filename">meta/conf/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-conf-machine">3.3. <code class="filename">meta/conf/machine/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-conf-distro">3.4. <code class="filename">meta/conf/distro/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-packages">3.5. <code class="filename">meta/packages/</code></a></span></dt><dt><span class="section"><a href="#structure-meta-site">3.6. <code class="filename">meta/site/</code></a></span></dt></dl></dd></dl></div><p>
+ Poky consists of several components and understanding what these are
+ and where they're located is one of the keys to using it. This section walks
+ through the Poky directory structure giving information about the various
+ files and directories.
+</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="structure-core"></a>1. Top level core components</h2></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-bitbake"></a>1.1. <code class="filename">bitbake/</code></h3></div></div></div><p>
+ A copy of BitBake is included within Poky for ease of use, and should
+ usually match the current BitBake stable release from the BitBake project.
+ Bitbake, a metadata interpreter, reads the Poky metadata and runs the tasks
+ defined in the Poky metadata. Failures are usually from the metadata, not
+ BitBake itself, so most users don't need to worry about BitBake. The
+ <code class="filename">bitbake/bin/</code> directory is placed
+ into the PATH environment variable by the <a href="#structure-core-script" title="1.7. poky-init-build-env">poky-init-build-env</a> script.
+ </p><p>
+ For more information on BitBake please see the BitBake project site at
+ <a href="http://bitbake.berlios.de/" target="_top">http://bitbake.berlios.de/</a>
+ and the BitBake on-line manual at <a href="http://bitbake.berlios.de/manual/" target="_top">http://bitbake.berlios.de/manual/</a>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-build"></a>1.2. <code class="filename">build/</code></h3></div></div></div><p>
+ This directory contains user configuration files and the output
+ from Poky.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-meta"></a>1.3. <code class="filename">meta/</code></h3></div></div></div><p>
+ This directory contains the core metadata, a key part of Poky. Within this
+ directory there are definitions of the machines, the Poky distribution
+ and the packages that make up a given system.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-meta-extras"></a>1.4. <code class="filename">meta-extras/</code></h3></div></div></div><p>
+ This directory is similar to <code class="filename">meta/</code>,
+ and contains some extra metadata not included in standard Poky. These are
+ disabled by default, and are not supported as part of Poky.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-scripts"></a>1.5. <code class="filename">scripts/</code></h3></div></div></div><p>
+ This directory contains various integration scripts which implement
+ extra functionality in the Poky environment, such as the QEMU
+ scripts. This directory is appended to the PATH environment variable by the
+ <a href="#structure-core-script" title="1.7. poky-init-build-env">poky-init-build-env</a> script.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-sources"></a>1.6. <code class="filename">sources/</code></h3></div></div></div><p>
+ While not part of a checkout, Poky will create this directory as
+ part of any build. Any downloads are placed in this directory (as
+ specified by the <em class="glossterm"><a href="#var-DL_DIR" title="DL_DIR">DL_DIR</a>
+ </em> variable). This directory can be shared between Poky
+ builds to save downloading files multiple times. SCM checkouts are
+ also stored here as e.g. <code class="filename">sources/svn/
+ </code>, <code class="filename">sources/cvs/</code> or
+ <code class="filename">sources/git/</code> and the
+ sources directory may contain archives of checkouts for various
+ revisions or dates.
+ </p><p>
+ It's worth noting that BitBake creates <code class="filename">.md5
+ </code> stamp files for downloads. It uses these to mark downloads as
+ complete as well as for checksum and access accounting purposes. If you add
+ a file manually to the directory, you need to touch the corresponding
+ <code class="filename">.md5</code> file too.
+ </p><p>
+ This location can be overridden by setting <em class="glossterm"><a href="#var-DL_DIR" title="DL_DIR">DL_DIR</a></em> in <code class="filename">local.conf
+ </code>. This directory can be shared between builds and even between
+ machines via NFS, so downloads are only made once, speeding up builds.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-core-script"></a>1.7. <code class="filename">poky-init-build-env</code></h3></div></div></div><p>
+ This script is used to setup the Poky build environment. Sourcing this file in
+ a shell makes changes to PATH and sets other core BitBake variables based on the
+ current working directory. You need to use this before running Poky commands.
+ Internally it uses scripts within the <code class="filename">scripts/
+ </code> directory to do the bulk of the work.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="structure-build"></a>2. <code class="filename">build/</code> - The Build Directory</h2></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-conf-local.conf"></a>2.1. <code class="filename">build/conf/local.conf</code></h3></div></div></div><p>
+ This file contains all the local user configuration of Poky. If there
+ is no <code class="filename">local.conf</code> present, it is created from
+ <code class="filename">local.conf.sample</code>. The <code class="filename">local.conf</code>
+ file contains documentation on the various configuration options. Any
+ variable set here overrides any variable set elsewhere within Poky unless
+ that variable is hardcoded within Poky (e.g. by using '=' instead of '?=').
+ Some variables are hardcoded for various reasons but these variables are
+ relatively rare.
+ </p><p>
+ Edit this file to set the <em class="glossterm"><a href="#var-MACHINE" title="MACHINE">MACHINE</a></em> for which you want to build, which package types you
+ wish to use (PACKAGE_CLASSES) or where downloaded files should go
+ (<em class="glossterm"><a href="#var-DL_DIR" title="DL_DIR">DL_DIR</a></em>).
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp"></a>2.2. <code class="filename">build/tmp/</code></h3></div></div></div><p>
+ This is created by BitBake if it doesn't exist and is where all the Poky output
+ is placed. To clean Poky and start a build from scratch (other than downloads),
+ you can wipe this directory. The <code class="filename">tmp/
+ </code> directory has some important sub-components detailed below.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-cache"></a>2.3. <code class="filename">build/tmp/cache/</code></h3></div></div></div><p>
+ When BitBake parses the metadata it creates a cache file of the result which can
+ be used when subsequently running commands. These are stored here on
+ a per machine basis.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-cross"></a>2.4. <code class="filename">build/tmp/cross/</code></h3></div></div></div><p>
+ The cross compiler when generated is placed into this directory and those
+ beneath it.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-deploy"></a>2.5. <code class="filename">build/tmp/deploy/</code></h3></div></div></div><p>Any 'end result' output from Poky is placed under here.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-deploy-deb"></a>2.6. <code class="filename">build/tmp/deploy/deb/</code></h3></div></div></div><p>
+ Any .deb packages emitted by Poky are placed here, sorted into feeds for
+ different architecture types.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-deploy-images"></a>2.7. <code class="filename">build/tmp/deploy/images/</code></h3></div></div></div><p>
+ Complete filesystem images are placed here. If you want to flash the resulting
+ image from a build onto a device, look here for them.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-deploy-ipk"></a>2.8. <code class="filename">build/tmp/deploy/ipk/</code></h3></div></div></div><p>Any resulting .ipk packages emitted by Poky are placed here.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-rootfs"></a>2.9. <code class="filename">build/tmp/rootfs/</code></h3></div></div></div><p>
+ This is a temporary scratch area used when creating filesystem images. It is run
+ under fakeroot and is not useful once that fakeroot session has ended as
+ information is lost. It is left around since it is still useful in debugging
+ image creation problems.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-staging"></a>2.10. <code class="filename">build/tmp/staging/</code></h3></div></div></div><p>
+ Any package needing to share output with other packages does so within staging.
+ This means it contains any shared header files and any shared libraries amongst
+ other data. It is subdivided by architecture so multiple builds can run within
+ the one build directory.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-stamps"></a>2.11. <code class="filename">build/tmp/stamps/</code></h3></div></div></div><p>
+ This is used by BitBake for accounting purposes to keep track of which tasks
+ have been run and when. It is also subdivided by architecture. The files are
+ empty and the important information is the filenames and timestamps.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-build-tmp-work"></a>2.12. <code class="filename">build/tmp/work/</code></h3></div></div></div><p>
+ This directory contains various subdirectories for each architecture, and each package built by BitBake has its own work directory under the appropriate architecture subdirectory. All tasks are executed from this work directory. As an example, the source for a particular package will be unpacked, patched, configured and compiled all within its own work directory.
+ </p><p>
+ It is worth considering the structure of a typical work directory. An
+ example is the linux-rp kernel, version 2.6.20 r7 on the machine spitz
+ built within Poky. For this package a work directory of <code class="filename">tmp/work/spitz-poky-linux-gnueabi/linux-rp-2.6.20-r7/
+ </code>, referred to as <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR
+ </a></em>, is created. Within this directory, the source is
+ unpacked to linux-2.6.20 and then patched by quilt (see <a href="#usingpoky-modifying-packages-quilt" title="5.1. Modifying Package Source Code with quilt">Section 3.5.1</a>).
+ Within the <code class="filename">linux-2.6.20</code> directory,
+ standard Quilt directories <code class="filename">linux-2.6.20/patches</code>
+ and <code class="filename">linux-2.6.20/.pc</code> are created,
+ and standard quilt commands can be used.
+ </p><p>
+ There are other directories generated within <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em>. The most important
+ is <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em><code class="filename">/temp/</code> which has log files for each
+ task (<code class="filename">log.do_*.pid</code>) and the scripts BitBake runs for
+ each task (<code class="filename">run.do_*.pid</code>). The <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em><code class="filename">/image/</code> directory is where <span><strong class="command">make
+ install</strong></span> places its output which is then split into subpackages
+ within <em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em><code class="filename">/install/</code>.
+ </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="structure-meta"></a>3. <code class="filename">meta/</code> - The Metadata</h2></div></div></div><p>
+ As mentioned previously, this is the core of Poky. It has several
+ important subdivisions:
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-meta-classes"></a>3.1. <code class="filename">meta/classes/</code></h3></div></div></div><p>
+ Contains the <code class="filename">*.bbclass</code> files. Class
+ files are used to abstract common code allowing it to be reused by multiple
+ packages. The <code class="filename">base.bbclass</code> file is inherited by every
+ package. Examples of other important classes are
+ <code class="filename">autotools.bbclass</code> that in theory allows any
+ Autotool-enabled package to work with Poky with minimal effort, or
+ <code class="filename">kernel.bbclass</code> that contains common code and functions
+ for working with the linux kernel. Functions like image generation or
+ packaging also have their specific class files (<code class="filename">image.bbclass
+ </code>, <code class="filename">rootfs_*.bbclass</code> and
+ <code class="filename">package*.bbclass</code>).
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-meta-conf"></a>3.2. <code class="filename">meta/conf/</code></h3></div></div></div><p>
+ This is the core set of configuration files which start from
+ <code class="filename">bitbake.conf</code> and from which all other configuration
+ files are included (see the includes at the end of the file, even
+ <code class="filename">local.conf</code> is loaded from there!). While
+ <code class="filename">bitbake.conf</code> sets up the defaults, these can often be
+ overridden by user (<code class="filename">local.conf</code>), machine or
+ distribution configuration files.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-meta-conf-machine"></a>3.3. <code class="filename">meta/conf/machine/</code></h3></div></div></div><p>
+ Contains all the machine configuration files. If you set MACHINE="spitz", the
+ end result is Poky looking for a <code class="filename">spitz.conf</code> file in this directory. The includes
+ directory contains various data common to multiple machines. If you want to add
+ support for a new machine to Poky, this is the directory to look in.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-meta-conf-distro"></a>3.4. <code class="filename">meta/conf/distro/</code></h3></div></div></div><p>
+ Any distribution specific configuration is controlled from here. OpenEmbedded
+ supports multiple distributions of which Poky is one. Poky only contains the
+ Poky distribution so poky.conf is the main file here. This includes the
+ versions and SRCDATES for applications which are configured here. An example of
+ an alternative configuration is poky-bleeding.conf although this mainly inherits
+ its configuration from Poky itself.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-meta-packages"></a>3.5. <code class="filename">meta/packages/</code></h3></div></div></div><p>
+ Each application (package) Poky can build has an associated .bb file which are
+ all stored under this directory. Poky finds them through the BBFILES variable
+ which defaults to packages/*/*.bb. Adding a new piece of software to Poky
+ consists of adding the appropriate .bb file. The .bb files from OpenEmbedded
+ upstream are usually compatible although they are not supported.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="structure-meta-site"></a>3.6. <code class="filename">meta/site/</code></h3></div></div></div><p>
+ Certain autoconf test results cannot be determined when cross compiling since it
+ can't run tests on a live system. This directory therefore contains a list of
+ cached results for various architectures which is passed to autoconf.
+ </p></div></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-bitbake"></a>Appendix 2. Reference: Bitbake</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#ref-bitbake-parsing">1. Parsing</a></span></dt><dt><span class="section"><a href="#ref-bitbake-providers">2. Preferences and Providers</a></span></dt><dt><span class="section"><a href="#ref-bitbake-dependencies">3. Dependencies</a></span></dt><dt><span class="section"><a href="#ref-bitbake-tasklist">4. The Task List</a></span></dt><dt><span class="section"><a href="#ref-bitbake-runtask">5. Running a Task</a></span></dt><dt><span class="section"><a href="#ref-bitbake-commandline">6. Commandline</a></span></dt><dt><span class="section"><a href="#ref-bitbake-fetchers">7. Fetchers</a></span></dt></dl></div><p>
+ Bitbake a program written in Python which interprets the metadata
+ that makes up Poky. At some point, people wonder what actually happens
+ when you type <span><strong class="command">bitbake poky-image-sato</strong></span>. This section
+ aims to give an overview of what happens behind the scenes from a
+ BitBake perspective.
+ </p><p>
+ It is worth noting that bitbake aims to be a generic "task" executor
+ capable of handling complex dependency relationships. As such it has no
+ real knowledge of what the tasks its executing actually do. It just
+ considers a list of tasks with dependencies and handles metadata
+ consisting of variables in a certain format which get passed to the
+ tasks.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-parsing"></a>1. Parsing</h2></div></div></div><p>
+ The first thing BitBake does is work out its configuration by
+ looking for a file called <code class="filename">bitbake.conf</code>.
+ Bitbake searches through the <code class="varname">BBPATH</code> environment
+ variable looking for a <code class="filename">conf/</code>
+ directory containing a <code class="filename">bitbake.conf</code> file and
+ adds the first <code class="filename">bitbake.conf</code> file found in
+ <code class="varname">BBPATH</code> (similar to the PATH environment variable).
+ For Poky, <code class="filename">bitbake.conf</code> is found in <code class="filename">meta/conf/</code>.
+ </p><p>
+ In Poky, <code class="filename">bitbake.conf</code> lists other configuration
+ files to include from a <code class="filename">conf/</code>
+ directory below the directories listed in <code class="varname">BBPATH</code>.
+ In general the most important configuration file from a user's perspective
+ is <code class="filename">local.conf</code>, which contains a users customized
+ settings for Poky. Other notable configuration files are the distribution
+ configuration file (set by the <em class="glossterm"><a href="#var-DISTRO" title="DISTRO">
+ DISTRO</a></em> variable) and the machine configuration file
+ (set by the <em class="glossterm"><a href="#var-MACHINE" title="MACHINE">MACHINE</a>
+ </em> variable). The <em class="glossterm"><a href="#var-DISTRO" title="DISTRO">
+ DISTRO</a></em> and <em class="glossterm"><a href="#var-MACHINE" title="MACHINE">
+ MACHINE</a></em> environment variables are both usually set in
+ the <code class="filename">local.conf</code> file. Valid distribution
+ configuration files are available in the <code class="filename">
+ meta/conf/distro/</code> directory and valid machine configuration
+ files in the <code class="filename">meta/conf/machine/</code>
+ directory. Within the <code class="filename">
+ meta/conf/machine/include/</code> directory are various <code class="filename">
+ tune-*.inc</code> configuration files which provide common
+ "tuning" settings specific to and shared between particular
+ architectures and machines.
+ </p><p>
+ After the parsing of the configuration files some standard classes
+ are included. In particular, <code class="filename">base.bbclass</code> is
+ always included, as will any other classes
+ specified in the configuration using the <em class="glossterm"><a href="#var-INHERIT" title="INHERIT">INHERIT</a></em>
+ variable. Class files are searched for in a classes subdirectory
+ under the paths in <code class="varname">BBPATH</code> in the same way as
+ configuration files.
+ </p><p>
+ After the parsing of the configuration files is complete, the
+ variable <em class="glossterm"><a href="#var-BBFILES" title="BBFILES">BBFILES</a></em>
+ is set, usually in
+ <code class="filename">local.conf</code>, and defines the list of places to search for
+ <code class="filename">.bb</code> files. By
+ default this specifies the <code class="filename">meta/packages/
+ </code> directory within Poky, but other directories such as
+ <code class="filename">meta-extras/</code> can be included
+ too. If multiple directories are specified a system referred to as
+ <a href="#usingpoky-changes-collections" title="4.1. Bitbake Collections">"collections"</a> is used to
+ determine which files have priority.
+ </p><p>
+ Bitbake parses each <code class="filename">.bb</code> file in
+ <em class="glossterm"><a href="#var-BBFILES" title="BBFILES">BBFILES</a></em> and
+ stores the values of various variables. In summary, for each
+ <code class="filename">.bb</code>
+ file the configuration + base class of variables are set, followed
+ by the data in the <code class="filename">.bb</code> file
+ itself, followed by any inherit commands that
+ <code class="filename">.bb</code> file might contain.
+ </p><p>
+ Parsing <code class="filename">.bb</code> files is a time
+ consuming process, so a cache is kept to speed up subsequent parsing.
+ This cache is invalid if the timestamp of the <code class="filename">.bb</code>
+ file itself has changed, or if the timestamps of any of the include,
+ configuration or class files the <code class="filename">.bb</code>
+ file depends on have changed.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-providers"></a>2. Preferences and Providers</h2></div></div></div><p>
+ Once all the <code class="filename">.bb</code> files have been
+ parsed, BitBake will proceed to build "poky-image-sato" (or whatever was
+ specified on the commandline) and looks for providers of that target.
+ Once a provider is selected, BitBake resolves all the dependencies for
+ the target. In the case of "poky-image-sato", it would lead to
+ <code class="filename">task-oh.bb</code> and <code class="filename">task-base.bb</code>
+ which in turn would lead to packages like <span class="application">Contacts</span>,
+ <span class="application">Dates</span>, <span class="application">BusyBox</span>
+ and these in turn depend on glibc and the toolchain.
+ </p><p>
+ Sometimes a target might have multiple providers and a common example
+ is "virtual/kernel" that is provided by each kernel package. Each machine
+ will often elect the best provider of its kernel with a line like the
+ following in the machine configuration file:
+ </p><pre class="programlisting"><em class="glossterm"><a href="#var-PREFERRED_PROVIDER" title="PREFERRED_PROVIDER">PREFERRED_PROVIDER</a></em>_virtual/kernel = "linux-rp"</pre><p>
+ The default <em class="glossterm"><a href="#var-PREFERRED_PROVIDER" title="PREFERRED_PROVIDER">
+ PREFERRED_PROVIDER</a></em> is the provider with the same name as
+ the target.
+ </p><p>
+ Understanding how providers are chosen is complicated by the fact
+ multiple versions might be present. Bitbake defaults to the highest
+ version of a provider by default. Version comparisons are made using
+ the same method as Debian. The <em class="glossterm"><a href="#var-PREFERRED_VERSION" title="PREFERRED_VERSION">PREFERRED_VERSION</a></em>
+ variable can be used to specify a particular version
+ (usually in the distro configuration) but the order can
+ also be influenced by the <em class="glossterm"><a href="#var-DEFAULT_PREFERENCE" title="DEFAULT_PREFERENCE">DEFAULT_PREFERENCE</a></em>
+ variable. By default files
+ have a preference of "0". Setting the
+ <em class="glossterm"><a href="#var-DEFAULT_PREFERENCE" title="DEFAULT_PREFERENCE">DEFAULT_PREFERENCE</a></em> to "-1" will
+ make a package unlikely to be used unless it was explicitly referenced and
+ "1" makes it likely the package will be used.
+ <em class="glossterm"><a href="#var-PREFERRED_VERSION" title="PREFERRED_VERSION">PREFERRED_VERSION</a></em> overrides
+ any default preference. <em class="glossterm"><a href="#var-DEFAULT_PREFERENCE" title="DEFAULT_PREFERENCE">DEFAULT_PREFERENCE</a></em>
+ is often used to mark more
+ experimental new versions of packages until they've undergone sufficient
+ testing to be considered stable.
+ </p><p>
+ The end result is that internally, BitBake has now built a list of
+ providers for each target it needs in order of priority.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-dependencies"></a>3. Dependencies</h2></div></div></div><p>
+ Each target BitBake builds consists of multiple tasks (e.g. fetch,
+ unpack, patch, configure, compile etc.). For best performance on
+ multi-core systems, BitBake considers each task as an independent
+ entity with a set of dependencies. There are many variables that
+ are used to signify these dependencies and more information can be found
+ found about these in the <a href="http://bitbake.berlios.de/manual/" target="_top">
+ BitBake manual</a>. At a basic level it is sufficient to know
+ that BitBake uses the <em class="glossterm"><a href="#var-DEPENDS" title="DEPENDS">DEPENDS</a></em> and
+ <em class="glossterm"><a href="#var-RDEPENDS" title="RDEPENDS">RDEPENDS</a></em> variables when
+ calculating dependencies and descriptions of these variables are
+ available through the links.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-tasklist"></a>4. The Task List</h2></div></div></div><p>
+ Based on the generated list of providers and the dependency information,
+ BitBake can now calculate exactly which tasks it needs to run and in what
+ order. The build now starts with BitBake forking off threads up to
+ the limit set in the <em class="glossterm"><a href="#var-BB_NUMBER_THREADS" title="BB_NUMBER_THREADS">BB_NUMBER_THREADS</a></em> variable
+ as long there are tasks ready to run, i.e. tasks with all their
+ dependencies met.
+ </p><p>
+ As each task completes, a timestamp is written to the directory
+ specified by the <em class="glossterm"><a href="#var-STAMPS" title="STAMPS">STAMPS</a></em> variable (usually
+ <code class="filename">build/tmp/stamps/*/</code>). On
+ subsequent runs, BitBake looks at the <em class="glossterm"><a href="#var-STAMPS" title="STAMPS">STAMPS</a></em>
+ directory and will not rerun
+ tasks its already completed unless a timestamp is found to be invalid.
+ Currently, invalid timestamps are only considered on a per <code class="filename">.bb</code> file basis so if for example the configure stamp has a timestamp greater than the
+ compile timestamp for a given target the compile task would rerun but this
+ has no effect on other providers depending on that target. This could
+ change or become configurable in future versions of BitBake. Some tasks
+ are marked as "nostamp" tasks which means no timestamp file will be written
+ and the task will always rerun.
+ </p><p>Once all the tasks have been completed BitBake exits.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-runtask"></a>5. Running a Task</h2></div></div></div><p>
+ It's worth noting what BitBake does to run a task. A task can either
+ be a shell task or a python task. For shell tasks, BitBake writes a
+ shell script to <code class="filename">${WORKDIR}/temp/run.do_taskname.pid</code>
+ and then executes the script. The generated
+ shell script contains all the exported variables, and the shell functions
+ with all variables expanded. Output from the shell script is
+ sent to the file <code class="filename">${WORKDIR}/temp/log.do_taskname.pid</code>.
+ Looking at the
+ expanded shell functions in the run file and the output in the log files
+ is a useful debugging technique.
+ </p><p>
+ Python functions are executed internally to BitBake itself and
+ logging goes to the controlling terminal. Future versions of BitBake will
+ write the functions to files in a similar way to shell functions and
+ logging will also go to the log files in a similar way.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-commandline"></a>6. Commandline</h2></div></div></div><p>
+ To quote from "bitbake --help":
+ </p><pre class="screen">Usage: bitbake [options] [package ...]
+
+Executes the specified task (default is 'build') for a given set of BitBake files.
+It expects that BBFILES is defined, which is a space separated list of files to
+be executed. BBFILES does support wildcards.
+Default BBFILES are the .bb files in the current directory.
+
+Options:
+ --version show program's version number and exit
+ -h, --help show this help message and exit
+ -b BUILDFILE, --buildfile=BUILDFILE
+ execute the task against this .bb file, rather than a
+ package from BBFILES.
+ -k, --continue continue as much as possible after an error. While the
+ target that failed, and those that depend on it,
+ cannot be remade, the other dependencies of these
+ targets can be processed all the same.
+ -f, --force force run of specified cmd, regardless of stamp status
+ -i, --interactive drop into the interactive mode also called the BitBake
+ shell.
+ -c CMD, --cmd=CMD Specify task to execute. Note that this only executes
+ the specified task for the providee and the packages
+ it depends on, i.e. 'compile' does not implicitly call
+ stage for the dependencies (IOW: use only if you know
+ what you are doing). Depending on the base.bbclass a
+ listtasks tasks is defined and will show available
+ tasks
+ -r FILE, --read=FILE read the specified file before bitbake.conf
+ -v, --verbose output more chit-chat to the terminal
+ -D, --debug Increase the debug level. You can specify this more
+ than once.
+ -n, --dry-run don't execute, just go through the motions
+ -p, --parse-only quit after parsing the BB files (developers only)
+ -d, --disable-psyco disable using the psyco just-in-time compiler (not
+ recommended)
+ -s, --show-versions show current and preferred versions of all packages
+ -e, --environment show the global or per-package environment (this is
+ what used to be bbread)
+ -g, --graphviz emit the dependency trees of the specified packages in
+ the dot syntax
+ -I IGNORED_DOT_DEPS, --ignore-deps=IGNORED_DOT_DEPS
+ Stop processing at the given list of dependencies when
+ generating dependency graphs. This can help to make
+ the graph more appealing
+ -l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS
+ Show debug logging for the specified logging domains
+ -P, --profile profile the command and print a report</pre></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-bitbake-fetchers"></a>7. Fetchers</h2></div></div></div><p>
+ As well as the containing the parsing and task/dependency handling
+ code, bitbake also contains a set of "fetcher" modules which allow
+ fetching of source code from various types of sources. Example
+ sources might be from disk with the metadata, from websites, from
+ remote shell accounts or from SCM systems like cvs/subversion/git.
+ </p><p>
+ The fetchers are usually triggered by entries in
+ <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em>. Information about the
+ options and formats of entries for specific fetchers can be found in the
+ <a href="http://bitbake.berlios.de/manual/" target="_top">BitBake manual</a>.
+ </p><p>
+ One useful feature for certain SCM fetchers is the ability to
+ "auto-update" when the upstream SCM changes version. Since this
+ requires certain functionality from the SCM only certain systems
+ support it, currently Subversion, Bazaar and to a limited extent, Git. It
+ works using the <em class="glossterm"><a href="#var-SRCREV" title="SRCREV">SRCREV</a>
+ </em> variable. See the <a href="#platdev-appdev-srcrev" title="1.7. Developing within Poky with an external SCM based package">
+ developing with an external SCM based project</a> section for more
+ information.
+ </p></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-classes"></a>Appendix 3. Reference: Classes</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#ref-classes-base">1. The base class - <code class="filename">base.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-autotools">2. Autotooled Packages - <code class="filename">autotools.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-update-alternatives">3. Alternatives - <code class="filename">update-alternatives.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-update-rc.d">4. Initscripts - <code class="filename">update-rc.d.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-binconfig">5. Binary config scripts - <code class="filename">binconfig.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-debian">6. Debian renaming - <code class="filename">debian.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-pkgconfig">7. Pkg-config - <code class="filename">pkgconfig.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-src-distribute">8. Distribution of sources - <code class="filename">src_distribute_local.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-perl">9. Perl modules - <code class="filename">cpan.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-distutils">10. Python extensions - <code class="filename">distutils.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-devshell">11. Developer Shell - <code class="filename">devshell.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-package">12. Packaging - <code class="filename">package*.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-kernel">13. Building kernels - <code class="filename">kernel.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-image">14. Creating images - <code class="filename">image.bbclass</code> and <code class="filename">rootfs*.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-sanity">15. Host System sanity checks - <code class="filename">sanity.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-insane">16. Generated output quality assurance checks - <code class="filename">insane.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-siteinfo">17. Autotools configuration data cache - <code class="filename">siteinfo.bbclass</code></a></span></dt><dt><span class="section"><a href="#ref-classes-others">18. Other Classes</a></span></dt></dl></div><p>
+ Class files are used to abstract common functionality and share it amongst multiple
+ <code class="filename">.bb</code> files. Any metadata usually found in a
+ <code class="filename">.bb</code> file can also be placed in a class
+ file. Class files are identified by the extension
+ <code class="filename">.bbclass</code> and are usually placed
+ in a <code class="filename">classes/</code> directory beneath the
+ <code class="filename">meta/</code> directory or the <code class="filename">build/</code> directory in the same way as <code class="filename">.conf</code> files in the <code class="filename">conf</code> directory. Class files are searched for
+ in BBPATH in the same was as <code class="filename">.conf</code> files too.
+</p><p>
+ In most cases inheriting the class is enough to enable its features, although
+ for some classes you may need to set variables and/or override some of the
+ default behaviour.
+</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-base"></a>1. The base class - <code class="filename">base.bbclass</code></h2></div></div></div><p>
+ The base class is special in that every <code class="filename">.bb</code>
+ file inherits it automatically. It contains definitions of standard basic
+ tasks such as fetching, unpacking, configuring (empty by default), compiling
+ (runs any Makefile present), installing (empty by default) and packaging
+ (empty by default). These are often overridden or extended by other classes
+ such as <code class="filename">autotools.bbclass</code> or
+ <code class="filename">package.bbclass</code>. The class contains some commonly
+ some commonly used functions such as <code class="function">oe_libinstall</code>
+ and <code class="function">oe_runmake</code>. The end of the class file has a
+ list of standard mirrors for software projects for use by the fetcher code.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-autotools"></a>2. Autotooled Packages - <code class="filename">autotools.bbclass</code></h2></div></div></div><p>
+ Autotools (autoconf, automake, libtool) brings standardisation and this
+ class aims to define a set of tasks (configure, compile etc.) that will
+ work for all autotooled packages. It should usualy be enough to define
+ a few standard variables as documented in the <a href="#usingpoky-extend-addpkg-autotools" title="1.2. Autotooled Package">simple autotools
+ example</a> section and then simply "inherit autotools". This class
+ can also work with software that emulates autotools.
+ </p><p>
+ Its useful to have some idea of the tasks this class defines work and
+ what they do behind the scenes.
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ 'do_configure' regenearates the configure script and
+ then launches it with a standard set of arguments used during
+ cross-compilation. Additional parameters can be passed to
+ <span><strong class="command">configure</strong></span> through the <em class="glossterm"><a href="#var-EXTRA_OECONF" title="EXTRA_OECONF">EXTRA_OECONF</a></em> variable.
+ </p></li><li><p>
+ 'do_compile' runs <span><strong class="command">make</strong></span> with arguments specifying
+ the compiler and linker. Additional arguments can be passed through
+ the <em class="glossterm"><a href="#var-EXTRA_OEMAKE" title="EXTRA_OEMAKE">EXTRA_OEMAKE</a>
+ </em> variable.
+ </p></li><li><p>
+ 'do_install' runs <span><strong class="command">make install</strong></span> passing a DESTDIR
+ option taking its value from the standard <em class="glossterm"><a href="#var-DESTDIR" title="DESTDIR">DESTDIR</a></em> variable.
+ </p></li></ul></div><p>
+ By default the class does not stage headers and libraries so
+ the recipe author needs to add their own <code class="function">do_stage()</code>
+ task. For typical recipes the following example code will usually be
+ enough:
+ </p><pre class="programlisting">
+do_stage() {
+autotools_stage_all
+}</pre><p>
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-update-alternatives"></a>3. Alternatives - <code class="filename">update-alternatives.bbclass</code></h2></div></div></div><p>
+ Several programs can fulfill the same or similar function and
+ they can be installed with the same name. For example the <span><strong class="command">ar</strong></span>
+ command is available from the "busybox", "binutils" and "elfutils" packages.
+ This class handles the renaming of the binaries so multiple packages
+ can be installed which would otherwise conflict and yet the
+ <span><strong class="command">ar</strong></span> command still works regardless of which are installed
+ or subsequently removed. It renames the conflicting binary in each package
+ and symlinks the highest priority binary during installation or removal
+ of packages.
+
+ Four variables control this class:
+ </p><div class="variablelist"><dl><dt><span class="term">ALTERNATIVE_NAME</span></dt><dd><p>
+ Name of binary which will be replaced (<span><strong class="command">ar</strong></span> in this example)
+ </p></dd><dt><span class="term">ALTERNATIVE_LINK</span></dt><dd><p>
+ Path to resulting binary ("/bin/ar" in this example)
+ </p></dd><dt><span class="term">ALTERNATIVE_PATH</span></dt><dd><p>
+ Path to real binary ("/usr/bin/ar.binutils" in this example)
+ </p></dd><dt><span class="term">ALTERNATIVE_PRIORITY</span></dt><dd><p>
+ Priority of binary, the version with the most features should have the highest priority
+ </p></dd></dl></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-update-rc.d"></a>4. Initscripts - <code class="filename">update-rc.d.bbclass</code></h2></div></div></div><p>
+ This class uses update-rc.d to safely install an initscript on behalf of
+ the package. Details such as making sure the initscript is stopped before
+ a package is removed and started when the package is installed are taken
+ care of. Three variables control this class,
+ <a href="#var-INITSCRIPT_PACKAGES" title="INITSCRIPT_PACKAGES">INITSCRIPT_PACKAGES</a>,
+ <a href="#var-INITSCRIPT_NAME" title="INITSCRIPT_NAME">INITSCRIPT_NAME</a> and
+ <a href="#var-INITSCRIPT_PARAMS" title="INITSCRIPT_PARAMS">INITSCRIPT_PARAMS</a>. See the
+ links for details.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-binconfig"></a>5. Binary config scripts - <code class="filename">binconfig.bbclass</code></h2></div></div></div><p>
+ Before pkg-config became widespread, libraries shipped shell
+ scripts to give information about the libraries and include paths needed
+ to build software (usually named 'LIBNAME-config'). This class assists
+ any recipe using such scripts.
+ </p><p>
+ During staging Bitbake installs such scripts into the <code class="filename">staging/</code> directory. It also changes all
+ paths to point into the <code class="filename">staging/</code>
+ directory so all builds which use the script will use the correct
+ directories for the cross compiling layout.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-debian"></a>6. Debian renaming - <code class="filename">debian.bbclass</code></h2></div></div></div><p>
+ This class renames packages so that they follow the Debian naming
+ policy, i.e. 'glibc' becomes 'libc6' and 'glibc-devel' becomes
+ 'libc6-dev'.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-pkgconfig"></a>7. Pkg-config - <code class="filename">pkgconfig.bbclass</code></h2></div></div></div><p>
+ Pkg-config brought standardisation and this class aims to make its
+ integration smooth for all libraries which make use of it.
+ </p><p>
+ During staging Bitbake installs pkg-config data into the <code class="filename">staging/</code> directory. By making use of
+ sysroot functionality within pkgconfig this class no longer has to
+ manipulate the files.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-src-distribute"></a>8. Distribution of sources - <code class="filename">src_distribute_local.bbclass</code></h2></div></div></div><p>
+ Many software licenses require providing the sources for compiled
+ binaries. To simplify this process two classes were created:
+ <code class="filename">src_distribute.bbclass</code> and
+ <code class="filename">src_distribute_local.bbclass</code>.
+ </p><p>
+ Result of their work are <code class="filename">tmp/deploy/source/</code>
+ subdirs with sources sorted by <em class="glossterm"><a href="#var-LICENSE" title="LICENSE">LICENSE</a>
+ </em> field. If recipe lists few licenses (or has entries like "Bitstream Vera") source archive is put in each
+ license dir.
+ </p><p>
+ Src_distribute_local class has three modes of operating:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>copy - copies the files to the distribute dir</p></li><li><p>symlink - symlinks the files to the distribute dir</p></li><li><p>move+symlink - moves the files into distribute dir, and symlinks them back</p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-perl"></a>9. Perl modules - <code class="filename">cpan.bbclass</code></h2></div></div></div><p>
+ Recipes for Perl modules are simple - usually needs only
+ pointing to source archive and inheriting of proper bbclass.
+ Building is split into two methods dependly on method used by
+ module authors.
+ </p><p>
+ Modules which use old Makefile.PL based build system require
+ using of <code class="filename">cpan.bbclass</code> in their recipes.
+ </p><p>
+ Modules which use Build.PL based build system require
+ using of <code class="filename">cpan_build.bbclass</code> in their recipes.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-distutils"></a>10. Python extensions - <code class="filename">distutils.bbclass</code></h2></div></div></div><p>
+ Recipes for Python extensions are simple - usually needs only
+ pointing to source archive and inheriting of proper bbclass.
+ Building is split into two methods dependly on method used by
+ module authors.
+ </p><p>
+ Extensions which use autotools based build system require using
+ of autotools and distutils-base bbclasses in their recipes.
+ </p><p>
+ Extensions which use distutils build system require using
+ of <code class="filename">distutils.bbclass</code> in their recipes.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-devshell"></a>11. Developer Shell - <code class="filename">devshell.bbclass</code></h2></div></div></div><p>
+ This class adds the devshell task. Its usually up to distribution policy
+ to include this class (Poky does). See the <a href="#platdev-appdev-devshell" title="1.6. Developing with 'devshell'">developing with 'devshell' section</a>
+ for more information about using devshell.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-package"></a>12. Packaging - <code class="filename">package*.bbclass</code></h2></div></div></div><p>
+ The packaging classes add support for generating packages from the output
+ from builds. The core generic functionality is in
+ <code class="filename">package.bbclass</code>, code specific to particular package
+ types is contained in various sub classes such as
+ <code class="filename">package_deb.bbclass</code> and <code class="filename">package_ipk.bbclass</code>.
+ Most users will
+ want one or more of these classes and this is controlled by the <em class="glossterm">
+ <a href="#var-PACKAGE_CLASSES" title="PACKAGE_CLASSES">PACKAGE_CLASSES</a></em>
+ variable. The first class listed in this variable will be used for image
+ generation. Since images are generated from packages a packaging class is
+ needed to enable image generation.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-kernel"></a>13. Building kernels - <code class="filename">kernel.bbclass</code></h2></div></div></div><p>
+ This class handle building of Linux kernels and the class contains code to know how to build both 2.4 and 2.6 kernel trees. All needed headers are
+ staged into <em class="glossterm"><a href="#var-STAGING_KERNEL_DIR" title="STAGING_KERNEL_DIR">STAGING_KERNEL_DIR</a></em>
+ directory to allow building of out-of-tree modules using <code class="filename">module.bbclass</code>.
+ </p><p>
+ The means that each kerel module built is packaged separately and inter-modules dependencies are
+ created by parsing the <span><strong class="command">modinfo</strong></span> output. If all modules are
+ required then installing "kernel-modules" package will install all
+ packages with modules and various other kernel packages such as "kernel-vmlinux" are also generated.
+ </p><p>
+ Various other classes are used by the kernel and module classes internally including
+ <code class="filename">kernel-arch.bbclass</code>, <code class="filename">module_strip.bbclass</code>,
+ <code class="filename">module-base.bbclass</code> and <code class="filename">linux-kernel-base.bbclass</code>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-image"></a>14. Creating images - <code class="filename">image.bbclass</code> and <code class="filename">rootfs*.bbclass</code></h2></div></div></div><p>
+ Those classes add support for creating images in many formats. First the
+ rootfs is created from packages by one of the <code class="filename">rootfs_*.bbclass</code>
+ files (depending on package format used) and then image is created.
+
+ The <em class="glossterm"><a href="#var-IMAGE_FSTYPES" title="IMAGE_FSTYPES">IMAGE_FSTYPES</a></em>
+ variable controls which types of image to generate.
+
+ The list of packages to install into the image is controlled by the
+ <em class="glossterm"><a href="#var-IMAGE_INSTALL" title="IMAGE_INSTALL">IMAGE_INSTALL</a></em>
+ variable.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-sanity"></a>15. Host System sanity checks - <code class="filename">sanity.bbclass</code></h2></div></div></div><p>
+ This class checks prerequisite software is present to try and identify
+ and notify the user of problems which will affect their build. It also
+ performs basic checks of the users configuration from local.conf to
+ prevent common mistakes and resulting build failures. Its usually up to
+ distribution policy to include this class (Poky does).
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-insane"></a>16. Generated output quality assurance checks - <code class="filename">insane.bbclass</code></h2></div></div></div><p>
+ This class adds a step to package generation which sanity checks the
+ packages generated by Poky. There are an ever increasing range of checks
+ this makes, checking for common problems which break builds/packages/images,
+ see the bbclass file for more information. Its usually up to distribution
+ policy to include this class (Poky doesn't at the time of writing but plans
+ to soon).
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-siteinfo"></a>17. Autotools configuration data cache - <code class="filename">siteinfo.bbclass</code></h2></div></div></div><p>
+ Autotools can require tests which have to execute on the target hardware.
+ Since this isn't possible in general when cross compiling, siteinfo is
+ used to provide cached test results so these tests can be skipped over but
+ the correct values used. The <a href="#structure-meta-site" title="3.6. meta/site/">meta/site directory</a>
+ contains test results sorted into different categories like architecture, endianess and
+ the libc used. Siteinfo provides a list of files containing data relevant to
+ the current build in the <em class="glossterm"><a href="#var-CONFIG_SITE" title="CONFIG_SITE">CONFIG_SITE
+ </a></em> variable which autotools will automatically pick up.
+ </p><p>
+ The class also provides variables like <em class="glossterm"><a href="#var-SITEINFO_ENDIANESS" title="SITEINFO_ENDIANESS">SITEINFO_ENDIANESS</a></em>
+ and <em class="glossterm"><a href="#var-SITEINFO_BITS" title="SITEINFO_BITS">SITEINFO_BITS</a>
+ </em> which can be used elsewhere in the metadata.
+ </p><p>
+ This class is included from <code class="filename">base.bbclass</code> and is hence always active.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-classes-others"></a>18. Other Classes</h2></div></div></div><p>
+ Only the most useful/important classes are covered here but there are
+ others, see the <code class="filename">meta/classes</code> directory for the rest.
+ </p></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-images"></a>Appendix 4. Reference: Images</h2></div></div></div><p>
+ Poky has several standard images covering most people's standard needs. A full
+ list of image targets can be found by looking in the <code class="filename">
+ meta/packages/images/</code> directory. The standard images are listed below
+ along with details of what they contain:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ <span class="emphasis"><em>poky-image-minimal</em></span> - A small image, just enough
+ to allow a device to boot
+ </p></li><li><p>
+ <span class="emphasis"><em>poky-image-base</em></span> - console only image with full
+ support of target device hardware
+ </p></li><li><p>
+ <span class="emphasis"><em>poky-image-core</em></span> - X11 image with simple apps like
+ terminal, editor and file manager
+ </p></li><li><p>
+ <span class="emphasis"><em>poky-image-sato</em></span> - X11 image with Sato theme and
+ Pimlico applications. Also contains terminal, editor and file manager.
+ </p></li><li><p>
+ <span class="emphasis"><em>poky-image-sdk</em></span> - X11 image like poky-image-sato but
+ also include native toolchain and libraries needed to build applications
+ on the device itself. Also includes testing and profiling tools and debug
+ symbols.
+ </p></li><li><p>
+ <span class="emphasis"><em>meta-toolchain</em></span> - This generates a tarball containing
+ a standalone toolchain which can be used externally to Poky. It is self
+ contained and unpacks to the <code class="filename">/usr/local/poky</code>
+ directory. It also contains a copy of QEMU and the scripts neccessary to run
+ poky QEMU images.
+ </p></li><li><p>
+ <span class="emphasis"><em>meta-toolchain-sdk</em></span> - This includes everything in
+ meta-toolchain but also includes development headers and libraries
+ forming a complete standalone SDK. See the <a href="#platdev-appdev-external-sdk" title="1.2. Developing externally using the Poky SDK">
+ Developing using the Poky SDK</a> and <a href="#platdev-appdev-external-anjuta" title="1.1. Developing externally using the Anjuta Plugin">
+ Developing using the Anjuta Plugin</a> sections for more information.
+ </p></li></ul></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-features"></a>Appendix 5. Reference: Features</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#ref-features-distro">1. Distro</a></span></dt><dt><span class="section"><a href="#ref-features-machine">2. Machine</a></span></dt><dt><span class="section"><a href="#ref-features-image">3. Reference: Images</a></span></dt></dl></div><p>'Features' provide a mechanism for working out which packages
+ should be included in the generated images. Distributions can
+ select which features they want to support through the
+ <a href="#var-DISTRO_FEATURES"><em class="glossterm"><a href="#var-DISTRO_FEATURES" title="DISTRO_FEATURES">DISTRO_FEATURES</a></em></a>
+ variable which is set in the distribution configuration file
+ (poky.conf for Poky). Machine features are set in the
+ <a href="#var-MACHINE_FEATURES"><em class="glossterm"><a href="#var-MACHINE_FEATURES" title="MACHINE_FEATURES">MACHINE_FEATURES</a></em></a>
+ variable which is set in the machine configuration file and
+ specifies which hardware features a given machine has.
+ </p><p>These two variables are combined to work out which kernel modules,
+ utilities and other packages to include. A given distribution can
+ support a selected subset of features so some machine features might not
+ be included if the distribution itself doesn't support them.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-features-distro"></a>1. Distro</h2></div></div></div><p>The items below are valid options for <a href="#var-DISTRO_FEATURES"><em class="glossterm"><a href="#var-DISTRO_FEATURES" title="DISTRO_FEATURES">DISTRO_FEATURES</a></em></a>.
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ alsa - ALSA support will be included (OSS compatibility
+ kernel modules will be installed if available)
+ </p></li><li><p>
+ bluetooth - Include bluetooth support (integrated BT only)
+ </p></li><li><p>
+ ext2 - Include tools for supporting for devices with internal
+ HDD/Microdrive for storing files (instead of Flash only devices)
+ </p></li><li><p>
+ irda - Include Irda support
+ </p></li><li><p>
+ keyboard - Include keyboard support (e.g. keymaps will be
+ loaded during boot).
+ </p></li><li><p>
+ pci - Include PCI bus support
+ </p></li><li><p>
+ pcmcia - Include PCMCIA/CompactFlash support
+ </p></li><li><p>
+ usbgadget - USB Gadget Device support (for USB
+ networking/serial/storage)
+ </p></li><li><p>
+ usbhost - USB Host support (allows to connect external
+ keyboard, mouse, storage, network etc)
+ </p></li><li><p>
+ wifi - WiFi support (integrated only)
+ </p></li><li><p>
+ cramfs - CramFS support
+ </p></li><li><p>
+ ipsec - IPSec support
+ </p></li><li><p>
+ ipv6 - IPv6 support
+ </p></li><li><p>
+ nfs - NFS client support (for mounting NFS exports on
+ device)
+ </p></li><li><p>
+ ppp - PPP dialup support
+ </p></li><li><p>
+ smbfs - SMB networks client support (for mounting
+ Samba/Microsoft Windows shares on device)
+ </p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-features-machine"></a>2. Machine</h2></div></div></div><p>The items below are valid options for <a href="#var-MACHINE_FEATURES"><em class="glossterm"><a href="#var-MACHINE_FEATURES" title="MACHINE_FEATURES">MACHINE_FEATURES</a></em></a>.
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ acpi - Hardware has ACPI (x86/x86_64 only)
+ </p></li><li><p>
+ alsa - Hardware has ALSA audio drivers
+ </p></li><li><p>
+ apm - Hardware uses APM (or APM emulation)
+ </p></li><li><p>
+ bluetooth - Hardware has integrated BT
+ </p></li><li><p>
+ ext2 - Hardware HDD or Microdrive
+ </p></li><li><p>
+ irda - Hardware has Irda support
+ </p></li><li><p>
+ keyboard - Hardware has a keyboard
+ </p></li><li><p>
+ pci - Hardware has a PCI bus
+ </p></li><li><p>
+ pcmcia - Hardware has PCMCIA or CompactFlash sockets
+ </p></li><li><p>
+ screen - Hardware has a screen
+ </p></li><li><p>
+ serial - Hardware has serial support (usually RS232)
+ </p></li><li><p>
+ touchscreen - Hardware has a touchscreen
+ </p></li><li><p>
+ usbgadget - Hardware is USB gadget device capable
+ </p></li><li><p>
+ usbhost - Hardware is USB Host capable
+ </p></li><li><p>
+ wifi - Hardware has integrated WiFi
+ </p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-features-image"></a>3. Reference: Images</h2></div></div></div><p>
+ The contents of images generated by Poky can be controlled by the <a href="#var-IMAGE_FEATURES"><em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em></a>
+ variable in local.conf. Through this you can add several different
+ predefined packages such as development utilities or packages with debug
+ information needed to investigate application problems or profile applications.
+ </p><p>
+ Current list of <a href="#var-IMAGE_FEATURES"><em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em></a> contains:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ apps-console-core - Core console applications such as ssh daemon,
+ avahi daemon, portmap (for mounting NFS shares)
+ </p></li><li><p>
+ x11-base - X11 server + minimal desktop
+ </p></li><li><p>
+ x11-sato - OpenedHand Sato environment
+ </p></li><li><p>
+ apps-x11-core - Core X11 applications such as an X Terminal, file manager, file editor
+ </p></li><li><p>
+ apps-x11-games - A set of X11 games
+ </p></li><li><p>
+ apps-x11-pimlico - OpenedHand Pimlico application suite
+ </p></li><li><p>
+ tools-sdk - A full SDK which runs on device
+ </p></li><li><p>
+ tools-debug - Debugging tools such as strace and gdb
+ </p></li><li><p>
+ tools-profile - Profiling tools such as oprofile, exmap and LTTng
+ </p></li><li><p>
+ tools-testapps - Device testing tools (e.g. touchscreen debugging)
+ </p></li><li><p>
+ nfs-server - NFS server (exports / over NFS to everybody)
+ </p></li><li><p>
+ dev-pkgs - Development packages (headers and extra library links) for all packages
+ installed in a given image
+ </p></li><li><p>
+ dbg-pkgs - Debug packages for all packages installed in a given image
+ </p></li></ul></div></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-variables-glos"></a>Appendix 6. Reference: Variables Glossary</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="glossary"><a href="#ref-variables-glossary">Glossary</a></span></dt></dl></div><p>
+ This section lists common variables used in Poky and gives an overview
+ of their function and contents.
+</p><div class="glossary"><div class="titlepage"><div><div><h2 class="title"><a name="ref-variables-glossary"></a>Glossary</h2></div></div></div><p>
+ <a href="#var-glossary-a" title="A">A</a>
+ <a href="#var-glossary-b" title="B">B</a>
+ <a href="#var-glossary-c" title="C">C</a>
+ <a href="#var-glossary-d" title="D">D</a>
+ <a href="#var-glossary-e" title="E">E</a>
+ <a href="#var-glossary-f" title="F">F</a>
+
+ <a href="#var-glossary-h" title="H">H</a>
+ <a href="#var-glossary-i" title="I">I</a>
+
+ <a href="#var-glossary-k" title="K">K</a>
+ <a href="#var-glossary-l" title="L">L</a>
+ <a href="#var-glossary-m" title="M">M</a>
+
+
+ <a href="#var-glossary-p" title="P">P</a>
+
+ <a href="#var-glossary-r" title="R">R</a>
+ <a href="#var-glossary-s" title="S">S</a>
+ <a href="#var-glossary-t" title="T">T</a>
+
+
+ <a href="#var-glossary-w" title="W">W</a>
+
+
+
+ </p><div class="glossdiv"><h3 class="title">A</h3><dl><dt><a name="var-AUTHOR"></a>AUTHOR</dt><dd><p>E-mail address to contact original author(s) - to
+ send patches, forward bugs...</p></dd><dt><a name="var-AUTOREV"></a>AUTOREV</dt><dd><p>Use current (newest) source revision - used with
+ <em class="glossterm"><a href="#var-SRCREV" title="SRCREV">SRCREV</a></em>
+ variable.</p></dd></dl></div><div class="glossdiv"><h3 class="title">B</h3><dl><dt><a name="var-BB_NUMBER_THREADS"></a>BB_NUMBER_THREADS</dt><dd><p>Number of BitBake threads</p></dd><dt><a name="var-BBFILES"></a>BBFILES</dt><dd><p>List of recipes used by BitBake to build software</p></dd><dt><a name="var-BBINCLUDELOGS"></a>BBINCLUDELOGS</dt><dd><p>Variable which controls how BitBake displays logs on build failure.</p></dd></dl></div><div class="glossdiv"><h3 class="title">C</h3><dl><dt><a name="var-CFLAGS"></a>CFLAGS</dt><dd><p>
+ Flags passed to C compiler for the target system. Evaluates to the same
+ as <a href="#var-TARGET_CFLAGS" title="TARGET_CFLAGS">TARGET_CFLAGS</a>.
+ </p></dd><dt><a name="var-COMPATIBLE_MACHINES"></a>COMPATIBLE_MACHINES</dt><dd><p>A regular expression which evalutates to match the machines the recipe
+ works with. It stops recipes being run on machines they're incompatible with
+ which is partciuarly useful with kernels. It also helps to to increase parsing
+ speed as if its found the current machine is not compatible, further parsing
+ of the recipe is skipped.</p></dd><dt><a name="var-CONFIG_SITE"></a>CONFIG_SITE</dt><dd><p>
+ Contains a list of files which containing autoconf test results relevant
+ to the current build. This variable is used by the autotools utilities
+ when running configure.
+ </p></dd><dt><a name="var-CVS_TARBALL_STASH"></a>CVS_TARBALL_STASH</dt><dd><p>Location to search for
+ pre-generated tarballs when fetching from remote SCM
+ repositories (CVS/SVN/GIT)</p></dd></dl></div><div class="glossdiv"><h3 class="title">D</h3><dl><dt><a name="var-D"></a>D</dt><dd><p>Destination directory</p></dd><dt><a name="var-DEBUG_BUILD"></a>DEBUG_BUILD</dt><dd><p>
+ Build packages with debugging information. This influences the value
+ <a href="#var-SELECTED_OPTIMIZATION" title="SELECTED_OPTIMIZATION">SELECTED_OPTIMIZATION</a>
+ takes.
+ </p></dd><dt><a name="var-DEBUG_OPTIMIZATION"></a>DEBUG_OPTIMIZATION</dt><dd><p>
+ The options to pass in <a href="#var-TARGET_CFLAGS" title="TARGET_CFLAGS">TARGET_CFLAGS</a>
+ and <a href="#var-CFLAGS" title="CFLAGS">CFLAGS</a> when compiling a system for debugging.
+ This defaults to "-O -fno-omit-frame-pointer -g".
+ </p></dd><dt><a name="var-DEFAULT_PREFERENCE"></a>DEFAULT_PREFERENCE</dt><dd><p>Priority of recipe</p></dd><dt><a name="var-DEPENDS"></a>DEPENDS</dt><dd><p>
+ A list of build time dependencies for a given recipe. These indicate
+ recipes that must have staged before this recipe can configure.
+ </p></dd><dt><a name="var-DESCRIPTION"></a>DESCRIPTION</dt><dd><p>Package description used by package
+ managers</p></dd><dt><a name="var-DESTDIR"></a>DESTDIR</dt><dd><p>Destination directory</p></dd><dt><a name="var-DISTRO"></a>DISTRO</dt><dd><p>Short name of distribution</p></dd><dt><a name="var-DISTRO_EXTRA_RDEPENDS"></a>DISTRO_EXTRA_RDEPENDS</dt><dd><p>List of packages required by distribution.</p></dd><dt><a name="var-DISTRO_EXTRA_RRECOMMENDS"></a>DISTRO_EXTRA_RRECOMMENDS</dt><dd><p>List of packages which extend usability of
+ image. Those packages will be automatically
+ installed but can be removed by user.</p></dd><dt><a name="var-DISTRO_FEATURES"></a>DISTRO_FEATURES</dt><dd><p>Features of the distribution.</p></dd><dt><a name="var-DISTRO_NAME"></a>DISTRO_NAME</dt><dd><p>Long name of distribution</p></dd><dt><a name="var-DISTRO_VERSION"></a>DISTRO_VERSION</dt><dd><p>Version of distribution</p></dd><dt><a name="var-DL_DIR"></a>DL_DIR</dt><dd><p>Directory where all fetched sources will be stored</p></dd></dl></div><div class="glossdiv"><h3 class="title">E</h3><dl><dt><a name="var-ENABLE_BINARY_LOCALE_GENERATION"></a>ENABLE_BINARY_LOCALE_GENERATION</dt><dd><p>Variable which control which locales for glibc are
+ to be generated during build (useful if target device
+ has 64M RAM or less)</p></dd><dt><a name="var-EXTRA_OECONF"></a>EXTRA_OECONF</dt><dd><p>Additional 'configure' script options</p></dd><dt><a name="var-EXTRA_OEMAKE"></a>EXTRA_OEMAKE</dt><dd><p>Additional GNU make options</p></dd></dl></div><div class="glossdiv"><h3 class="title">F</h3><dl><dt><a name="var-FILES"></a>FILES</dt><dd><p>list of directories/files which will be placed
+ in packages</p></dd><dt><a name="var-FULL_OPTIMIZATION"></a>FULL_OPTIMIZATION</dt><dd><p>
+ The options to pass in <a href="#var-TARGET_CFLAGS" title="TARGET_CFLAGS">TARGET_CFLAGS</a>
+ and <a href="#var-CFLAGS" title="CFLAGS">CFLAGS</a> when compiling an optimised system.
+ This defaults to "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2".
+ </p></dd></dl></div><div class="glossdiv"><h3 class="title">H</h3><dl><dt><a name="var-HOMEPAGE"></a>HOMEPAGE</dt><dd><p>Website where more info about package can be found</p></dd></dl></div><div class="glossdiv"><h3 class="title">I</h3><dl><dt><a name="var-IMAGE_FEATURES"></a>IMAGE_FEATURES</dt><dd><p><a href="#ref-features-image" title="3. Reference: Images">List of
+ features</a> present in resulting images</p></dd><dt><a name="var-IMAGE_FSTYPES"></a>IMAGE_FSTYPES</dt><dd><p>Formats of rootfs images which we want to have
+ created</p></dd><dt><a name="var-IMAGE_INSTALL"></a>IMAGE_INSTALL</dt><dd><p>List of packages used to build image</p></dd><dt><a name="var-INHIBIT_PACKAGE_STRIP"></a>INHIBIT_PACKAGE_STRIP</dt><dd><p>
+ This variable causes the build to not strip binaries in
+ resulting packages.
+ </p></dd><dt><a name="var-INHERIT"></a>INHERIT</dt><dd><p>
+ This variable causes the named class to be inherited at
+ this point during parsing. Its only valid in configuration
+ files.
+ </p></dd><dt><a name="var-INITSCRIPT_PACKAGES"></a>INITSCRIPT_PACKAGES</dt><dd><p>
+ Scope: Used in recipes when using update-rc.d.bbclass. Optional, defaults to PN.
+ </p><p>
+ A list of the packages which contain initscripts. If multiple
+ packages are specified you need to append the package name
+ to the other INITSCRIPT_* as an override.
+ </p></dd><dt><a name="var-INITSCRIPT_NAME"></a>INITSCRIPT_NAME</dt><dd><p>
+ Scope: Used in recipes when using update-rc.d.bbclass. Mandatory.
+ </p><p>
+ The filename of the initscript (as installed to ${etcdir}/init.d).
+ </p></dd><dt><a name="var-INITSCRIPT_PARAMS"></a>INITSCRIPT_PARAMS</dt><dd><p>
+ Scope: Used in recipes when using update-rc.d.bbclass. Mandatory.
+ </p><p>
+ Specifies the options to pass to update-rc.d. An example is
+ "start 99 5 2 . stop 20 0 1 6 ." which gives the script a
+ runlevel of 99, starts the script in initlevels 2 and 5 and
+ stops it in levels 0, 1 and 6.
+ </p></dd></dl></div><div class="glossdiv"><h3 class="title">K</h3><dl><dt><a name="var-KERNEL_IMAGETYPE"></a>KERNEL_IMAGETYPE</dt><dd><p>The type of kernel to build for a device, usually set by the
+ machine configuration files and defaults to "zImage". This is used
+ when building the kernel and is passed to "make" as the target to
+ build.</p></dd></dl></div><div class="glossdiv"><h3 class="title">L</h3><dl><dt><a name="var-LICENSE"></a>LICENSE</dt><dd><p>List of package source licenses.</p></dd></dl></div><div class="glossdiv"><h3 class="title">M</h3><dl><dt><a name="var-MACHINE"></a>MACHINE</dt><dd><p>Target device</p></dd><dt><a name="var-MACHINE_ESSENTIAL_RDEPENDS"></a>MACHINE_ESSENTIAL_RDEPENDS</dt><dd><p>List of packages required to boot device</p></dd><dt><a name="var-MACHINE_ESSENTIAL_RRECOMMENDS"></a>MACHINE_ESSENTIAL_RRECOOMENDS</dt><dd><p>List of packages required to boot device (usually
+ additional kernel modules)</p></dd><dt><a name="var-MACHINE_EXTRA_RDEPENDS"></a>MACHINE_EXTRA_RDEPENDS</dt><dd><p>List of packages required to use device</p></dd><dt><a name="var-MACHINE_EXTRA_RRECOMMENDS"></a>MACHINE_EXTRA_RRECOMMNEDS</dt><dd><p>List of packages useful to use device (for example
+ additional kernel modules)</p></dd><dt><a name="var-MACHINE_FEATURES"></a>MACHINE_FEATURES</dt><dd><p>List of device features - defined in <a href="#ref-features-machine" title="2. Machine">machine
+ features section</a></p></dd><dt><a name="var-MAINTAINER"></a>MAINTAINER</dt><dd><p>E-mail of distribution maintainer</p></dd></dl></div><div class="glossdiv"><h3 class="title">P</h3><dl><dt><a name="var-PACKAGE_ARCH"></a>PACKAGE_ARCH</dt><dd><p>Architecture of resulting package</p></dd><dt><a name="var-PACKAGE_CLASSES"></a>PACKAGE_CLASSES</dt><dd><p>List of resulting packages formats</p></dd><dt><a name="var-PACKAGE_EXTRA_ARCHS"></a>PACKAGE_EXTRA_ARCHS</dt><dd><p>List of architectures compatible with device
+ CPU. Usable when build is done for few different
+ devices with misc processors (like XScale and
+ ARM926-EJS)</p></dd><dt><a name="var-PACKAGES"></a>PACKAGES</dt><dd><p>List of packages to be created from recipe.
+ The default value is "${PN}-dbg ${PN} ${PN}-doc ${PN}-dev"</p></dd><dt><a name="var-PN"></a>PN</dt><dd><p>Name of package.
+ </p></dd><dt><a name="var-PR"></a>PR</dt><dd><p>Revision of package.
+ </p></dd><dt><a name="var-PV"></a>PV</dt><dd><p>Version of package.
+ The default value is "1.0"</p></dd><dt><a name="var-PE"></a>PE</dt><dd><p>
+ Epoch of the package. The default value is "1". The field is used
+ to make upgrades possible when the versioning scheme changes in
+ some backwards incompatible way.
+ </p></dd><dt><a name="var-PREFERRED_PROVIDER"></a>PREFERRED_PROVIDER</dt><dd><p>If multiple recipes provide an item, this variable
+ determines which one should be given preference. It
+ should be set to the "$PN" of the recipe to be preferred.</p></dd><dt><a name="var-PREFERRED_VERSION"></a>PREFERRED_VERSION</dt><dd><p>
+ If there are multiple versions of recipe available, this
+ variable determines which one should be given preference. It
+ should be set to the "$PV" of the recipe to be preferred.
+ </p></dd><dt><a name="var-POKYLIBC"></a>POKYLIBC</dt><dd><p>Libc implementation selector - glibc or uclibc can be selected.</p></dd><dt><a name="var-POKYMODE"></a>POKYMODE</dt><dd><p>Toolchain selector. It can be external toolchain
+ built from Poky or few supported combinations of
+ upstream GCC or CodeSourcery Labs toolchain.</p></dd></dl></div><div class="glossdiv"><h3 class="title">R</h3><dl><dt><a name="var-RCONFLICTS"></a>RCONFLICTS</dt><dd><p>List of packages which which conflict with this
+ one. Package will not be installed if they will not
+ be removed first.</p></dd><dt><a name="var-RDEPENDS"></a>RDEPENDS</dt><dd><p>
+ A list of run-time dependencies for a package. These packages
+ need to be installed alongside the package it applies to so
+ the package will run correctly, an example is a perl script
+ which would rdepend on perl. Since this variable applies to
+ output packages there would usually be an override attached
+ to this variable like RDEPENDS_${PN}-dev. Names in this field
+ should be as they are in <a href="#var-PACKAGES" title="PACKAGES">PACKAGES
+ </a> namespave before any renaming of the output package
+ by classes like debian.bbclass.
+ </p></dd><dt><a name="var-ROOT_FLASH_SIZE"></a>ROOT_FLASH_SIZE</dt><dd><p>Size of rootfs in megabytes</p></dd><dt><a name="var-RRECOMMENDS"></a>RRECOMMENDS</dt><dd><p>List of packages which extend usability of
+ package. Those packages will be automatically
+ installed but can be removed by user.</p></dd><dt><a name="var-RREPLACES"></a>RREPLACES</dt><dd><p>List of packages which are replaced with this
+ one.</p></dd></dl></div><div class="glossdiv"><h3 class="title">S</h3><dl><dt><a name="var-S"></a>S</dt><dd><p>
+ Path to unpacked sources (by default:
+ "${<a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a>}/${<a href="#var-PN" title="PN">PN</a>}-${<a href="#var-PV" title="PV">PV</a>}")
+ </p></dd><dt><a name="var-SECTION"></a>SECTION</dt><dd><p>Section where package should be put - used
+ by package managers</p></dd><dt><a name="var-SELECTED_OPTIMIZATION"></a>SELECTED_OPTIMIZATION</dt><dd><p>
+ The variable takes the value of <a href="#var-FULL_OPTIMIZATION" title="FULL_OPTIMIZATION">FULL_OPTIMIZATION</a>
+ unless <a href="#var-DEBUG_BUILD" title="DEBUG_BUILD">DEBUG_BUILD</a> = "1" in which case
+ <a href="#var-DEBUG_OPTIMIZATION" title="DEBUG_OPTIMIZATION">DEBUG_OPTIMIZATION</a> is used.
+ </p></dd><dt><a name="var-SERIAL_CONSOLE"></a>SERIAL_CONSOLE</dt><dd><p>Speed and device for serial port used to attach
+ serial console. This is given to kernel as "console"
+ param and after boot getty is started on that port
+ so remote login is possible.</p></dd><dt><a name="var-SHELLCMDS"></a>SHELLCMDS</dt><dd><p>
+ A list of commands to run within the a shell, used by <em class="glossterm"><a href="#var-TERMCMDRUN" title="TERMCMDRUN">TERMCMDRUN</a></em>. It defaults to
+ <em class="glossterm"><a href="#var-SHELLRCCMD" title="SHELLRCCMD">SHELLRCCMD</a></em>.
+ </p></dd><dt><a name="var-SHELLRCCMD"></a>SHELLRCCMD</dt><dd><p>
+ How to launch a shell, defaults to bash.
+ </p></dd><dt><a name="var-SITEINFO_ENDIANESS"></a>SITEINFO_ENDIANESS</dt><dd><p>
+ Contains "le" for little-endian or "be" for big-endian depending
+ on the endian byte order of the target system.
+ </p></dd><dt><a name="var-SITEINFO_BITS"></a>SITEINFO_BITS</dt><dd><p>
+ Contains "32" or "64" depending on the number of bits for the
+ CPU of the target system.
+ </p></dd><dt><a name="var-SRC_URI"></a>SRC_URI</dt><dd><p>List of source files (local or remote ones)</p></dd><dt><a name="var-SRC_URI_OVERRIDES_PACKAGE_ARCH"></a>SRC_URI_OVERRIDES_PACKAGE_ARCH</dt><dd><p>
+ By default there is code which automatically detects whether
+ <em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em>
+ contains files which are machine specific and if this is the case it
+ automatically changes
+ <em class="glossterm"><a href="#var-PACKAGE_ARCH" title="PACKAGE_ARCH">PACKAGE_ARCH</a></em>.
+ Setting this variable to "0" disables that behaviour.
+ </p></dd><dt><a name="var-SRCDATE"></a>SRCDATE</dt><dd><p>
+ Date of source code used to build package (if it was fetched
+ from SCM).
+ </p></dd><dt><a name="var-SRCREV"></a>SRCREV</dt><dd><p>
+ Revision of source code used to build package (Subversion,
+ GIT, Bazaar only).
+ </p></dd><dt><a name="var-STAGING_KERNEL_DIR"></a>STAGING_KERNEL_DIR</dt><dd><p>
+ Directory with kernel headers required to build out-of-tree
+ modules.
+ </p></dd><dt><a name="var-STAMPS"></a>STAMPS</dt><dd><p>
+ Directory (usually TMPDIR/stamps) with timestamps of
+ executed tasks.
+ </p></dd></dl></div><div class="glossdiv"><h3 class="title">T</h3><dl><dt><a name="var-TARGET_ARCH"></a>TARGET_ARCH</dt><dd><p>The architecture of the device we're building for.
+ A number of values are possible but Poky primarily supports
+ "arm" and "i586".</p></dd><dt><a name="var-TARGET_CFLAGS"></a>TARGET_CFLAGS</dt><dd><p>
+ Flags passed to C compiler for the target system. Evaluates to the same
+ as <a href="#var-CFLAGS" title="CFLAGS">CFLAGS</a>.
+ </p></dd><dt><a name="var-TARGET_FPU"></a>TARGET_FPU</dt><dd><p>Method of handling FPU code. For FPU-less targets
+ (most of ARM cpus) it has to be set to "soft" otherwise
+ kernel emulation will get used which will result in
+ performance penalty.</p></dd><dt><a name="var-TARGET_OS"></a>TARGET_OS</dt><dd><p>Type of target operating system. Can be "linux"
+ for glibc based system, "linux-uclibc" for uClibc. For
+ ARM/EABI targets there are also "linux-gnueabi" and
+ "linux-uclibc-gnueabi" values possible.</p></dd><dt><a name="var-TERMCMD"></a>TERMCMD</dt><dd><p>
+ This command is used by bitbake to lauch a terminal window with a
+ shell. The shell is unspecified so the user's default shell is used.
+ By default it is set to <span><strong class="command">gnome-terminal</strong></span> but it can
+ be any X11 terminal application or terminal multiplexers like screen.
+ </p></dd><dt><a name="var-TERMCMDRUN"></a>TERMCMDRUN</dt><dd><p>
+ This command is similar to <em class="glossterm"><a href="#var-TERMCMD" title="TERMCMD">TERMCMD</a></em> however instead of the users shell it runs the command specified by the <em class="glossterm"><a href="#var-SHELLCMDS" title="SHELLCMDS">SHELLCMDS</a></em> variable.
+ </p></dd></dl></div><div class="glossdiv"><h3 class="title">W</h3><dl><dt><a name="var-WORKDIR"></a>WORKDIR</dt><dd><p>Path to directory in tmp/work/ where package
+ will be built.</p></dd></dl></div></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ref-varlocality"></a>Appendix 7. Reference: Variable Locality (Distro, Machine, Recipe etc.)</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#ref-varlocality-config-distro">1. Distro Configuration</a></span></dt><dt><span class="section"><a href="#ref-varlocality-config-machine">2. Machine Configuration</a></span></dt><dt><span class="section"><a href="#ref-varlocality-config-local">3. Local Configuration (local.conf)</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-required">4. Recipe Variables - Required</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-dependencies">5. Recipe Variables - Dependencies</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-paths">6. Recipe Variables - Paths</a></span></dt><dt><span class="section"><a href="#ref-varlocality-recipe-build">7. Recipe Variables - Extra Build Information</a></span></dt></dl></div><p>
+ Whilst most variables can be used in almost any context (.conf, .bbclass,
+ .inc or .bb file), variables are often associated with a particular
+ locality/context. This section describes some common associations.
+ </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-config-distro"></a>1. Distro Configuration</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><a href="#var-DISTRO"><em class="glossterm"><a href="#var-DISTRO" title="DISTRO">DISTRO</a></em></a></p></li><li><p><a href="#var-DISTRO_NAME"><em class="glossterm"><a href="#var-DISTRO_NAME" title="DISTRO_NAME">DISTRO_NAME</a></em></a></p></li><li><p><a href="#var-DISTRO_VERSION"><em class="glossterm"><a href="#var-DISTRO_VERSION" title="DISTRO_VERSION">DISTRO_VERSION</a></em></a></p></li><li><p><a href="#var-MAINTAINER"><em class="glossterm"><a href="#var-MAINTAINER" title="MAINTAINER">MAINTAINER</a></em></a></p></li><li><p><a href="#var-PACKAGE_CLASSES"><em class="glossterm"><a href="#var-PACKAGE_CLASSES" title="PACKAGE_CLASSES">PACKAGE_CLASSES</a></em></a></p></li><li><p><a href="#var-TARGET_OS"><em class="glossterm"><a href="#var-TARGET_OS" title="TARGET_OS">TARGET_OS</a></em></a></p></li><li><p><a href="#var-TARGET_FPU"><em class="glossterm"><a href="#var-TARGET_FPU" title="TARGET_FPU">TARGET_FPU</a></em></a></p></li><li><p><a href="#var-POKYMODE"><em class="glossterm"><a href="#var-POKYMODE" title="POKYMODE">POKYMODE</a></em></a></p></li><li><p><a href="#var-POKYLIBC"><em class="glossterm"><a href="#var-POKYLIBC" title="POKYLIBC">POKYLIBC</a></em></a></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-config-machine"></a>2. Machine Configuration</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><a href="#var-TARGET_ARCH"><em class="glossterm"><a href="#var-TARGET_ARCH" title="TARGET_ARCH">TARGET_ARCH</a></em></a></p></li><li><p><a href="#var-SERIAL_CONSOLE"><em class="glossterm"><a href="#var-SERIAL_CONSOLE" title="SERIAL_CONSOLE">SERIAL_CONSOLE</a></em></a></p></li><li><p><a href="#var-PACKAGE_EXTRA_ARCHS"><em class="glossterm"><a href="#var-PACKAGE_EXTRA_ARCHS" title="PACKAGE_EXTRA_ARCHS">PACKAGE_EXTRA_ARCHS</a></em></a></p></li><li><p><a href="#var-IMAGE_FSTYPES"><em class="glossterm"><a href="#var-IMAGE_FSTYPES" title="IMAGE_FSTYPES">IMAGE_FSTYPES</a></em></a></p></li><li><p><a href="#var-ROOT_FLASH_SIZE"><em class="glossterm"><a href="#var-ROOT_FLASH_SIZE" title="ROOT_FLASH_SIZE">ROOT_FLASH_SIZE</a></em></a></p></li><li><p><a href="#var-MACHINE_FEATURES"><em class="glossterm"><a href="#var-MACHINE_FEATURES" title="MACHINE_FEATURES">MACHINE_FEATURES</a></em></a></p></li><li><p><a href="#var-MACHINE_EXTRA_RDEPENDS"><em class="glossterm"><a href="#var-MACHINE_EXTRA_RDEPENDS" title="MACHINE_EXTRA_RDEPENDS">MACHINE_EXTRA_RDEPENDS</a></em></a></p></li><li><p><a href="#var-MACHINE_EXTRA_RRECOMMENDS"><em class="glossterm"><a href="#var-MACHINE_EXTRA_RRECOMMENDS" title="MACHINE_EXTRA_RRECOMMNEDS">MACHINE_EXTRA_RRECOMMENDS</a></em></a></p></li><li><p><a href="#var-MACHINE_ESSENTIAL_RDEPENDS"><em class="glossterm"><a href="#var-MACHINE_ESSENTIAL_RDEPENDS" title="MACHINE_ESSENTIAL_RDEPENDS">MACHINE_ESSENTIAL_RDEPENDS</a></em></a></p></li><li><p><a href="#var-MACHINE_ESSENTIAL_RRECOMMENDS"><em class="glossterm"><a href="#var-MACHINE_ESSENTIAL_RRECOMMENDS" title="MACHINE_ESSENTIAL_RRECOOMENDS">MACHINE_ESSENTIAL_RRECOMMENDS</a></em></a></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-config-local"></a>3. Local Configuration (local.conf)</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><a href="#var-DISTRO"><em class="glossterm"><a href="#var-DISTRO" title="DISTRO">DISTRO</a></em></a></p></li><li><p><a href="#var-MACHINE"><em class="glossterm"><a href="#var-MACHINE" title="MACHINE">MACHINE</a></em></a></p></li><li><p><a href="#var-DL_DIR"><em class="glossterm"><a href="#var-DL_DIR" title="DL_DIR">DL_DIR</a></em></a></p></li><li><p><a href="#var-BBFILES"><em class="glossterm"><a href="#var-BBFILES" title="BBFILES">BBFILES</a></em></a></p></li><li><p><a href="#var-IMAGE_FEATURES"><em class="glossterm"><a href="#var-IMAGE_FEATURES" title="IMAGE_FEATURES">IMAGE_FEATURES</a></em></a></p></li><li><p><a href="#var-PACKAGE_CLASSES"><em class="glossterm"><a href="#var-PACKAGE_CLASSES" title="PACKAGE_CLASSES">PACKAGE_CLASSES</a></em></a></p></li><li><p><a href="#var-BB_NUMBER_THREADS"><em class="glossterm"><a href="#var-BB_NUMBER_THREADS" title="BB_NUMBER_THREADS">BB_NUMBER_THREADS</a></em></a></p></li><li><p><a href="#var-BBINCLUDELOGS"><em class="glossterm"><a href="#var-BBINCLUDELOGS" title="BBINCLUDELOGS">BBINCLUDELOGS</a></em></a></p></li><li><p><a href="#var-CVS_TARBALL_STASH"><em class="glossterm"><a href="#var-CVS_TARBALL_STASH" title="CVS_TARBALL_STASH">CVS_TARBALL_STASH</a></em></a></p></li><li><p><a href="#var-ENABLE_BINARY_LOCALE_GENERATION"><em class="glossterm"><a href="#var-ENABLE_BINARY_LOCALE_GENERATION" title="ENABLE_BINARY_LOCALE_GENERATION">ENABLE_BINARY_LOCALE_GENERATION</a></em></a></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-recipe-required"></a>4. Recipe Variables - Required</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><em class="glossterm"><a href="#var-DESCRIPTION" title="DESCRIPTION">DESCRIPTION</a></em></p></li><li><p><em class="glossterm"><a href="#var-LICENSE" title="LICENSE">LICENSE</a></em></p></li><li><p><em class="glossterm"><a href="#var-SECTION" title="SECTION">SECTION</a></em></p></li><li><p><em class="glossterm"><a href="#var-HOMEPAGE" title="HOMEPAGE">HOMEPAGE</a></em></p></li><li><p><em class="glossterm"><a href="#var-AUTHOR" title="AUTHOR">AUTHOR</a></em></p></li><li><p><em class="glossterm"><a href="#var-SRC_URI" title="SRC_URI">SRC_URI</a></em></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-recipe-dependencies"></a>5. Recipe Variables - Dependencies</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><em class="glossterm"><a href="#var-DEPENDS" title="DEPENDS">DEPENDS</a></em></p></li><li><p><em class="glossterm"><a href="#var-RDEPENDS" title="RDEPENDS">RDEPENDS</a></em></p></li><li><p><em class="glossterm"><a href="#var-RRECOMMENDS" title="RRECOMMENDS">RRECOMMENDS</a></em></p></li><li><p><em class="glossterm"><a href="#var-RCONFLICTS" title="RCONFLICTS">RCONFLICTS</a></em></p></li><li><p><em class="glossterm"><a href="#var-RREPLACES" title="RREPLACES">RREPLACES</a></em></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-recipe-paths"></a>6. Recipe Variables - Paths</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><em class="glossterm"><a href="#var-WORKDIR" title="WORKDIR">WORKDIR</a></em></p></li><li><p><em class="glossterm"><a href="#var-S" title="S">S</a></em></p></li><li><p><em class="glossterm"><a href="#var-FILES" title="FILES">FILES</a></em></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref-varlocality-recipe-build"></a>7. Recipe Variables - Extra Build Information</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p><em class="glossterm"><a href="#var-EXTRA_OECONF" title="EXTRA_OECONF">EXTRA_OECONF</a></em></p></li><li><p><em class="glossterm"><a href="#var-EXTRA_OEMAKE" title="EXTRA_OEMAKE">EXTRA_OEMAKE</a></em></p></li><li><p><em class="glossterm"><a href="#var-PACKAGES" title="PACKAGES">PACKAGES</a></em></p></li><li><p><em class="glossterm"><a href="#var-DEFAULT_PREFERENCE" title="DEFAULT_PREFERENCE">DEFAULT_PREFERENCE</a></em></p></li></ul></div></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="faq"></a>Appendix 8. FAQ</h2></div></div></div><div class="qandaset"><dl><dt>8.1. <a href="#id1089074">
+ How does Poky differ from OpenEmbedded?
+ </a></dt><dt>8.2. <a href="#id1089095">
+ How can you claim Poky is stable?
+ </a></dt><dt>8.3. <a href="#id1089122">
+ How do I get support for my board added to Poky?
+ </a></dt><dt>8.4. <a href="#id1089143">
+ Are there any products running poky ?
+ </a></dt><dt>8.5. <a href="#id1089157">
+ What is the Poky output ?
+ </a></dt><dt>8.6. <a href="#id1089167">
+ How do I add my package to Poky?
+ </a></dt><dt>8.7. <a href="#id1089176">
+ Do I have to reflash my entire board with a new poky image when recompiling a package?
+ </a></dt><dt>8.8. <a href="#id1089187">
+ What is GNOME Mobile? What's the difference between GNOME Mobile and GNOME?
+ </a></dt><dt>8.9. <a href="#id1089203">
+ How do I make Poky work in RHEL/CentOS?
+ </a></dt><dt>8.10. <a href="#id1089270">
+ I see lots of 404 responses for files on http://folks.o-hand.com/~richard/poky/sources/*. Is something wrong?
+ </a></dt><dt>8.11. <a href="#id1089285">
+ I have a machine specific data in a package for one machine only but the package is
+ being marked as machine specific in all cases, how do I stop it?
+ </a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id1089074"></a><a name="id1089075"></a><b>8.1.</b></td><td align="left" valign="top"><p>
+ How does Poky differ from <a href="http://www.openembedded.org/" target="_top">OpenEmbedded</a>?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ Poky is a derivative of <a href="http://www.openembedded.org/" target="_top">OpenEmbedded</a>, a stable,
+ smaller subset focused on the GNOME Mobile environment. Development
+ in Poky is closely tied to OpenEmbedded with features being merged
+ regularly between the two for mutual benefit.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089095"></a><a name="id1089096"></a><b>8.2.</b></td><td align="left" valign="top"><p>
+ How can you claim Poky is stable?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ There are three areas that help with stability;
+
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ We keep Poky small and focused - around 650 packages compared to over 5000 for full OE
+ </p></li><li><p>
+ We only support hardware that we have access to for testing
+ </p></li><li><p>
+ We have a Buildbot which provides continuous build and integration tests
+ </p></li></ul></div><p>
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089122"></a><a name="id1089123"></a><b>8.3.</b></td><td align="left" valign="top"><p>
+ How do I get support for my board added to Poky?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ There are two main ways to get a board supported in Poky;
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ Send us the board if we don't have it yet
+ </p></li><li><p>
+ Send us bitbake recipes if you have them (see the Poky handbook to find out how to create recipes)
+ </p></li></ul></div><p>
+ Usually if it's not a completely exotic board then adding support in Poky should be fairly straightforward.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089143"></a><a name="id1089144"></a><b>8.4.</b></td><td align="left" valign="top"><p>
+ Are there any products running poky ?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ The <a href="http://vernier.com/labquest/" target="_top">Vernier Labquest</a> is using Poky (for more about the Labquest see the case study at OpenedHand). There are a number of pre-production devices using Poky and we will announce those as soon as they are released.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089157"></a><a name="id1089158"></a><b>8.5.</b></td><td align="left" valign="top"><p>
+ What is the Poky output ?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ The output of a Poky build will depend on how it was started, as the same set of recipes can be used to output various formats. Usually the output is a flashable image ready for the target device.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089167"></a><a name="id1089168"></a><b>8.6.</b></td><td align="left" valign="top"><p>
+ How do I add my package to Poky?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ To add a package you need to create a bitbake recipe - see the Poky handbook to find out how to create a recipe.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089176"></a><a name="id1089177"></a><b>8.7.</b></td><td align="left" valign="top"><p>
+ Do I have to reflash my entire board with a new poky image when recompiling a package?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ Poky can build packages in various formats, ipkg, Debian package, or RPM. The package can then be upgraded using the package tools on the device, much like on a desktop distribution like Ubuntu or Fedora.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089187"></a><a name="id1089188"></a><b>8.8.</b></td><td align="left" valign="top"><p>
+ What is GNOME Mobile? What's the difference between GNOME Mobile and GNOME?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ <a href="http://www.gnome.org/mobile/" target="_top">GNOME Mobile</a> is a subset of the GNOME platform targeted at mobile and embedded devices. The the main difference between GNOME Mobile and standard GNOME is that desktop-orientated libraries have been removed, along with deprecated libraries, creating a much smaller footprint.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089203"></a><a name="id1089204"></a><b>8.9.</b></td><td align="left" valign="top"><p>
+ How do I make Poky work in RHEL/CentOS?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ To get Poky working under RHEL/CentOS 5.1 you need to first install some required packages. The standard CentOS packages needed are:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ "Development tools" (selected during installation)
+ </p></li><li><p>
+ texi2html
+ </p></li><li><p>
+ compat-gcc-34
+ </p></li></ul></div><p>
+ </p><p>
+ On top of those the following external packages are needed:
+ </p><div class="itemizedlist"><ul type="disc"><li><p>
+ python-sqlite2 from <a href="http://dag.wieers.com/rpm/packages/python-sqlite2/" target="_top">DAG
+ repository</a>
+ </p></li><li><p>
+ help2man from <a href="http://centos.karan.org/el5/extras/testing/i386/RPMS/help2man-1.33.1-2.noarch.rpm" target="_top">Karan
+ repository</a>
+ </p></li></ul></div><p>
+ </p><p>
+ Once these packages are installed Poky will be able to build standard images however there
+ may be a problem with QEMU segfaulting. You can either disable the generation of binary
+ locales by setting <em class="glossterm"><a href="#var-ENABLE_BINARY_LOCALE_GENERATION" title="ENABLE_BINARY_LOCALE_GENERATION">ENABLE_BINARY_LOCALE_GENERATION</a>
+ </em> to "0" or remove the linux-2.6-execshield.patch from the kernel and rebuild
+ it since its that patch which causes the problems with QEMU.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089270"></a><a name="id1089271"></a><b>8.10.</b></td><td align="left" valign="top"><p>
+ I see lots of 404 responses for files on http://folks.o-hand.com/~richard/poky/sources/*. Is something wrong?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ Nothing is wrong, Poky will check any configured source mirrors before downloading
+ from the upstream sources. It does this searching for both source archives and
+ pre-checked out versions of SCM managed software. This is so in large installations,
+ it can reduce load on the SCM servers themselves. The address above is one of the
+ default mirrors configured into standard Poky so if an upstream source disappears,
+ we can place sources there so builds continue to work.
+ </p></td></tr><tr class="question"><td align="left" valign="top"><a name="id1089285"></a><a name="id1089286"></a><b>8.11.</b></td><td align="left" valign="top"><p>
+ I have a machine specific data in a package for one machine only but the package is
+ being marked as machine specific in all cases, how do I stop it?
+ </p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
+ Set <em class="glossterm"><a href="#var-SRC_URI_OVERRIDES_PACKAGE_ARCH" title="SRC_URI_OVERRIDES_PACKAGE_ARCH">SRC_URI_OVERRIDES_PACKAGE_ARCH</a>
+ </em> = "0" in the .bb file but make sure the package is manually marked as
+ machine specific in the case that needs it. The code which handles <em class="glossterm"><a href="#var-SRC_URI_OVERRIDES_PACKAGE_ARCH" title="SRC_URI_OVERRIDES_PACKAGE_ARCH">SRC_URI_OVERRIDES_PACKAGE_ARCH</a></em>
+ is in base.bbclass.
+ </p></td></tr></tbody></table></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="resources"></a>Appendix 9. Contributing to Poky</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#resources-intro">1. Introduction</a></span></dt><dt><span class="section"><a href="#resources-bugtracker">2. Bugtracker</a></span></dt><dt><span class="section"><a href="#resources-mailinglist">3. Mailing list</a></span></dt><dt><span class="section"><a href="#resources-irc">4. IRC</a></span></dt><dt><span class="section"><a href="#resources-links">5. Links</a></span></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="resources-intro"></a>1. Introduction</h2></div></div></div><p>
+ We're happy for people to experiment with Poky and there are a number of places to
+ find help if you run into difficulties or find bugs. To find out how to download
+ source code see the <a href="#intro-getit" title="5. Obtaining Poky">Obtaining Poky</a> section of
+ the Introduction.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="resources-bugtracker"></a>2. Bugtracker</h2></div></div></div><p>
+ Problems with Poky should be reported in the
+ <a href="http://bugzilla.o-hand.com/" target="_top">bug tracker</a>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="resources-mailinglist"></a>3. Mailing list</h2></div></div></div><p>
+ To subscribe to the mailing list send mail to:
+ </p><p>
+ </p><pre class="literallayout">
+poky+subscribe &lt;at&gt; openedhand &lt;dot&gt; com
+ </pre><p>
+ </p><p>
+ Then follow the simple instructions in subsequent reply. Archives are
+ available <a href="http://lists.o-hand.com/poky/" target="_top">here</a>.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="resources-irc"></a>4. IRC</h2></div></div></div><p>
+ Join #poky on freenode.
+ </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="resources-links"></a>5. Links</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p>
+ <a href="http://pokylinux.org" target="_top">The Poky website</a>
+ </p></li><li><p>
+ <a href="http://www.openedhand.com/" target="_top">OpenedHand</a> - The
+ company behind Poky.
+ </p></li><li><p>
+ <a href="http://www.openembedded.org/" target="_top">OpenEmbedded</a>
+ - The upstream generic embedded distribution Poky derives
+ from (and contributes to).
+ </p></li><li><p>
+ <a href="http://developer.berlios.de/projects/bitbake/" target="_top">Bitbake</a>
+ - The tool used to process Poky metadata.
+ </p></li><li><p>
+ <a href="http://bitbake.berlios.de/manual/" target="_top">Bitbake User
+ Manual</a>
+ </p></li><li><p>
+ <a href="http://pimlico-project.org/" target="_top">Pimlico</a> - A
+ suite of lightweight Personal Information Management (PIM)
+ applications designed primarily for handheld and mobile
+ devices.
+ </p></li><li><p>
+ <a href="http://fabrice.bellard.free.fr/qemu/" target="_top">QEMU</a>
+ - An open source machine emulator and virtualizer.
+ </p></li></ul></div></div></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="contact"></a>Appendix 10. OpenedHand Contact Information</h2></div></div></div><div class="literallayout"><p><br>
+OpenedHand Ltd<br>
+Unit R, Homesdale Business Center<br>
+216-218 Homesdale Rd<br>
+Bromley, BR1 2QZ<br>
+England<br>
++44 (0) 208 819 6559<br>
+info@openedhand.com</p></div></div><div class="index"><div class="titlepage"><div><div><h2 class="title"><a name="index"></a>Index</h2></div></div></div><div class="index"></div></div></div></body></html>
diff --git a/handbook/poky-handbook.png b/handbook/poky-handbook.png
new file mode 100644
index 0000000000..333442e0d6
--- /dev/null
+++ b/handbook/poky-handbook.png
Binary files differ
diff --git a/handbook/poky-handbook.xml b/handbook/poky-handbook.xml
new file mode 100644
index 0000000000..c0c87cb0c0
--- /dev/null
+++ b/handbook/poky-handbook.xml
@@ -0,0 +1,111 @@
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<book id='poky-handbook' lang='en'
+ xmlns:xi="http://www.w3.org/2003/XInclude"
+ xmlns="http://docbook.org/ns/docbook"
+ >
+ <bookinfo>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref='common/poky-handbook.png'
+ format='SVG'
+ align='center'/>
+ </imageobject>
+ </mediaobject>
+
+ <title>Poky Handbook</title>
+ <subtitle>Hitchhiker's Guide to Poky</subtitle>
+
+ <authorgroup>
+ <author>
+ <firstname>Richard</firstname> <surname>Purdie</surname>
+ <affiliation>
+ <orgname>OpenedHand Ltd</orgname>
+ </affiliation>
+ <email>richard@openedhand.com</email>
+ </author>
+
+ <author>
+ <firstname>Tomas</firstname> <surname>Frydrych</surname>
+ <affiliation>
+ <orgname>OpenedHand Ltd</orgname>
+ </affiliation>
+ <email>tf@openedhand.com</email>
+ </author>
+
+ <author>
+ <firstname>Marcin</firstname> <surname>Juszkiewicz</surname>
+ <affiliation>
+ <orgname>OpenedHand Ltd</orgname>
+ </affiliation>
+ <email>hrw@openedhand.com</email>
+ </author>
+ <author>
+ <firstname>Dodji</firstname> <surname>Seketeli</surname>
+ <affiliation>
+ <orgname>OpenedHand Ltd</orgname>
+ </affiliation>
+ <email>dodji@openedhand.com</email>
+ </author>
+ </authorgroup>
+
+ <revhistory>
+ <revision>
+ <revnumber>3.1</revnumber>
+ <date>15 Feburary 2008</date>
+ <revremark>Poky 3.1 (Pinky) Documentation Release</revremark>
+ </revision>
+ </revhistory>
+
+ <copyright>
+ <year>2007</year>
+ <holder>OpenedHand Limited</holder>
+ </copyright>
+
+ <legalnotice>
+ <para>
+ Permission is granted to copy, distribute and/or modify this document under
+ the terms of the <ulink type="http" url="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/">Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England &amp; Wales</ulink> as published by Creative Commons.
+ </para>
+ </legalnotice>
+
+ </bookinfo>
+
+ <xi:include href="introduction.xml"/>
+
+ <xi:include href="usingpoky.xml"/>
+
+ <xi:include href="extendpoky.xml"/>
+
+ <xi:include href="development.xml"/>
+
+ <xi:include href="ref-structure.xml"/>
+
+ <xi:include href="ref-bitbake.xml"/>
+
+ <xi:include href="ref-classes.xml"/>
+
+ <xi:include href="ref-images.xml"/>
+
+ <xi:include href="ref-features.xml"/>
+
+ <xi:include href="ref-variables.xml"/>
+
+ <xi:include href="ref-varlocality.xml"/>
+
+ <xi:include href="faq.xml"/>
+
+ <xi:include href="resources.xml"/>
+
+ <xi:include href="contactus.xml"/>
+
+ <index id='index'>
+ <title>Index</title>
+ </index>
+
+</book>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/poky-logo.svg b/handbook/poky-logo.svg
new file mode 100644
index 0000000000..d0be402870
--- /dev/null
+++ b/handbook/poky-logo.svg
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
+]>
+<svg version="1.1"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ x="0px" y="0px" width="300px" height="300px" viewBox="-40.981 -92.592 300 300" enable-background="new -40.981 -92.592 300 300"
+ xml:space="preserve">
+<defs>
+</defs>
+<path fill="#6AC7BD" d="M48.96,48.476v0.003h0.001v-0.061C48.962,48.438,48.96,48.457,48.96,48.476z"/>
+<g opacity="0.65">
+ <g>
+ <path fill="#EF412A" d="M24.482,23.998v-0.003C10.961,23.994,0,34.955,0,48.476l0.001,0.003v0.003
+ C0.003,62.001,10.962,72.96,24.482,72.96l0,0H0v24.482h0.003c13.52-0.002,24.479-10.962,24.479-24.481h0.003
+ C38.005,72.959,48.963,62,48.963,48.479v-0.003C48.962,34.957,38.001,23.998,24.482,23.998z M24.482,50.928
+ c-1.352,0-2.448-1.096-2.448-2.448s1.096-2.448,2.448-2.448s2.448,1.096,2.448,2.448S25.834,50.928,24.482,50.928z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#A9C542" d="M119.96,48.842c0.064-1.294,1.126-2.326,2.437-2.326c1.31,0,2.371,1.032,2.436,2.327
+ c12.378-1.223,22.046-11.662,22.046-24.36h-24.482C122.396,10.961,111.435,0,97.915,0v24.485
+ C97.917,37.183,107.584,47.619,119.96,48.842z M124.833,49.084c-0.064,1.295-1.126,2.327-2.436,2.327h-0.001v22.033h24.482v-0.003
+ C146.876,60.745,137.208,50.308,124.833,49.084z M119.949,48.963H97.915v24.479h0c12.698,0,23.137-9.668,24.36-22.043
+ C120.981,51.334,119.949,50.274,119.949,48.963z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#F9C759" d="M168.912,48.967c0-1.311,1.033-2.371,2.328-2.436c-1.222-12.379-11.661-22.049-24.361-22.049v24.481
+ c0,13.521,10.961,24.481,24.482,24.481v-22.03C170.007,51.415,168.912,50.319,168.912,48.967z M195.841,48.978
+ c0-0.005,0.001-0.009,0.001-0.014V24.482h-0.004c-12.698,0.002-23.136,9.672-24.356,22.049c1.294,0.064,2.326,1.125,2.326,2.436
+ s-1.032,2.372-2.327,2.436c1.198,12.187,11.333,21.743,23.763,22.042h-23.883v24.482h0.003
+ c13.515-0.002,24.47-10.954,24.478-24.467h0.002V48.979L195.841,48.978z M195.832,48.964h0.01v0.014L195.832,48.964z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#6AC7BD" d="M70.994,48.479H48.962v0.002h22.033C70.995,48.481,70.994,48.48,70.994,48.479z M73.44,24.001h-0.003
+ v22.031c0.002,0,0.003,0,0.005,0c1.352,0,2.448,1.096,2.448,2.448s-1.096,2.448-2.448,2.448c-1.351,0-2.446-1.094-2.448-2.445
+ H48.958v0.003c0.002,13.519,10.961,24.478,24.479,24.478s24.477-10.959,24.479-24.478v-0.003
+ C97.916,34.963,86.958,24.003,73.44,24.001z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#EF412A" d="M24.482,23.998v-0.003C10.961,23.994,0,34.955,0,48.476h22.034c0.002-1.351,1.097-2.445,2.448-2.445
+ c1.352,0,2.448,1.096,2.448,2.448s-1.096,2.448-2.448,2.448v22.01C24.469,59.427,13.514,48.479,0,48.479V72.96h24.481l0,0H0
+ v24.482h0.003c13.52-0.002,24.479-10.962,24.479-24.481h0.003C38.005,72.959,48.963,62,48.963,48.479v-0.003
+ C48.962,34.957,38.001,23.998,24.482,23.998z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#A9C542" d="M122.397,46.516c1.31,0,2.371,1.032,2.436,2.327c12.378-1.223,22.046-11.662,22.046-24.36h-24.482
+ L122.397,46.516L122.397,46.516z M97.915,0v24.482h24.481C122.396,10.961,111.435,0,97.915,0z M122.275,46.528
+ c-1.223-12.377-11.662-22.046-24.361-22.046v24.482h0v24.479h0c12.698,0,23.137-9.668,24.36-22.043
+ c-1.294-0.065-2.326-1.125-2.326-2.436C119.949,47.653,120.98,46.593,122.275,46.528z M124.833,49.084
+ c-0.064,1.295-1.126,2.327-2.436,2.327h-0.001v22.033h24.482v-0.003C146.876,60.745,137.208,50.308,124.833,49.084z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#F9C759" d="M173.795,49.1c-0.071,1.289-1.129,2.315-2.435,2.315c-1.354,0-2.449-1.096-2.449-2.448
+ c0-1.311,1.033-2.371,2.328-2.436c-1.222-12.379-11.661-22.049-24.361-22.049v24.481c0,13.521,10.961,24.481,24.482,24.481v24.482
+ h0.003c13.515-0.002,24.47-10.954,24.478-24.467h0.001v-0.016h-0.001C195.833,60.753,186.167,50.322,173.795,49.1z
+ M195.838,24.482c-12.698,0.002-23.136,9.672-24.356,22.049c1.293,0.064,2.324,1.124,2.326,2.433h22.033v0.015
+ c0-0.005,0.001-0.01,0.001-0.015V24.482H195.838z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#6AC7BD" d="M71.007,48.347c0.068-1.242,1.055-2.23,2.297-2.301c-0.795-8.026-5.454-14.913-12.103-18.762
+ C57.601,25.2,53.424,24,48.965,24h-0.003c0,4.46,1.199,8.638,3.283,12.24C56.093,42.891,62.98,47.552,71.007,48.347z
+ M48.962,48.418c0,0.02-0.001,0.038-0.001,0.058v0.003h0.001V48.418z M70.995,48.482c0-0.001,0-0.001,0-0.002H48.962v0.002H70.995
+ z M73.44,24.001h-0.003v22.031c0.002,0,0.003,0,0.005,0c1.352,0,2.448,1.096,2.448,2.448s-1.096,2.448-2.448,2.448
+ c-1.351,0-2.446-1.094-2.448-2.445H48.958v0.003c0.002,13.519,10.961,24.478,24.479,24.478s24.477-10.959,24.479-24.478v-0.003
+ C97.916,34.963,86.958,24.003,73.44,24.001z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#EF412A" d="M24.482,23.998v-0.003C10.961,23.994,0,34.955,0,48.476h22.034c0.002-1.351,1.097-2.445,2.448-2.445
+ c1.352,0,2.448,1.096,2.448,2.448s-1.096,2.448-2.448,2.448c-1.311,0-2.372-1.033-2.436-2.327
+ C9.669,49.824,0.001,60.262,0.001,72.96H0v24.482h0.003c13.52-0.002,24.479-10.962,24.479-24.481h0.003
+ C38.005,72.959,48.963,62,48.963,48.479v-0.003C48.962,34.957,38.001,23.998,24.482,23.998z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#A9C542" d="M119.949,48.963c0-1.352,1.096-2.448,2.448-2.448c1.31,0,2.371,1.032,2.436,2.327
+ c12.378-1.223,22.046-11.662,22.046-24.36h-24.482C122.396,10.961,111.435,0,97.915,0v24.482h24.479
+ c-13.52,0.002-24.478,10.962-24.478,24.481h0v24.479h0c12.698,0,23.137-9.668,24.36-22.043
+ C120.981,51.334,119.949,50.274,119.949,48.963z M124.833,49.084c-0.064,1.295-1.126,2.327-2.436,2.327h-0.001v22.033h24.482
+ v-0.003C146.876,60.745,137.208,50.308,124.833,49.084z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#F9C759" d="M195.841,48.979l-0.006-0.015h0.006V48.979c0-0.005,0.001-0.01,0.001-0.015V24.482h-0.004
+ c-12.698,0.002-23.136,9.672-24.356,22.049c1.294,0.064,2.326,1.125,2.326,2.436c0,1.352-1.096,2.448-2.447,2.448
+ c-1.354,0-2.449-1.096-2.449-2.448c0-1.311,1.033-2.371,2.328-2.436c-1.222-12.379-11.661-22.049-24.361-22.049v24.481
+ c0,13.521,10.961,24.481,24.482,24.481v24.482h0.003c13.519-0.002,24.479-10.963,24.479-24.482h-23.884
+ C185.203,73.126,195.841,62.299,195.841,48.979z"/>
+ </g>
+</g>
+<g opacity="0.65">
+ <g>
+ <path fill="#6AC7BD" d="M73.44,24.001h-0.003C59.919,24.003,48.96,34.959,48.958,48.476v0.003h0.003v0.002l-0.004,0.001v0.003
+ c0.002,13.519,10.961,24.478,24.479,24.478s24.477-10.959,24.479-24.478v-0.003C97.916,34.963,86.958,24.003,73.44,24.001z
+ M73.442,50.928c-1.352,0-2.448-1.096-2.448-2.448s1.096-2.448,2.448-2.448s2.448,1.096,2.448,2.448S74.794,50.928,73.442,50.928z
+ "/>
+ </g>
+</g>
+</svg>
diff --git a/handbook/ref-bitbake.xml b/handbook/ref-bitbake.xml
new file mode 100644
index 0000000000..8652424466
--- /dev/null
+++ b/handbook/ref-bitbake.xml
@@ -0,0 +1,340 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='ref-bitbake'>
+
+ <title>Reference: Bitbake</title>
+
+ <para>
+ Bitbake a program written in Python which interprets the metadata
+ that makes up Poky. At some point, people wonder what actually happens
+ when you type <command>bitbake poky-image-sato</command>. This section
+ aims to give an overview of what happens behind the scenes from a
+ BitBake perspective.
+ </para>
+
+ <para>
+ It is worth noting that bitbake aims to be a generic "task" executor
+ capable of handling complex dependency relationships. As such it has no
+ real knowledge of what the tasks its executing actually do. It just
+ considers a list of tasks with dependencies and handles metadata
+ consisting of variables in a certain format which get passed to the
+ tasks.
+ </para>
+
+ <section id='ref-bitbake-parsing'>
+ <title>Parsing</title>
+
+ <para>
+ The first thing BitBake does is work out its configuration by
+ looking for a file called <filename>bitbake.conf</filename>.
+ Bitbake searches through the <varname>BBPATH</varname> environment
+ variable looking for a <filename class="directory">conf/</filename>
+ directory containing a <filename>bitbake.conf</filename> file and
+ adds the first <filename>bitbake.conf</filename> file found in
+ <varname>BBPATH</varname> (similar to the PATH environment variable).
+ For Poky, <filename>bitbake.conf</filename> is found in <filename
+ class="directory">meta/conf/</filename>.
+ </para>
+
+ <para>
+ In Poky, <filename>bitbake.conf</filename> lists other configuration
+ files to include from a <filename class="directory">conf/</filename>
+ directory below the directories listed in <varname>BBPATH</varname>.
+ In general the most important configuration file from a user's perspective
+ is <filename>local.conf</filename>, which contains a users customized
+ settings for Poky. Other notable configuration files are the distribution
+ configuration file (set by the <glossterm><link linkend='var-DISTRO'>
+ DISTRO</link></glossterm> variable) and the machine configuration file
+ (set by the <glossterm><link linkend='var-MACHINE'>MACHINE</link>
+ </glossterm> variable). The <glossterm><link linkend='var-DISTRO'>
+ DISTRO</link></glossterm> and <glossterm><link linkend='var-MACHINE'>
+ MACHINE</link></glossterm> environment variables are both usually set in
+ the <filename>local.conf</filename> file. Valid distribution
+ configuration files are available in the <filename class="directory">
+ meta/conf/distro/</filename> directory and valid machine configuration
+ files in the <filename class="directory">meta/conf/machine/</filename>
+ directory. Within the <filename class="directory">
+ meta/conf/machine/include/</filename> directory are various <filename>
+ tune-*.inc</filename> configuration files which provide common
+ "tuning" settings specific to and shared between particular
+ architectures and machines.
+ </para>
+
+ <para>
+ After the parsing of the configuration files some standard classes
+ are included. In particular, <filename>base.bbclass</filename> is
+ always included, as will any other classes
+ specified in the configuration using the <glossterm><link
+ linkend='var-INHERIT'>INHERIT</link></glossterm>
+ variable. Class files are searched for in a classes subdirectory
+ under the paths in <varname>BBPATH</varname> in the same way as
+ configuration files.
+ </para>
+
+ <para>
+ After the parsing of the configuration files is complete, the
+ variable <glossterm><link linkend='var-BBFILES'>BBFILES</link></glossterm>
+ is set, usually in
+ <filename>local.conf</filename>, and defines the list of places to search for
+ <filename class="extension">.bb</filename> files. By
+ default this specifies the <filename class="directory">meta/packages/
+ </filename> directory within Poky, but other directories such as
+ <filename class="directory">meta-extras/</filename> can be included
+ too. If multiple directories are specified a system referred to as
+ <link linkend='usingpoky-changes-collections'>"collections"</link> is used to
+ determine which files have priority.
+ </para>
+
+ <para>
+ Bitbake parses each <filename class="extension">.bb</filename> file in
+ <glossterm><link linkend='var-BBFILES'>BBFILES</link></glossterm> and
+ stores the values of various variables. In summary, for each
+ <filename class="extension">.bb</filename>
+ file the configuration + base class of variables are set, followed
+ by the data in the <filename class="extension">.bb</filename> file
+ itself, followed by any inherit commands that
+ <filename class="extension">.bb</filename> file might contain.
+ </para>
+
+ <para>
+ Parsing <filename class="extension">.bb</filename> files is a time
+ consuming process, so a cache is kept to speed up subsequent parsing.
+ This cache is invalid if the timestamp of the <filename class="extension">.bb</filename>
+ file itself has changed, or if the timestamps of any of the include,
+ configuration or class files the <filename class="extension">.bb</filename>
+ file depends on have changed.
+ </para>
+ </section>
+
+ <section id='ref-bitbake-providers'>
+ <title>Preferences and Providers</title>
+
+ <para>
+ Once all the <filename class="extension">.bb</filename> files have been
+ parsed, BitBake will proceed to build "poky-image-sato" (or whatever was
+ specified on the commandline) and looks for providers of that target.
+ Once a provider is selected, BitBake resolves all the dependencies for
+ the target. In the case of "poky-image-sato", it would lead to
+ <filename>task-oh.bb</filename> and <filename>task-base.bb</filename>
+ which in turn would lead to packages like <application>Contacts</application>,
+ <application>Dates</application>, <application>BusyBox</application>
+ and these in turn depend on glibc and the toolchain.
+ </para>
+
+ <para>
+ Sometimes a target might have multiple providers and a common example
+ is "virtual/kernel" that is provided by each kernel package. Each machine
+ will often elect the best provider of its kernel with a line like the
+ following in the machine configuration file:
+ </para>
+ <programlisting><glossterm><link linkend='var-PREFERRED_PROVIDER'>PREFERRED_PROVIDER</link></glossterm>_virtual/kernel = "linux-rp"</programlisting>
+ <para>
+ The default <glossterm><link linkend='var-PREFERRED_PROVIDER'>
+ PREFERRED_PROVIDER</link></glossterm> is the provider with the same name as
+ the target.
+ </para>
+
+ <para>
+ Understanding how providers are chosen is complicated by the fact
+ multiple versions might be present. Bitbake defaults to the highest
+ version of a provider by default. Version comparisons are made using
+ the same method as Debian. The <glossterm><link
+ linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></glossterm>
+ variable can be used to specify a particular version
+ (usually in the distro configuration) but the order can
+ also be influenced by the <glossterm><link
+ linkend='var-DEFAULT_PREFERENCE'>DEFAULT_PREFERENCE</link></glossterm>
+ variable. By default files
+ have a preference of "0". Setting the
+ <glossterm><link
+ linkend='var-DEFAULT_PREFERENCE'>DEFAULT_PREFERENCE</link></glossterm> to "-1" will
+ make a package unlikely to be used unless it was explicitly referenced and
+ "1" makes it likely the package will be used.
+ <glossterm><link
+ linkend='var-PREFERRED_VERSION'>PREFERRED_VERSION</link></glossterm> overrides
+ any default preference. <glossterm><link
+ linkend='var-DEFAULT_PREFERENCE'>DEFAULT_PREFERENCE</link></glossterm>
+ is often used to mark more
+ experimental new versions of packages until they've undergone sufficient
+ testing to be considered stable.
+ </para>
+
+ <para>
+ The end result is that internally, BitBake has now built a list of
+ providers for each target it needs in order of priority.
+ </para>
+ </section>
+
+ <section id='ref-bitbake-dependencies'>
+ <title>Dependencies</title>
+
+ <para>
+ Each target BitBake builds consists of multiple tasks (e.g. fetch,
+ unpack, patch, configure, compile etc.). For best performance on
+ multi-core systems, BitBake considers each task as an independent
+ entity with a set of dependencies. There are many variables that
+ are used to signify these dependencies and more information can be found
+ found about these in the <ulink url='http://bitbake.berlios.de/manual/'>
+ BitBake manual</ulink>. At a basic level it is sufficient to know
+ that BitBake uses the <glossterm><link
+ linkend='var-DEPENDS'>DEPENDS</link></glossterm> and
+ <glossterm><link linkend='var-RDEPENDS'>RDEPENDS</link></glossterm> variables when
+ calculating dependencies and descriptions of these variables are
+ available through the links.
+ </para>
+
+ </section>
+
+ <section id='ref-bitbake-tasklist'>
+ <title>The Task List</title>
+
+ <para>
+ Based on the generated list of providers and the dependency information,
+ BitBake can now calculate exactly which tasks it needs to run and in what
+ order. The build now starts with BitBake forking off threads up to
+ the limit set in the <glossterm><link
+ linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link></glossterm> variable
+ as long there are tasks ready to run, i.e. tasks with all their
+ dependencies met.
+ </para>
+
+ <para>
+ As each task completes, a timestamp is written to the directory
+ specified by the <glossterm><link
+ linkend='var-STAMPS'>STAMPS</link></glossterm> variable (usually
+ <filename class="directory">build/tmp/stamps/*/</filename>). On
+ subsequent runs, BitBake looks at the <glossterm><link
+ linkend='var-STAMPS'>STAMPS</link></glossterm>
+ directory and will not rerun
+ tasks its already completed unless a timestamp is found to be invalid.
+ Currently, invalid timestamps are only considered on a per <filename
+ class="extension">.bb</filename> file basis so if for example the configure stamp has a timestamp greater than the
+ compile timestamp for a given target the compile task would rerun but this
+ has no effect on other providers depending on that target. This could
+ change or become configurable in future versions of BitBake. Some tasks
+ are marked as "nostamp" tasks which means no timestamp file will be written
+ and the task will always rerun.
+ </para>
+
+ <para>Once all the tasks have been completed BitBake exits.</para>
+
+ </section>
+
+ <section id='ref-bitbake-runtask'>
+ <title>Running a Task</title>
+
+ <para>
+ It's worth noting what BitBake does to run a task. A task can either
+ be a shell task or a python task. For shell tasks, BitBake writes a
+ shell script to <filename>${WORKDIR}/temp/run.do_taskname.pid</filename>
+ and then executes the script. The generated
+ shell script contains all the exported variables, and the shell functions
+ with all variables expanded. Output from the shell script is
+ sent to the file <filename>${WORKDIR}/temp/log.do_taskname.pid</filename>.
+ Looking at the
+ expanded shell functions in the run file and the output in the log files
+ is a useful debugging technique.
+ </para>
+
+ <para>
+ Python functions are executed internally to BitBake itself and
+ logging goes to the controlling terminal. Future versions of BitBake will
+ write the functions to files in a similar way to shell functions and
+ logging will also go to the log files in a similar way.
+ </para>
+ </section>
+
+
+ <section id='ref-bitbake-commandline'>
+ <title>Commandline</title>
+
+ <para>
+ To quote from "bitbake --help":
+ </para>
+
+ <screen>Usage: bitbake [options] [package ...]
+
+Executes the specified task (default is 'build') for a given set of BitBake files.
+It expects that BBFILES is defined, which is a space separated list of files to
+be executed. BBFILES does support wildcards.
+Default BBFILES are the .bb files in the current directory.
+
+Options:
+ --version show program's version number and exit
+ -h, --help show this help message and exit
+ -b BUILDFILE, --buildfile=BUILDFILE
+ execute the task against this .bb file, rather than a
+ package from BBFILES.
+ -k, --continue continue as much as possible after an error. While the
+ target that failed, and those that depend on it,
+ cannot be remade, the other dependencies of these
+ targets can be processed all the same.
+ -f, --force force run of specified cmd, regardless of stamp status
+ -i, --interactive drop into the interactive mode also called the BitBake
+ shell.
+ -c CMD, --cmd=CMD Specify task to execute. Note that this only executes
+ the specified task for the providee and the packages
+ it depends on, i.e. 'compile' does not implicitly call
+ stage for the dependencies (IOW: use only if you know
+ what you are doing). Depending on the base.bbclass a
+ listtasks tasks is defined and will show available
+ tasks
+ -r FILE, --read=FILE read the specified file before bitbake.conf
+ -v, --verbose output more chit-chat to the terminal
+ -D, --debug Increase the debug level. You can specify this more
+ than once.
+ -n, --dry-run don't execute, just go through the motions
+ -p, --parse-only quit after parsing the BB files (developers only)
+ -d, --disable-psyco disable using the psyco just-in-time compiler (not
+ recommended)
+ -s, --show-versions show current and preferred versions of all packages
+ -e, --environment show the global or per-package environment (this is
+ what used to be bbread)
+ -g, --graphviz emit the dependency trees of the specified packages in
+ the dot syntax
+ -I IGNORED_DOT_DEPS, --ignore-deps=IGNORED_DOT_DEPS
+ Stop processing at the given list of dependencies when
+ generating dependency graphs. This can help to make
+ the graph more appealing
+ -l DEBUG_DOMAINS, --log-domains=DEBUG_DOMAINS
+ Show debug logging for the specified logging domains
+ -P, --profile profile the command and print a report</screen>
+
+ </section>
+
+ <section id='ref-bitbake-fetchers'>
+ <title>Fetchers</title>
+
+ <para>
+ As well as the containing the parsing and task/dependency handling
+ code, bitbake also contains a set of "fetcher" modules which allow
+ fetching of source code from various types of sources. Example
+ sources might be from disk with the metadata, from websites, from
+ remote shell accounts or from SCM systems like cvs/subversion/git.
+ </para>
+
+ <para>
+ The fetchers are usually triggered by entries in
+ <glossterm><link linkend='var-SRC_URI'>SRC_URI</link></glossterm>. Information about the
+ options and formats of entries for specific fetchers can be found in the
+ <ulink url='http://bitbake.berlios.de/manual/'>BitBake manual</ulink>.
+ </para>
+
+ <para>
+ One useful feature for certain SCM fetchers is the ability to
+ "auto-update" when the upstream SCM changes version. Since this
+ requires certain functionality from the SCM only certain systems
+ support it, currently Subversion, Bazaar and to a limited extent, Git. It
+ works using the <glossterm><link linkend='var-SRCREV'>SRCREV</link>
+ </glossterm> variable. See the <link linkend='platdev-appdev-srcrev'>
+ developing with an external SCM based project</link> section for more
+ information.
+ </para>
+
+ </section>
+
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4 spell spelllang=en_gb
+-->
diff --git a/handbook/ref-classes.xml b/handbook/ref-classes.xml
new file mode 100644
index 0000000000..1cef9012c1
--- /dev/null
+++ b/handbook/ref-classes.xml
@@ -0,0 +1,460 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='ref-classes'>
+<title>Reference: Classes</title>
+
+<para>
+ Class files are used to abstract common functionality and share it amongst multiple
+ <filename class="extension">.bb</filename> files. Any metadata usually found in a
+ <filename class="extension">.bb</filename> file can also be placed in a class
+ file. Class files are identified by the extension
+ <filename class="extension">.bbclass</filename> and are usually placed
+ in a <filename class="directory">classes/</filename> directory beneath the
+ <filename class="directory">meta/</filename> directory or the <filename
+ class="directory">build/</filename> directory in the same way as <filename
+ class="extension">.conf</filename> files in the <filename
+ class="directory">conf</filename> directory. Class files are searched for
+ in BBPATH in the same was as <filename class="extension">.conf</filename> files too.
+</para>
+
+<para>
+ In most cases inheriting the class is enough to enable its features, although
+ for some classes you may need to set variables and/or override some of the
+ default behaviour.
+</para>
+
+<section id='ref-classes-base'>
+ <title>The base class - <filename>base.bbclass</filename></title>
+
+ <para>
+ The base class is special in that every <filename class="extension">.bb</filename>
+ file inherits it automatically. It contains definitions of standard basic
+ tasks such as fetching, unpacking, configuring (empty by default), compiling
+ (runs any Makefile present), installing (empty by default) and packaging
+ (empty by default). These are often overridden or extended by other classes
+ such as <filename>autotools.bbclass</filename> or
+ <filename>package.bbclass</filename>. The class contains some commonly
+ some commonly used functions such as <function>oe_libinstall</function>
+ and <function>oe_runmake</function>. The end of the class file has a
+ list of standard mirrors for software projects for use by the fetcher code.
+ </para>
+</section>
+
+<section id='ref-classes-autotools'>
+ <title>Autotooled Packages - <filename>autotools.bbclass</filename></title>
+
+ <para>
+ Autotools (autoconf, automake, libtool) brings standardisation and this
+ class aims to define a set of tasks (configure, compile etc.) that will
+ work for all autotooled packages. It should usualy be enough to define
+ a few standard variables as documented in the <link
+ linkend='usingpoky-extend-addpkg-autotools'>simple autotools
+ example</link> section and then simply "inherit autotools". This class
+ can also work with software that emulates autotools.
+ </para>
+
+ <para>
+ Its useful to have some idea of the tasks this class defines work and
+ what they do behind the scenes.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ 'do_configure' regenearates the configure script and
+ then launches it with a standard set of arguments used during
+ cross-compilation. Additional parameters can be passed to
+ <command>configure</command> through the <glossterm><link
+ linkend='var-EXTRA_OECONF'>EXTRA_OECONF</link></glossterm> variable.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 'do_compile' runs <command>make</command> with arguments specifying
+ the compiler and linker. Additional arguments can be passed through
+ the <glossterm><link linkend='var-EXTRA_OEMAKE'>EXTRA_OEMAKE</link>
+ </glossterm> variable.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 'do_install' runs <command>make install</command> passing a DESTDIR
+ option taking its value from the standard <glossterm><link
+ linkend='var-DESTDIR'>DESTDIR</link></glossterm> variable.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ By default the class does not stage headers and libraries so
+ the recipe author needs to add their own <function>do_stage()</function>
+ task. For typical recipes the following example code will usually be
+ enough:
+ <programlisting>
+do_stage() {
+autotools_stage_all
+}</programlisting>
+ </para>
+</section>
+
+<section id='ref-classes-update-alternatives'>
+ <title>Alternatives - <filename>update-alternatives.bbclass</filename></title>
+
+ <para>
+ Several programs can fulfill the same or similar function and
+ they can be installed with the same name. For example the <command>ar</command>
+ command is available from the "busybox", "binutils" and "elfutils" packages.
+ This class handles the renaming of the binaries so multiple packages
+ can be installed which would otherwise conflict and yet the
+ <command>ar</command> command still works regardless of which are installed
+ or subsequently removed. It renames the conflicting binary in each package
+ and symlinks the highest priority binary during installation or removal
+ of packages.
+
+ Four variables control this class:
+ </para>
+
+
+ <variablelist>
+ <varlistentry>
+ <term>ALTERNATIVE_NAME</term>
+ <listitem>
+ <para>
+ Name of binary which will be replaced (<command>ar</command> in this example)
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>ALTERNATIVE_LINK</term>
+ <listitem>
+ <para>
+ Path to resulting binary ("/bin/ar" in this example)
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>ALTERNATIVE_PATH</term>
+ <listitem>
+ <para>
+ Path to real binary ("/usr/bin/ar.binutils" in this example)
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>ALTERNATIVE_PRIORITY</term>
+ <listitem>
+ <para>
+ Priority of binary, the version with the most features should have the highest priority
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+</section>
+
+<section id='ref-classes-update-rc.d'>
+ <title>Initscripts - <filename>update-rc.d.bbclass</filename></title>
+
+ <para>
+ This class uses update-rc.d to safely install an initscript on behalf of
+ the package. Details such as making sure the initscript is stopped before
+ a package is removed and started when the package is installed are taken
+ care of. Three variables control this class,
+ <link linkend='var-INITSCRIPT_PACKAGES'>INITSCRIPT_PACKAGES</link>,
+ <link linkend='var-INITSCRIPT_NAME'>INITSCRIPT_NAME</link> and
+ <link linkend='var-INITSCRIPT_PARAMS'>INITSCRIPT_PARAMS</link>. See the
+ links for details.
+ </para>
+</section>
+
+<section id='ref-classes-binconfig'>
+ <title>Binary config scripts - <filename>binconfig.bbclass</filename></title>
+
+ <para>
+ Before pkg-config became widespread, libraries shipped shell
+ scripts to give information about the libraries and include paths needed
+ to build software (usually named 'LIBNAME-config'). This class assists
+ any recipe using such scripts.
+ </para>
+
+ <para>
+ During staging Bitbake installs such scripts into the <filename
+ class="directory">staging/</filename> directory. It also changes all
+ paths to point into the <filename class="directory">staging/</filename>
+ directory so all builds which use the script will use the correct
+ directories for the cross compiling layout.
+ </para>
+</section>
+
+<section id='ref-classes-debian'>
+ <title>Debian renaming - <filename>debian.bbclass</filename></title>
+
+ <para>
+ This class renames packages so that they follow the Debian naming
+ policy, i.e. 'glibc' becomes 'libc6' and 'glibc-devel' becomes
+ 'libc6-dev'.
+ </para>
+</section>
+
+<section id='ref-classes-pkgconfig'>
+ <title>Pkg-config - <filename>pkgconfig.bbclass</filename></title>
+
+ <para>
+ Pkg-config brought standardisation and this class aims to make its
+ integration smooth for all libraries which make use of it.
+ </para>
+
+ <para>
+ During staging Bitbake installs pkg-config data into the <filename
+ class="directory">staging/</filename> directory. By making use of
+ sysroot functionality within pkgconfig this class no longer has to
+ manipulate the files.
+ </para>
+</section>
+
+<section id='ref-classes-src-distribute'>
+ <title>Distribution of sources - <filename>src_distribute_local.bbclass</filename></title>
+
+ <para>
+ Many software licenses require providing the sources for compiled
+ binaries. To simplify this process two classes were created:
+ <filename>src_distribute.bbclass</filename> and
+ <filename>src_distribute_local.bbclass</filename>.
+ </para>
+
+ <para>
+ Result of their work are <filename class="directory">tmp/deploy/source/</filename>
+ subdirs with sources sorted by <glossterm><link linkend='var-LICENSE'>LICENSE</link>
+ </glossterm> field. If recipe lists few licenses (or has entries like "Bitstream Vera") source archive is put in each
+ license dir.
+ </para>
+
+ <para>
+ Src_distribute_local class has three modes of operating:
+ </para>
+
+ <itemizedlist>
+ <listitem><para>copy - copies the files to the distribute dir</para></listitem>
+ <listitem><para>symlink - symlinks the files to the distribute dir</para></listitem>
+ <listitem><para>move+symlink - moves the files into distribute dir, and symlinks them back</para></listitem>
+ </itemizedlist>
+</section>
+
+<section id='ref-classes-perl'>
+ <title>Perl modules - <filename>cpan.bbclass</filename></title>
+
+ <para>
+ Recipes for Perl modules are simple - usually needs only
+ pointing to source archive and inheriting of proper bbclass.
+ Building is split into two methods dependly on method used by
+ module authors.
+ </para>
+
+ <para>
+ Modules which use old Makefile.PL based build system require
+ using of <filename>cpan.bbclass</filename> in their recipes.
+ </para>
+
+ <para>
+ Modules which use Build.PL based build system require
+ using of <filename>cpan_build.bbclass</filename> in their recipes.
+ </para>
+
+</section>
+
+<section id='ref-classes-distutils'>
+ <title>Python extensions - <filename>distutils.bbclass</filename></title>
+
+ <para>
+ Recipes for Python extensions are simple - usually needs only
+ pointing to source archive and inheriting of proper bbclass.
+ Building is split into two methods dependly on method used by
+ module authors.
+ </para>
+
+ <para>
+ Extensions which use autotools based build system require using
+ of autotools and distutils-base bbclasses in their recipes.
+ </para>
+
+ <para>
+ Extensions which use distutils build system require using
+ of <filename>distutils.bbclass</filename> in their recipes.
+ </para>
+
+</section>
+
+<section id='ref-classes-devshell'>
+ <title>Developer Shell - <filename>devshell.bbclass</filename></title>
+
+ <para>
+ This class adds the devshell task. Its usually up to distribution policy
+ to include this class (Poky does). See the <link
+ linkend='platdev-appdev-devshell'>developing with 'devshell' section</link>
+ for more information about using devshell.
+ </para>
+
+</section>
+
+<section id='ref-classes-package'>
+ <title>Packaging - <filename>package*.bbclass</filename></title>
+
+ <para>
+ The packaging classes add support for generating packages from the output
+ from builds. The core generic functionality is in
+ <filename>package.bbclass</filename>, code specific to particular package
+ types is contained in various sub classes such as
+ <filename>package_deb.bbclass</filename> and <filename>package_ipk.bbclass</filename>.
+ Most users will
+ want one or more of these classes and this is controlled by the <glossterm>
+ <link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link></glossterm>
+ variable. The first class listed in this variable will be used for image
+ generation. Since images are generated from packages a packaging class is
+ needed to enable image generation.
+ </para>
+
+</section>
+
+<section id='ref-classes-kernel'>
+ <title>Building kernels - <filename>kernel.bbclass</filename></title>
+
+ <para>
+ This class handle building of Linux kernels and the class contains code to know how to build both 2.4 and 2.6 kernel trees. All needed headers are
+ staged into <glossterm><link
+ linkend='var-STAGING_KERNEL_DIR'>STAGING_KERNEL_DIR</link></glossterm>
+ directory to allow building of out-of-tree modules using <filename>module.bbclass</filename>.
+ </para>
+ <para>
+ The means that each kerel module built is packaged separately and inter-modules dependencies are
+ created by parsing the <command>modinfo</command> output. If all modules are
+ required then installing "kernel-modules" package will install all
+ packages with modules and various other kernel packages such as "kernel-vmlinux" are also generated.
+ </para>
+
+ <para>
+ Various other classes are used by the kernel and module classes internally including
+ <filename>kernel-arch.bbclass</filename>, <filename>module_strip.bbclass</filename>,
+ <filename>module-base.bbclass</filename> and <filename>linux-kernel-base.bbclass</filename>.
+ </para>
+</section>
+
+<section id='ref-classes-image'>
+ <title>Creating images - <filename>image.bbclass</filename> and <filename>rootfs*.bbclass</filename></title>
+
+ <para>
+ Those classes add support for creating images in many formats. First the
+ rootfs is created from packages by one of the <filename>rootfs_*.bbclass</filename>
+ files (depending on package format used) and then image is created.
+
+ The <glossterm><link
+ linkend='var-IMAGE_FSTYPES'>IMAGE_FSTYPES</link></glossterm>
+ variable controls which types of image to generate.
+
+ The list of packages to install into the image is controlled by the
+ <glossterm><link
+ linkend='var-IMAGE_INSTALL'>IMAGE_INSTALL</link></glossterm>
+ variable.
+ </para>
+</section>
+
+<section id='ref-classes-sanity'>
+ <title>Host System sanity checks - <filename>sanity.bbclass</filename></title>
+
+ <para>
+ This class checks prerequisite software is present to try and identify
+ and notify the user of problems which will affect their build. It also
+ performs basic checks of the users configuration from local.conf to
+ prevent common mistakes and resulting build failures. Its usually up to
+ distribution policy to include this class (Poky does).
+ </para>
+</section>
+
+<section id='ref-classes-insane'>
+ <title>Generated output quality assurance checks - <filename>insane.bbclass</filename></title>
+
+ <para>
+ This class adds a step to package generation which sanity checks the
+ packages generated by Poky. There are an ever increasing range of checks
+ this makes, checking for common problems which break builds/packages/images,
+ see the bbclass file for more information. Its usually up to distribution
+ policy to include this class (Poky doesn't at the time of writing but plans
+ to soon).
+ </para>
+</section>
+
+<section id='ref-classes-siteinfo'>
+ <title>Autotools configuration data cache - <filename>siteinfo.bbclass</filename></title>
+
+ <para>
+ Autotools can require tests which have to execute on the target hardware.
+ Since this isn't possible in general when cross compiling, siteinfo is
+ used to provide cached test results so these tests can be skipped over but
+ the correct values used. The <link linkend='structure-meta-site'>meta/site directory</link>
+ contains test results sorted into different categories like architecture, endianess and
+ the libc used. Siteinfo provides a list of files containing data relevant to
+ the current build in the <glossterm><link linkend='var-CONFIG_SITE'>CONFIG_SITE
+ </link></glossterm> variable which autotools will automatically pick up.
+ </para>
+ <para>
+ The class also provides variables like <glossterm><link
+ linkend='var-SITEINFO_ENDIANESS'>SITEINFO_ENDIANESS</link></glossterm>
+ and <glossterm><link linkend='var-SITEINFO_BITS'>SITEINFO_BITS</link>
+ </glossterm> which can be used elsewhere in the metadata.
+ </para>
+ <para>
+ This class is included from <filename>base.bbclass</filename> and is hence always active.
+ </para>
+</section>
+
+<section id='ref-classes-others'>
+ <title>Other Classes</title>
+
+ <para>
+ Only the most useful/important classes are covered here but there are
+ others, see the <filename class="directory">meta/classes</filename> directory for the rest.
+ </para>
+</section>
+
+<!-- Undocumented classes are:
+ base_srpm.bbclass
+ bootimg.bbclass
+ ccache.inc
+ ccdv.bbclass
+ cml1.bbclass
+ cross.bbclass
+ flow-lossage.bbclass
+ gconf.bbclass
+ gettext.bbclass
+ gnome.bbclass
+ gtk-icon-cache.bbclass
+ icecc.bbclass
+ lib_package.bbclass
+ mozilla.bbclass
+ multimachine.bbclass
+ native.bbclass
+ oelint.bbclass
+ patch.bbclass
+ patcher.bbclass
+ pkg_distribute.bbclass
+ pkg_metainfo.bbclass
+ poky.bbclass
+ rm_work.bbclass
+ rpm_core.bbclass
+ scons.bbclass
+ sdk.bbclass
+ sdl.bbclass
+ sip.bbclass
+ sourcepkg.bbclass
+ srec.bbclass
+ syslinux.bbclass
+ tinderclient.bbclass
+ tmake.bbclass
+ xfce.bbclass
+ xlibs.bbclass
+-->
+
+
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/ref-features.xml b/handbook/ref-features.xml
new file mode 100644
index 0000000000..cde9588116
--- /dev/null
+++ b/handbook/ref-features.xml
@@ -0,0 +1,302 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='ref-features'>
+ <title>Reference: Features</title>
+
+ <para>'Features' provide a mechanism for working out which packages
+ should be included in the generated images. Distributions can
+ select which features they want to support through the
+ <glossterm linkend='var-DISTRO_FEATURES'><link
+ linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></glossterm>
+ variable which is set in the distribution configuration file
+ (poky.conf for Poky). Machine features are set in the
+ <glossterm linkend='var-MACHINE_FEATURES'><link
+ linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></glossterm>
+ variable which is set in the machine configuration file and
+ specifies which hardware features a given machine has.
+ </para>
+
+ <para>These two variables are combined to work out which kernel modules,
+ utilities and other packages to include. A given distribution can
+ support a selected subset of features so some machine features might not
+ be included if the distribution itself doesn't support them.
+ </para>
+
+ <section id='ref-features-distro'>
+ <title>Distro</title>
+
+ <para>The items below are valid options for <glossterm linkend='var-DISTRO_FEATURES'><link
+ linkend='var-DISTRO_FEATURES'>DISTRO_FEATURES</link></glossterm>.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ alsa - ALSA support will be included (OSS compatibility
+ kernel modules will be installed if available)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ bluetooth - Include bluetooth support (integrated BT only)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ ext2 - Include tools for supporting for devices with internal
+ HDD/Microdrive for storing files (instead of Flash only devices)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ irda - Include Irda support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ keyboard - Include keyboard support (e.g. keymaps will be
+ loaded during boot).
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ pci - Include PCI bus support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ pcmcia - Include PCMCIA/CompactFlash support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ usbgadget - USB Gadget Device support (for USB
+ networking/serial/storage)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ usbhost - USB Host support (allows to connect external
+ keyboard, mouse, storage, network etc)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ wifi - WiFi support (integrated only)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ cramfs - CramFS support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ ipsec - IPSec support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ ipv6 - IPv6 support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ nfs - NFS client support (for mounting NFS exports on
+ device)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ ppp - PPP dialup support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ smbfs - SMB networks client support (for mounting
+ Samba/Microsoft Windows shares on device)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-features-machine'>
+ <title>Machine</title>
+
+ <para>The items below are valid options for <glossterm linkend='var-MACHINE_FEATURES'><link
+ linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></glossterm>.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ acpi - Hardware has ACPI (x86/x86_64 only)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ alsa - Hardware has ALSA audio drivers
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ apm - Hardware uses APM (or APM emulation)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ bluetooth - Hardware has integrated BT
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ ext2 - Hardware HDD or Microdrive
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ irda - Hardware has Irda support
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ keyboard - Hardware has a keyboard
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ pci - Hardware has a PCI bus
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ pcmcia - Hardware has PCMCIA or CompactFlash sockets
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ screen - Hardware has a screen
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ serial - Hardware has serial support (usually RS232)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ touchscreen - Hardware has a touchscreen
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ usbgadget - Hardware is USB gadget device capable
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ usbhost - Hardware is USB Host capable
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ wifi - Hardware has integrated WiFi
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-features-image'>
+ <title>Reference: Images</title>
+
+ <para>
+ The contents of images generated by Poky can be controlled by the <glossterm
+ linkend='var-IMAGE_FEATURES'><link
+ linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm>
+ variable in local.conf. Through this you can add several different
+ predefined packages such as development utilities or packages with debug
+ information needed to investigate application problems or profile applications.
+ </para>
+
+ <para>
+ Current list of <glossterm
+ linkend='var-IMAGE_FEATURES'><link
+ linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm> contains:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ apps-console-core - Core console applications such as ssh daemon,
+ avahi daemon, portmap (for mounting NFS shares)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ x11-base - X11 server + minimal desktop
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ x11-sato - OpenedHand Sato environment
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ apps-x11-core - Core X11 applications such as an X Terminal, file manager, file editor
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ apps-x11-games - A set of X11 games
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ apps-x11-pimlico - OpenedHand Pimlico application suite
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ tools-sdk - A full SDK which runs on device
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ tools-debug - Debugging tools such as strace and gdb
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ tools-profile - Profiling tools such as oprofile, exmap and LTTng
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ tools-testapps - Device testing tools (e.g. touchscreen debugging)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ nfs-server - NFS server (exports / over NFS to everybody)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ dev-pkgs - Development packages (headers and extra library links) for all packages
+ installed in a given image
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ dbg-pkgs - Debug packages for all packages installed in a given image
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+</appendix>
+
+<!--
+vim: expandtab tw=80 ts=4 spell spelllang=en_gb
+-->
diff --git a/handbook/ref-images.xml b/handbook/ref-images.xml
new file mode 100644
index 0000000000..80e36aec60
--- /dev/null
+++ b/handbook/ref-images.xml
@@ -0,0 +1,69 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='ref-images'>
+ <title>Reference: Images</title>
+
+ <para>
+ Poky has several standard images covering most people's standard needs. A full
+ list of image targets can be found by looking in the <filename class="directory">
+ meta/packages/images/</filename> directory. The standard images are listed below
+ along with details of what they contain:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>poky-image-minimal</emphasis> - A small image, just enough
+ to allow a device to boot
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>poky-image-base</emphasis> - console only image with full
+ support of target device hardware
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>poky-image-core</emphasis> - X11 image with simple apps like
+ terminal, editor and file manager
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>poky-image-sato</emphasis> - X11 image with Sato theme and
+ Pimlico applications. Also contains terminal, editor and file manager.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>poky-image-sdk</emphasis> - X11 image like poky-image-sato but
+ also include native toolchain and libraries needed to build applications
+ on the device itself. Also includes testing and profiling tools and debug
+ symbols.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>meta-toolchain</emphasis> - This generates a tarball containing
+ a standalone toolchain which can be used externally to Poky. It is self
+ contained and unpacks to the <filename class="directory">/usr/local/poky</filename>
+ directory. It also contains a copy of QEMU and the scripts neccessary to run
+ poky QEMU images.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>meta-toolchain-sdk</emphasis> - This includes everything in
+ meta-toolchain but also includes development headers and libraries
+ forming a complete standalone SDK. See the <link linkend='platdev-appdev-external-sdk'>
+ Developing using the Poky SDK</link> and <link linkend='platdev-appdev-external-anjuta'>
+ Developing using the Anjuta Plugin</link> sections for more information.
+ </para>
+ </listitem>
+ </itemizedlist>
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/ref-structure.xml b/handbook/ref-structure.xml
new file mode 100644
index 0000000000..8a564e77b3
--- /dev/null
+++ b/handbook/ref-structure.xml
@@ -0,0 +1,365 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='ref-structure'>
+
+<title>Reference: Directory Structure</title>
+
+<para>
+ Poky consists of several components and understanding what these are
+ and where they're located is one of the keys to using it. This section walks
+ through the Poky directory structure giving information about the various
+ files and directories.
+</para>
+
+<section id='structure-core'>
+ <title>Top level core components</title>
+
+ <section id='structure-core-bitbake'>
+ <title><filename class="directory">bitbake/</filename></title>
+
+ <para>
+ A copy of BitBake is included within Poky for ease of use, and should
+ usually match the current BitBake stable release from the BitBake project.
+ Bitbake, a metadata interpreter, reads the Poky metadata and runs the tasks
+ defined in the Poky metadata. Failures are usually from the metadata, not
+ BitBake itself, so most users don't need to worry about BitBake. The
+ <filename class="directory">bitbake/bin/</filename> directory is placed
+ into the PATH environment variable by the <link
+ linkend="structure-core-script">poky-init-build-env</link> script.
+ </para>
+ <para>
+ For more information on BitBake please see the BitBake project site at
+ <ulink url="http://bitbake.berlios.de/"/>
+ and the BitBake on-line manual at <ulink url="http://bitbake.berlios.de/manual/"/>.
+ </para>
+ </section>
+
+ <section id='structure-core-build'>
+ <title><filename class="directory">build/</filename></title>
+
+ <para>
+ This directory contains user configuration files and the output
+ from Poky.
+ </para>
+ </section>
+
+ <section id='structure-core-meta'>
+ <title><filename class="directory">meta/</filename></title>
+
+ <para>
+ This directory contains the core metadata, a key part of Poky. Within this
+ directory there are definitions of the machines, the Poky distribution
+ and the packages that make up a given system.
+ </para>
+ </section>
+
+ <section id='structure-core-meta-extras'>
+ <title><filename class="directory">meta-extras/</filename></title>
+
+ <para>
+ This directory is similar to <filename class="directory">meta/</filename>,
+ and contains some extra metadata not included in standard Poky. These are
+ disabled by default, and are not supported as part of Poky.
+ </para>
+ </section>
+
+ <section id='structure-core-scripts'>
+ <title><filename class="directory">scripts/</filename></title>
+
+ <para>
+ This directory contains various integration scripts which implement
+ extra functionality in the Poky environment, such as the QEMU
+ scripts. This directory is appended to the PATH environment variable by the
+ <link linkend="structure-core-script">poky-init-build-env</link> script.
+ </para>
+ </section>
+
+ <section id='structure-core-sources'>
+ <title><filename class="directory">sources/</filename></title>
+
+ <para>
+ While not part of a checkout, Poky will create this directory as
+ part of any build. Any downloads are placed in this directory (as
+ specified by the <glossterm><link linkend='var-DL_DIR'>DL_DIR</link>
+ </glossterm> variable). This directory can be shared between Poky
+ builds to save downloading files multiple times. SCM checkouts are
+ also stored here as e.g. <filename class="directory">sources/svn/
+ </filename>, <filename class="directory">sources/cvs/</filename> or
+ <filename class="directory">sources/git/</filename> and the
+ sources directory may contain archives of checkouts for various
+ revisions or dates.
+ </para>
+
+ <para>
+ It's worth noting that BitBake creates <filename class="extension">.md5
+ </filename> stamp files for downloads. It uses these to mark downloads as
+ complete as well as for checksum and access accounting purposes. If you add
+ a file manually to the directory, you need to touch the corresponding
+ <filename class="extension">.md5</filename> file too.
+ </para>
+
+ <para>
+ This location can be overridden by setting <glossterm><link
+ linkend='var-DL_DIR'>DL_DIR</link></glossterm> in <filename>local.conf
+ </filename>. This directory can be shared between builds and even between
+ machines via NFS, so downloads are only made once, speeding up builds.
+ </para>
+
+ </section>
+
+ <section id='structure-core-script'>
+ <title><filename>poky-init-build-env</filename></title>
+
+ <para>
+ This script is used to setup the Poky build environment. Sourcing this file in
+ a shell makes changes to PATH and sets other core BitBake variables based on the
+ current working directory. You need to use this before running Poky commands.
+ Internally it uses scripts within the <filename class="directory">scripts/
+ </filename> directory to do the bulk of the work.
+ </para>
+ </section>
+</section>
+
+<section id='structure-build'>
+ <title><filename class="directory">build/</filename> - The Build Directory</title>
+
+ <section id='structure-build-conf-local.conf'>
+ <title><filename>build/conf/local.conf</filename></title>
+
+ <para>
+ This file contains all the local user configuration of Poky. If there
+ is no <filename>local.conf</filename> present, it is created from
+ <filename>local.conf.sample</filename>. The <filename>local.conf</filename>
+ file contains documentation on the various configuration options. Any
+ variable set here overrides any variable set elsewhere within Poky unless
+ that variable is hardcoded within Poky (e.g. by using '=' instead of '?=').
+ Some variables are hardcoded for various reasons but these variables are
+ relatively rare.
+ </para>
+
+ <para>
+ Edit this file to set the <glossterm><link linkend='var-MACHINE'>MACHINE</link></glossterm> for which you want to build, which package types you
+ wish to use (PACKAGE_CLASSES) or where downloaded files should go
+ (<glossterm><link linkend='var-DL_DIR'>DL_DIR</link></glossterm>).
+ </para>
+ </section>
+
+ <section id='structure-build-tmp'>
+ <title><filename class="directory">build/tmp/</filename></title>
+
+ <para>
+ This is created by BitBake if it doesn't exist and is where all the Poky output
+ is placed. To clean Poky and start a build from scratch (other than downloads),
+ you can wipe this directory. The <filename class="directory">tmp/
+ </filename> directory has some important sub-components detailed below.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-cache'>
+ <title><filename class="directory">build/tmp/cache/</filename></title>
+
+ <para>
+ When BitBake parses the metadata it creates a cache file of the result which can
+ be used when subsequently running commands. These are stored here on
+ a per machine basis.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-cross'>
+ <title><filename class="directory">build/tmp/cross/</filename></title>
+
+ <para>
+ The cross compiler when generated is placed into this directory and those
+ beneath it.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-deploy'>
+ <title><filename class="directory">build/tmp/deploy/</filename></title>
+
+ <para>Any 'end result' output from Poky is placed under here.</para>
+ </section>
+
+ <section id='structure-build-tmp-deploy-deb'>
+ <title><filename class="directory">build/tmp/deploy/deb/</filename></title>
+
+ <para>
+ Any .deb packages emitted by Poky are placed here, sorted into feeds for
+ different architecture types.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-deploy-images'>
+ <title><filename class="directory">build/tmp/deploy/images/</filename></title>
+
+ <para>
+ Complete filesystem images are placed here. If you want to flash the resulting
+ image from a build onto a device, look here for them.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-deploy-ipk'>
+ <title><filename class="directory">build/tmp/deploy/ipk/</filename></title>
+
+ <para>Any resulting .ipk packages emitted by Poky are placed here.</para>
+ </section>
+
+ <section id='structure-build-tmp-rootfs'>
+ <title><filename class="directory">build/tmp/rootfs/</filename></title>
+
+ <para>
+ This is a temporary scratch area used when creating filesystem images. It is run
+ under fakeroot and is not useful once that fakeroot session has ended as
+ information is lost. It is left around since it is still useful in debugging
+ image creation problems.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-staging'>
+ <title><filename class="directory">build/tmp/staging/</filename></title>
+
+ <para>
+ Any package needing to share output with other packages does so within staging.
+ This means it contains any shared header files and any shared libraries amongst
+ other data. It is subdivided by architecture so multiple builds can run within
+ the one build directory.
+ </para>
+ </section>
+
+ <section id='structure-build-tmp-stamps'>
+ <title><filename class="directory">build/tmp/stamps/</filename></title>
+
+ <para>
+ This is used by BitBake for accounting purposes to keep track of which tasks
+ have been run and when. It is also subdivided by architecture. The files are
+ empty and the important information is the filenames and timestamps.</para>
+ </section>
+
+ <section id='structure-build-tmp-work'>
+ <title><filename class="directory">build/tmp/work/</filename></title>
+
+ <para>
+ This directory contains various subdirectories for each architecture, and each package built by BitBake has its own work directory under the appropriate architecture subdirectory. All tasks are executed from this work directory. As an example, the source for a particular package will be unpacked, patched, configured and compiled all within its own work directory.
+ </para>
+
+ <para>
+ It is worth considering the structure of a typical work directory. An
+ example is the linux-rp kernel, version 2.6.20 r7 on the machine spitz
+ built within Poky. For this package a work directory of <filename
+ class="directory">tmp/work/spitz-poky-linux-gnueabi/linux-rp-2.6.20-r7/
+ </filename>, referred to as <glossterm><link linkend='var-WORKDIR'>WORKDIR
+ </link></glossterm>, is created. Within this directory, the source is
+ unpacked to linux-2.6.20 and then patched by quilt (see <link
+ linkend="usingpoky-modifying-packages-quilt">Section 3.5.1</link>).
+ Within the <filename class="directory">linux-2.6.20</filename> directory,
+ standard Quilt directories <filename class="directory">linux-2.6.20/patches</filename>
+ and <filename class="directory">linux-2.6.20/.pc</filename> are created,
+ and standard quilt commands can be used.
+ </para>
+
+ <para>
+ There are other directories generated within <glossterm><link
+ linkend='var-WORKDIR'>WORKDIR</link></glossterm>. The most important
+ is <glossterm><link linkend='var-WORKDIR'>WORKDIR</link></glossterm><filename class="directory">/temp/</filename> which has log files for each
+ task (<filename>log.do_*.pid</filename>) and the scripts BitBake runs for
+ each task (<filename>run.do_*.pid</filename>). The <glossterm><link
+ linkend='var-WORKDIR'>WORKDIR</link></glossterm><filename
+ class="directory">/image/</filename> directory is where <command>make
+ install</command> places its output which is then split into subpackages
+ within <glossterm><link linkend='var-WORKDIR'>WORKDIR</link></glossterm><filename class="directory">/install/</filename>.
+ </para>
+ </section>
+</section>
+
+<section id='structure-meta'>
+ <title><filename class="directory">meta/</filename> - The Metadata</title>
+
+ <para>
+ As mentioned previously, this is the core of Poky. It has several
+ important subdivisions:
+ </para>
+
+ <section id='structure-meta-classes'>
+ <title><filename class="directory">meta/classes/</filename></title>
+
+ <para>
+ Contains the <filename class="extension">*.bbclass</filename> files. Class
+ files are used to abstract common code allowing it to be reused by multiple
+ packages. The <filename>base.bbclass</filename> file is inherited by every
+ package. Examples of other important classes are
+ <filename>autotools.bbclass</filename> that in theory allows any
+ Autotool-enabled package to work with Poky with minimal effort, or
+ <filename>kernel.bbclass</filename> that contains common code and functions
+ for working with the linux kernel. Functions like image generation or
+ packaging also have their specific class files (<filename>image.bbclass
+ </filename>, <filename>rootfs_*.bbclass</filename> and
+ <filename>package*.bbclass</filename>).
+ </para>
+ </section>
+
+ <section id='structure-meta-conf'>
+ <title><filename class="directory">meta/conf/</filename></title>
+
+ <para>
+ This is the core set of configuration files which start from
+ <filename>bitbake.conf</filename> and from which all other configuration
+ files are included (see the includes at the end of the file, even
+ <filename>local.conf</filename> is loaded from there!). While
+ <filename>bitbake.conf</filename> sets up the defaults, these can often be
+ overridden by user (<filename>local.conf</filename>), machine or
+ distribution configuration files.
+ </para>
+ </section>
+
+ <section id='structure-meta-conf-machine'>
+ <title><filename class="directory">meta/conf/machine/</filename></title>
+
+ <para>
+ Contains all the machine configuration files. If you set MACHINE="spitz", the
+ end result is Poky looking for a <filename>spitz.conf</filename> file in this directory. The includes
+ directory contains various data common to multiple machines. If you want to add
+ support for a new machine to Poky, this is the directory to look in.
+ </para>
+ </section>
+
+ <section id='structure-meta-conf-distro'>
+ <title><filename class="directory">meta/conf/distro/</filename></title>
+
+ <para>
+ Any distribution specific configuration is controlled from here. OpenEmbedded
+ supports multiple distributions of which Poky is one. Poky only contains the
+ Poky distribution so poky.conf is the main file here. This includes the
+ versions and SRCDATES for applications which are configured here. An example of
+ an alternative configuration is poky-bleeding.conf although this mainly inherits
+ its configuration from Poky itself.
+ </para>
+ </section>
+
+ <section id='structure-meta-packages'>
+ <title><filename class="directory">meta/packages/</filename></title>
+
+ <para>
+ Each application (package) Poky can build has an associated .bb file which are
+ all stored under this directory. Poky finds them through the BBFILES variable
+ which defaults to packages/*/*.bb. Adding a new piece of software to Poky
+ consists of adding the appropriate .bb file. The .bb files from OpenEmbedded
+ upstream are usually compatible although they are not supported.
+ </para>
+ </section>
+
+ <section id='structure-meta-site'>
+ <title><filename class="directory">meta/site/</filename></title>
+
+ <para>
+ Certain autoconf test results cannot be determined when cross compiling since it
+ can't run tests on a live system. This directory therefore contains a list of
+ cached results for various architectures which is passed to autoconf.
+ </para>
+ </section>
+</section>
+
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/ref-variables.xml b/handbook/ref-variables.xml
new file mode 100644
index 0000000000..437e8240f6
--- /dev/null
+++ b/handbook/ref-variables.xml
@@ -0,0 +1,825 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<!-- Dummy chapter -->
+<appendix id='ref-variables-glos'>
+
+<title>Reference: Variables Glossary</title>
+
+<para>
+ This section lists common variables used in Poky and gives an overview
+ of their function and contents.
+</para>
+
+<glossary id='ref-variables-glossary'>
+
+
+ <para>
+ <link linkend='var-glossary-a'>A</link>
+ <link linkend='var-glossary-b'>B</link>
+ <link linkend='var-glossary-c'>C</link>
+ <link linkend='var-glossary-d'>D</link>
+ <link linkend='var-glossary-e'>E</link>
+ <link linkend='var-glossary-f'>F</link>
+<!-- <link linkend='var-glossary-g'>G</link> -->
+ <link linkend='var-glossary-h'>H</link>
+ <link linkend='var-glossary-i'>I</link>
+<!-- <link linkend='var-glossary-j'>J</link> -->
+ <link linkend='var-glossary-k'>K</link>
+ <link linkend='var-glossary-l'>L</link>
+ <link linkend='var-glossary-m'>M</link>
+<!-- <link linkend='var-glossary-n'>N</link> -->
+<!-- <link linkend='var-glossary-o'>O</link> -->
+ <link linkend='var-glossary-p'>P</link>
+<!-- <link linkend='var-glossary-q'>Q</link> -->
+ <link linkend='var-glossary-r'>R</link>
+ <link linkend='var-glossary-s'>S</link>
+ <link linkend='var-glossary-t'>T</link>
+<!-- <link linkend='var-glossary-u'>U</link> -->
+<!-- <link linkend='var-glossary-v'>V</link> -->
+ <link linkend='var-glossary-w'>W</link>
+<!-- <link linkend='var-glossary-x'>X</link> -->
+<!-- <link linkend='var-glossary-y'>Y</link> -->
+<!-- <link linkend='var-glossary-z'>Z</link>-->
+ </para>
+
+ <glossdiv id='var-glossary-a'><title>A</title>
+
+ <glossentry id='var-AUTHOR'><glossterm>AUTHOR</glossterm>
+ <glossdef>
+ <para>E-mail address to contact original author(s) - to
+ send patches, forward bugs...</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-AUTOREV'><glossterm>AUTOREV</glossterm>
+ <glossdef>
+ <para>Use current (newest) source revision - used with
+ <glossterm><link linkend='var-SRCREV'>SRCREV</link></glossterm>
+ variable.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-b'><title>B</title>
+
+ <glossentry id='var-BB_NUMBER_THREADS'><glossterm>BB_NUMBER_THREADS</glossterm>
+ <glossdef>
+ <para>Number of BitBake threads</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-BBFILES'><glossterm>BBFILES</glossterm>
+ <glossdef>
+ <para>List of recipes used by BitBake to build software</para>
+ </glossdef>
+ </glossentry>
+
+ <!-- BBPATH is not a usable variable in .bb files and should not be listed here -->
+
+ <glossentry id='var-BBINCLUDELOGS'><glossterm>BBINCLUDELOGS</glossterm>
+ <glossdef>
+ <para>Variable which controls how BitBake displays logs on build failure.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-c'><title>C</title>
+
+ <glossentry id='var-CFLAGS'><glossterm>CFLAGS</glossterm>
+ <glossdef>
+ <para>
+ Flags passed to C compiler for the target system. Evaluates to the same
+ as <link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link>.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-COMPATIBLE_MACHINES'><glossterm>COMPATIBLE_MACHINES</glossterm>
+ <glossdef>
+ <para>A regular expression which evalutates to match the machines the recipe
+ works with. It stops recipes being run on machines they're incompatible with
+ which is partciuarly useful with kernels. It also helps to to increase parsing
+ speed as if its found the current machine is not compatible, further parsing
+ of the recipe is skipped.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-CONFIG_SITE'><glossterm>CONFIG_SITE</glossterm>
+ <glossdef>
+ <para>
+ Contains a list of files which containing autoconf test results relevant
+ to the current build. This variable is used by the autotools utilities
+ when running configure.
+ </para>
+ </glossdef>
+ </glossentry>
+
+
+ <glossentry id='var-CVS_TARBALL_STASH'><glossterm>CVS_TARBALL_STASH</glossterm>
+ <glossdef>
+ <para>Location to search for
+ pre-generated tarballs when fetching from remote SCM
+ repositories (CVS/SVN/GIT)</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-d'><title>D</title>
+
+ <glossentry id='var-D'><glossterm>D</glossterm>
+ <glossdef>
+ <para>Destination directory</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DEBUG_BUILD'><glossterm>DEBUG_BUILD</glossterm>
+ <glossdef>
+ <para>
+ Build packages with debugging information. This influences the value
+ <link linkend='var-SELECTED_OPTIMIZATION'>SELECTED_OPTIMIZATION</link>
+ takes.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DEBUG_OPTIMIZATION'><glossterm>DEBUG_OPTIMIZATION</glossterm>
+ <glossdef>
+ <para>
+ The options to pass in <link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link>
+ and <link linkend='var-CFLAGS'>CFLAGS</link> when compiling a system for debugging.
+ This defaults to "-O -fno-omit-frame-pointer -g".
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DEFAULT_PREFERENCE'><glossterm>DEFAULT_PREFERENCE</glossterm>
+ <glossdef>
+ <para>Priority of recipe</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DEPENDS'><glossterm>DEPENDS</glossterm>
+ <glossdef>
+ <para>
+ A list of build time dependencies for a given recipe. These indicate
+ recipes that must have staged before this recipe can configure.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DESCRIPTION'><glossterm>DESCRIPTION</glossterm>
+ <glossdef>
+ <para>Package description used by package
+ managers</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DESTDIR'><glossterm>DESTDIR</glossterm>
+ <glossdef>
+ <para>Destination directory</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DISTRO'><glossterm>DISTRO</glossterm>
+ <glossdef>
+ <para>Short name of distribution</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DISTRO_EXTRA_RDEPENDS'><glossterm>DISTRO_EXTRA_RDEPENDS</glossterm>
+ <glossdef>
+ <para>List of packages required by distribution.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DISTRO_EXTRA_RRECOMMENDS'><glossterm>DISTRO_EXTRA_RRECOMMENDS</glossterm>
+ <glossdef>
+ <para>List of packages which extend usability of
+ image. Those packages will be automatically
+ installed but can be removed by user.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DISTRO_FEATURES'><glossterm>DISTRO_FEATURES</glossterm>
+ <glossdef>
+ <para>Features of the distribution.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DISTRO_NAME'><glossterm>DISTRO_NAME</glossterm>
+ <glossdef>
+ <para>Long name of distribution</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm>
+ <glossdef>
+ <para>Version of distribution</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-DL_DIR'><glossterm>DL_DIR</glossterm>
+ <glossdef>
+ <para>Directory where all fetched sources will be stored</para>
+ </glossdef>
+
+ </glossentry>
+ </glossdiv>
+
+ <glossdiv id='var-glossary-e'><title>E</title>
+
+ <glossentry id='var-ENABLE_BINARY_LOCALE_GENERATION'><glossterm>ENABLE_BINARY_LOCALE_GENERATION</glossterm>
+ <glossdef>
+ <para>Variable which control which locales for glibc are
+ to be generated during build (useful if target device
+ has 64M RAM or less)</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-EXTRA_OECONF'><glossterm>EXTRA_OECONF</glossterm>
+ <glossdef>
+ <para>Additional 'configure' script options</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-EXTRA_OEMAKE'><glossterm>EXTRA_OEMAKE</glossterm>
+ <glossdef>
+ <para>Additional GNU make options</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-f'><title>F</title>
+
+ <glossentry id='var-FILES'><glossterm>FILES</glossterm>
+ <glossdef>
+ <para>list of directories/files which will be placed
+ in packages</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-FULL_OPTIMIZATION'><glossterm>FULL_OPTIMIZATION</glossterm>
+ <glossdef>
+ <para>
+ The options to pass in <link linkend='var-TARGET_CFLAGS'>TARGET_CFLAGS</link>
+ and <link linkend='var-CFLAGS'>CFLAGS</link> when compiling an optimised system.
+ This defaults to "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2".
+ </para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+<!-- <glossdiv id='var-glossary-g'><title>G</title>-->
+<!-- </glossdiv>-->
+
+ <glossdiv id='var-glossary-h'><title>H</title>
+
+ <glossentry id='var-HOMEPAGE'><glossterm>HOMEPAGE</glossterm>
+ <glossdef>
+ <para>Website where more info about package can be found</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-i'><title>I</title>
+
+ <glossentry id='var-IMAGE_FEATURES'><glossterm>IMAGE_FEATURES</glossterm>
+ <glossdef>
+ <para><link linkend="ref-features-image">List of
+ features</link> present in resulting images</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-IMAGE_FSTYPES'><glossterm>IMAGE_FSTYPES</glossterm>
+ <glossdef>
+ <para>Formats of rootfs images which we want to have
+ created</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-IMAGE_INSTALL'><glossterm>IMAGE_INSTALL</glossterm>
+ <glossdef>
+ <para>List of packages used to build image</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-INHIBIT_PACKAGE_STRIP'><glossterm>INHIBIT_PACKAGE_STRIP</glossterm>
+ <glossdef>
+ <para>
+ This variable causes the build to not strip binaries in
+ resulting packages.
+ </para>
+ </glossdef>
+ </glossentry>
+
+
+ <glossentry id='var-INHERIT'><glossterm>INHERIT</glossterm>
+ <glossdef>
+ <para>
+ This variable causes the named class to be inherited at
+ this point during parsing. Its only valid in configuration
+ files.
+ </para>
+ </glossdef>
+ </glossentry>
+
+
+ <glossentry id='var-INITSCRIPT_PACKAGES'><glossterm>INITSCRIPT_PACKAGES</glossterm>
+ <glossdef>
+ <para>
+ Scope: Used in recipes when using update-rc.d.bbclass. Optional, defaults to PN.
+ </para>
+ <para>
+ A list of the packages which contain initscripts. If multiple
+ packages are specified you need to append the package name
+ to the other INITSCRIPT_* as an override.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-INITSCRIPT_NAME'><glossterm>INITSCRIPT_NAME</glossterm>
+ <glossdef>
+ <para>
+ Scope: Used in recipes when using update-rc.d.bbclass. Mandatory.
+ </para>
+ <para>
+ The filename of the initscript (as installed to ${etcdir}/init.d).
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-INITSCRIPT_PARAMS'><glossterm>INITSCRIPT_PARAMS</glossterm>
+ <glossdef>
+ <para>
+ Scope: Used in recipes when using update-rc.d.bbclass. Mandatory.
+ </para>
+ <para>
+ Specifies the options to pass to update-rc.d. An example is
+ "start 99 5 2 . stop 20 0 1 6 ." which gives the script a
+ runlevel of 99, starts the script in initlevels 2 and 5 and
+ stops it in levels 0, 1 and 6.
+ </para>
+ </glossdef>
+ </glossentry>
+
+
+ </glossdiv>
+
+<!-- <glossdiv id='var-glossary-j'><title>J</title>-->
+<!-- </glossdiv>-->
+
+ <glossdiv id='var-glossary-k'><title>K</title>
+
+ <glossentry id='var-KERNEL_IMAGETYPE'><glossterm>KERNEL_IMAGETYPE</glossterm>
+ <glossdef>
+ <para>The type of kernel to build for a device, usually set by the
+ machine configuration files and defaults to "zImage". This is used
+ when building the kernel and is passed to "make" as the target to
+ build.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-l'><title>L</title>
+
+ <glossentry id='var-LICENSE'><glossterm>LICENSE</glossterm>
+ <glossdef>
+ <para>List of package source licenses.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-m'><title>M</title>
+
+ <glossentry id='var-MACHINE'><glossterm>MACHINE</glossterm>
+ <glossdef>
+ <para>Target device</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-MACHINE_ESSENTIAL_RDEPENDS'><glossterm>MACHINE_ESSENTIAL_RDEPENDS</glossterm>
+ <glossdef>
+ <para>List of packages required to boot device</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-MACHINE_ESSENTIAL_RRECOMMENDS'><glossterm>MACHINE_ESSENTIAL_RRECOOMENDS</glossterm>
+ <glossdef>
+ <para>List of packages required to boot device (usually
+ additional kernel modules)</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-MACHINE_EXTRA_RDEPENDS'><glossterm>MACHINE_EXTRA_RDEPENDS</glossterm>
+ <glossdef>
+ <para>List of packages required to use device</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-MACHINE_EXTRA_RRECOMMENDS'><glossterm>MACHINE_EXTRA_RRECOMMNEDS</glossterm>
+ <glossdef>
+ <para>List of packages useful to use device (for example
+ additional kernel modules)</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-MACHINE_FEATURES'><glossterm>MACHINE_FEATURES</glossterm>
+ <glossdef>
+ <para>List of device features - defined in <link
+ linkend='ref-features-machine'>machine
+ features section</link></para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-MAINTAINER'><glossterm>MAINTAINER</glossterm>
+ <glossdef>
+ <para>E-mail of distribution maintainer</para>
+ </glossdef>
+ </glossentry>
+ </glossdiv>
+
+<!-- <glossdiv id='var-glossary-n'><title>N</title>-->
+<!-- </glossdiv>-->
+
+<!-- <glossdiv id='var-glossary-o'><title>O</title>-->
+<!-- </glossdiv>-->
+
+ <glossdiv id='var-glossary-p'><title>P</title>
+
+ <glossentry id='var-PACKAGE_ARCH'><glossterm>PACKAGE_ARCH</glossterm>
+ <glossdef>
+ <para>Architecture of resulting package</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PACKAGE_CLASSES'><glossterm>PACKAGE_CLASSES</glossterm>
+ <glossdef>
+ <para>List of resulting packages formats</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm>
+ <glossdef>
+ <para>List of architectures compatible with device
+ CPU. Usable when build is done for few different
+ devices with misc processors (like XScale and
+ ARM926-EJS)</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PACKAGES'><glossterm>PACKAGES</glossterm>
+ <glossdef>
+ <para>List of packages to be created from recipe.
+ The default value is "${PN}-dbg ${PN} ${PN}-doc ${PN}-dev"</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PN'><glossterm>PN</glossterm>
+ <glossdef>
+ <para>Name of package.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PR'><glossterm>PR</glossterm>
+ <glossdef>
+ <para>Revision of package.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PV'><glossterm>PV</glossterm>
+ <glossdef>
+ <para>Version of package.
+ The default value is "1.0"</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PE'><glossterm>PE</glossterm>
+ <glossdef>
+ <para>
+ Epoch of the package. The default value is "1". The field is used
+ to make upgrades possible when the versioning scheme changes in
+ some backwards incompatible way.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PREFERRED_PROVIDER'><glossterm>PREFERRED_PROVIDER</glossterm>
+ <glossdef>
+ <para>If multiple recipes provide an item, this variable
+ determines which one should be given preference. It
+ should be set to the "$PN" of the recipe to be preferred.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-PREFERRED_VERSION'><glossterm>PREFERRED_VERSION</glossterm>
+ <glossdef>
+ <para>
+ If there are multiple versions of recipe available, this
+ variable determines which one should be given preference. It
+ should be set to the "$PV" of the recipe to be preferred.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-POKYLIBC'><glossterm>POKYLIBC</glossterm>
+ <glossdef>
+ <para>Libc implementation selector - glibc or uclibc can be selected.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-POKYMODE'><glossterm>POKYMODE</glossterm>
+ <glossdef>
+ <para>Toolchain selector. It can be external toolchain
+ built from Poky or few supported combinations of
+ upstream GCC or CodeSourcery Labs toolchain.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+<!-- <glossdiv id='var-glossary-q'><title>Q</title>-->
+<!-- </glossdiv>-->
+
+ <glossdiv id='var-glossary-r'><title>R</title>
+
+ <glossentry id='var-RCONFLICTS'><glossterm>RCONFLICTS</glossterm>
+ <glossdef>
+ <para>List of packages which which conflict with this
+ one. Package will not be installed if they will not
+ be removed first.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-RDEPENDS'><glossterm>RDEPENDS</glossterm>
+ <glossdef>
+ <para>
+ A list of run-time dependencies for a package. These packages
+ need to be installed alongside the package it applies to so
+ the package will run correctly, an example is a perl script
+ which would rdepend on perl. Since this variable applies to
+ output packages there would usually be an override attached
+ to this variable like RDEPENDS_${PN}-dev. Names in this field
+ should be as they are in <link linkend='var-PACKAGES'>PACKAGES
+ </link> namespave before any renaming of the output package
+ by classes like debian.bbclass.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-ROOT_FLASH_SIZE'><glossterm>ROOT_FLASH_SIZE</glossterm>
+ <glossdef>
+ <para>Size of rootfs in megabytes</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm>
+ <glossdef>
+ <para>List of packages which extend usability of
+ package. Those packages will be automatically
+ installed but can be removed by user.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-RREPLACES'><glossterm>RREPLACES</glossterm>
+ <glossdef>
+ <para>List of packages which are replaced with this
+ one.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-s'><title>S</title>
+
+ <glossentry id='var-S'><glossterm>S</glossterm>
+ <glossdef>
+ <para>
+ Path to unpacked sources (by default:
+ "${<link linkend='var-WORKDIR'>WORKDIR</link>}/${<link linkend='var-PN'>PN</link>}-${<link linkend='var-PV'>PV</link>}")
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SECTION'><glossterm>SECTION</glossterm>
+ <glossdef>
+ <para>Section where package should be put - used
+ by package managers</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SELECTED_OPTIMIZATION'><glossterm>SELECTED_OPTIMIZATION</glossterm>
+ <glossdef>
+ <para>
+ The variable takes the value of <link linkend='var-FULL_OPTIMIZATION'>FULL_OPTIMIZATION</link>
+ unless <link linkend='var-DEBUG_BUILD'>DEBUG_BUILD</link> = "1" in which case
+ <link linkend='var-DEBUG_OPTIMIZATION'>DEBUG_OPTIMIZATION</link> is used.
+ </para>
+ </glossdef>
+ </glossentry>
+
+
+ <glossentry id='var-SERIAL_CONSOLE'><glossterm>SERIAL_CONSOLE</glossterm>
+ <glossdef>
+ <para>Speed and device for serial port used to attach
+ serial console. This is given to kernel as "console"
+ param and after boot getty is started on that port
+ so remote login is possible.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SHELLCMDS'><glossterm>SHELLCMDS</glossterm>
+ <glossdef>
+ <para>
+ A list of commands to run within the a shell, used by <glossterm><link
+ linkend='var-TERMCMDRUN'>TERMCMDRUN</link></glossterm>. It defaults to
+ <glossterm><link linkend='var-SHELLRCCMD'>SHELLRCCMD</link></glossterm>.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SHELLRCCMD'><glossterm>SHELLRCCMD</glossterm>
+ <glossdef>
+ <para>
+ How to launch a shell, defaults to bash.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SITEINFO_ENDIANESS'><glossterm>SITEINFO_ENDIANESS</glossterm>
+ <glossdef>
+ <para>
+ Contains "le" for little-endian or "be" for big-endian depending
+ on the endian byte order of the target system.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SITEINFO_BITS'><glossterm>SITEINFO_BITS</glossterm>
+ <glossdef>
+ <para>
+ Contains "32" or "64" depending on the number of bits for the
+ CPU of the target system.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SRC_URI'><glossterm>SRC_URI</glossterm>
+ <glossdef>
+ <para>List of source files (local or remote ones)</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SRC_URI_OVERRIDES_PACKAGE_ARCH'><glossterm>SRC_URI_OVERRIDES_PACKAGE_ARCH</glossterm>
+ <glossdef>
+ <para>
+ By default there is code which automatically detects whether
+ <glossterm><link linkend='var-SRC_URI'>SRC_URI</link></glossterm>
+ contains files which are machine specific and if this is the case it
+ automatically changes
+ <glossterm><link linkend='var-PACKAGE_ARCH'>PACKAGE_ARCH</link></glossterm>.
+ Setting this variable to "0" disables that behaviour.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SRCDATE'><glossterm>SRCDATE</glossterm>
+ <glossdef>
+ <para>
+ Date of source code used to build package (if it was fetched
+ from SCM).
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-SRCREV'><glossterm>SRCREV</glossterm>
+ <glossdef>
+ <para>
+ Revision of source code used to build package (Subversion,
+ GIT, Bazaar only).
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-STAGING_KERNEL_DIR'><glossterm>STAGING_KERNEL_DIR</glossterm>
+ <glossdef>
+ <para>
+ Directory with kernel headers required to build out-of-tree
+ modules.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-STAMPS'><glossterm>STAMPS</glossterm>
+ <glossdef>
+ <para>
+ Directory (usually TMPDIR/stamps) with timestamps of
+ executed tasks.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+ <glossdiv id='var-glossary-t'><title>T</title>
+
+ <glossentry id='var-TARGET_ARCH'><glossterm>TARGET_ARCH</glossterm>
+ <glossdef>
+ <para>The architecture of the device we're building for.
+ A number of values are possible but Poky primarily supports
+ "arm" and "i586".</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
+ <glossdef>
+ <para>
+ Flags passed to C compiler for the target system. Evaluates to the same
+ as <link linkend='var-CFLAGS'>CFLAGS</link>.
+ </para>
+ </glossdef>
+ </glossentry>
+
+
+ <glossentry id='var-TARGET_FPU'><glossterm>TARGET_FPU</glossterm>
+ <glossdef>
+ <para>Method of handling FPU code. For FPU-less targets
+ (most of ARM cpus) it has to be set to "soft" otherwise
+ kernel emulation will get used which will result in
+ performance penalty.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-TARGET_OS'><glossterm>TARGET_OS</glossterm>
+ <glossdef>
+ <para>Type of target operating system. Can be "linux"
+ for glibc based system, "linux-uclibc" for uClibc. For
+ ARM/EABI targets there are also "linux-gnueabi" and
+ "linux-uclibc-gnueabi" values possible.</para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-TERMCMD'><glossterm>TERMCMD</glossterm>
+ <glossdef>
+ <para>
+ This command is used by bitbake to lauch a terminal window with a
+ shell. The shell is unspecified so the user's default shell is used.
+ By default it is set to <command>gnome-terminal</command> but it can
+ be any X11 terminal application or terminal multiplexers like screen.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ <glossentry id='var-TERMCMDRUN'><glossterm>TERMCMDRUN</glossterm>
+ <glossdef>
+ <para>
+ This command is similar to <glossterm><link
+ linkend='var-TERMCMD'>TERMCMD</link></glossterm> however instead of the users shell it runs the command specified by the <glossterm><link
+ linkend='var-SHELLCMDS'>SHELLCMDS</link></glossterm> variable.
+ </para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+<!-- <glossdiv id='var-glossary-u'><title>U</title>-->
+<!-- </glossdiv>-->
+
+<!-- <glossdiv id='var-glossary-v'><title>V</title>-->
+<!-- </glossdiv>-->
+
+ <glossdiv id='var-glossary-w'><title>W</title>
+
+ <glossentry id='var-WORKDIR'><glossterm>WORKDIR</glossterm>
+ <glossdef>
+ <para>Path to directory in tmp/work/ where package
+ will be built.</para>
+ </glossdef>
+ </glossentry>
+
+ </glossdiv>
+
+<!-- <glossdiv id='var-glossary-x'><title>X</title>-->
+<!-- </glossdiv>-->
+
+<!-- <glossdiv id='var-glossary-y'><title>Y</title>-->
+<!-- </glossdiv>-->
+
+<!-- <glossdiv id='var-glossary-z'><title>Z</title>-->
+<!-- </glossdiv>-->
+
+</glossary>
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/ref-varlocality.xml b/handbook/ref-varlocality.xml
new file mode 100644
index 0000000000..a0c185694b
--- /dev/null
+++ b/handbook/ref-varlocality.xml
@@ -0,0 +1,204 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='ref-varlocality'>
+ <title>Reference: Variable Locality (Distro, Machine, Recipe etc.)</title>
+
+ <para>
+ Whilst most variables can be used in almost any context (.conf, .bbclass,
+ .inc or .bb file), variables are often associated with a particular
+ locality/context. This section describes some common associations.
+ </para>
+
+ <section id='ref-varlocality-config-distro'>
+ <title>Distro Configuration</title>
+
+ <itemizedlist>
+ <listitem>
+ <para><glossterm linkend='var-DISTRO'><link linkend='var-DISTRO'>DISTRO</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-DISTRO_NAME'><link linkend='var-DISTRO_NAME'>DISTRO_NAME</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-DISTRO_VERSION'><link linkend='var-DISTRO_VERSION'>DISTRO_VERSION</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MAINTAINER'><link linkend='var-MAINTAINER'>MAINTAINER</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-PACKAGE_CLASSES'><link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-TARGET_OS'><link linkend='var-TARGET_OS'>TARGET_OS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-TARGET_FPU'><link linkend='var-TARGET_FPU'>TARGET_FPU</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-POKYMODE'><link linkend='var-POKYMODE'>POKYMODE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-POKYLIBC'><link linkend='var-POKYLIBC'>POKYLIBC</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-varlocality-config-machine'>
+ <title>Machine Configuration</title>
+
+ <itemizedlist>
+ <listitem>
+ <para><glossterm linkend='var-TARGET_ARCH'><link linkend='var-TARGET_ARCH'>TARGET_ARCH</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-SERIAL_CONSOLE'><link linkend='var-SERIAL_CONSOLE'>SERIAL_CONSOLE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-PACKAGE_EXTRA_ARCHS'><link linkend='var-PACKAGE_EXTRA_ARCHS'>PACKAGE_EXTRA_ARCHS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-IMAGE_FSTYPES'><link linkend='var-IMAGE_FSTYPES'>IMAGE_FSTYPES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-ROOT_FLASH_SIZE'><link linkend='var-ROOT_FLASH_SIZE'>ROOT_FLASH_SIZE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MACHINE_FEATURES'><link linkend='var-MACHINE_FEATURES'>MACHINE_FEATURES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MACHINE_EXTRA_RDEPENDS'><link linkend='var-MACHINE_EXTRA_RDEPENDS'>MACHINE_EXTRA_RDEPENDS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MACHINE_EXTRA_RRECOMMENDS'><link linkend='var-MACHINE_EXTRA_RRECOMMENDS'>MACHINE_EXTRA_RRECOMMENDS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MACHINE_ESSENTIAL_RDEPENDS'><link linkend='var-MACHINE_ESSENTIAL_RDEPENDS'>MACHINE_ESSENTIAL_RDEPENDS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MACHINE_ESSENTIAL_RRECOMMENDS'><link linkend='var-MACHINE_ESSENTIAL_RRECOMMENDS'>MACHINE_ESSENTIAL_RRECOMMENDS</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-varlocality-config-local'>
+ <title>Local Configuration (local.conf)</title>
+ <itemizedlist>
+ <listitem>
+ <para><glossterm linkend='var-DISTRO'><link linkend='var-DISTRO'>DISTRO</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-MACHINE'><link linkend='var-MACHINE'>MACHINE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-DL_DIR'><link linkend='var-DL_DIR'>DL_DIR</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-BBFILES'><link linkend='var-BBFILES'>BBFILES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-IMAGE_FEATURES'><link linkend='var-IMAGE_FEATURES'>IMAGE_FEATURES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-PACKAGE_CLASSES'><link linkend='var-PACKAGE_CLASSES'>PACKAGE_CLASSES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-BB_NUMBER_THREADS'><link linkend='var-BB_NUMBER_THREADS'>BB_NUMBER_THREADS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-BBINCLUDELOGS'><link linkend='var-BBINCLUDELOGS'>BBINCLUDELOGS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-CVS_TARBALL_STASH'><link linkend='var-CVS_TARBALL_STASH'>CVS_TARBALL_STASH</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm linkend='var-ENABLE_BINARY_LOCALE_GENERATION'><link linkend='var-ENABLE_BINARY_LOCALE_GENERATION'>ENABLE_BINARY_LOCALE_GENERATION</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-varlocality-recipe-required'>
+ <title>Recipe Variables - Required</title>
+
+ <itemizedlist>
+ <listitem>
+ <para><glossterm><link linkend='var-DESCRIPTION'>DESCRIPTION</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-LICENSE'>LICENSE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-SECTION'>SECTION</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-HOMEPAGE'>HOMEPAGE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-AUTHOR'>AUTHOR</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-SRC_URI'>SRC_URI</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-varlocality-recipe-dependencies'>
+ <title>Recipe Variables - Dependencies</title>
+
+ <itemizedlist>
+ <listitem>
+ <para><glossterm><link linkend='var-DEPENDS'>DEPENDS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-RDEPENDS'>RDEPENDS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-RRECOMMENDS'>RRECOMMENDS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-RCONFLICTS'>RCONFLICTS</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-RREPLACES'>RREPLACES</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-varlocality-recipe-paths'>
+ <title>Recipe Variables - Paths</title>
+
+ <itemizedlist>
+ <listitem>
+ <para><glossterm><link linkend='var-WORKDIR'>WORKDIR</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-S'>S</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-FILES'>FILES</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id='ref-varlocality-recipe-build'>
+ <title>Recipe Variables - Extra Build Information</title>
+
+ <itemizedlist>
+ <listitem>
+ <para><glossterm><link linkend='var-EXTRA_OECONF'>EXTRA_OECONF</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-EXTRA_OEMAKE'>EXTRA_OEMAKE</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-PACKAGES'>PACKAGES</link></glossterm></para>
+ </listitem>
+ <listitem>
+ <para><glossterm><link linkend='var-DEFAULT_PREFERENCE'>DEFAULT_PREFERENCE</link></glossterm></para>
+ </listitem>
+ </itemizedlist>
+ </section>
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4 spell spelllang=en_gb
+-->
diff --git a/handbook/resources.xml b/handbook/resources.xml
new file mode 100644
index 0000000000..6d06364ae5
--- /dev/null
+++ b/handbook/resources.xml
@@ -0,0 +1,92 @@
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<appendix id='resources'>
+<title>Contributing to Poky</title>
+
+<section id='resources-intro'>
+ <title>Introduction</title>
+ <para>
+ We're happy for people to experiment with Poky and there are a number of places to
+ find help if you run into difficulties or find bugs. To find out how to download
+ source code see the <link linkend='intro-getit'>Obtaining Poky</link> section of
+ the Introduction.
+ </para>
+</section>
+
+<section id='resources-bugtracker'>
+ <title>Bugtracker</title>
+
+ <para>
+ Problems with Poky should be reported in the
+ <ulink url='http://bugzilla.o-hand.com/'>bug tracker</ulink>.
+ </para>
+</section>
+
+<section id='resources-mailinglist'>
+ <title>Mailing list</title>
+
+ <para>
+ To subscribe to the mailing list send mail to:
+ </para>
+ <para>
+ <literallayout class='monospaced'>
+poky+subscribe &lt;at&gt; openedhand &lt;dot&gt; com
+ </literallayout>
+ </para>
+ <para>
+ Then follow the simple instructions in subsequent reply. Archives are
+ available <ulink
+ url="http://lists.o-hand.com/poky/">here</ulink>.
+ </para>
+</section>
+
+<section id='resources-irc'>
+ <title>IRC</title>
+
+ <para>
+ Join #poky on freenode.
+ </para>
+</section>
+
+<section id='resources-links'>
+ <title>Links</title>
+
+ <itemizedlist>
+ <listitem><para>
+ <ulink url='http://pokylinux.org'>The Poky website</ulink>
+ </para></listitem>
+ <listitem><para>
+ <ulink url='http://www.openedhand.com/'>OpenedHand</ulink> - The
+ company behind Poky.
+ </para></listitem>
+ <listitem><para>
+ <ulink url='http://www.openembedded.org/'>OpenEmbedded</ulink>
+ - The upstream generic embedded distribution Poky derives
+ from (and contributes to).
+ </para></listitem>
+ <listitem><para>
+ <ulink url='http://developer.berlios.de/projects/bitbake/'>Bitbake</ulink>
+ - The tool used to process Poky metadata.
+ </para></listitem>
+ <listitem><para>
+ <ulink url='http://bitbake.berlios.de/manual/'>Bitbake User
+ Manual</ulink>
+ </para></listitem>
+ <listitem><para>
+ <ulink url='http://pimlico-project.org/'>Pimlico</ulink> - A
+ suite of lightweight Personal Information Management (PIM)
+ applications designed primarily for handheld and mobile
+ devices.
+ </para></listitem>
+ <listitem><para>
+ <ulink url='http://fabrice.bellard.free.fr/qemu/'>QEMU</ulink>
+ - An open source machine emulator and virtualizer.
+ </para></listitem>
+ </itemizedlist>
+</section>
+
+</appendix>
+<!--
+vim: expandtab tw=80 ts=4
+-->
diff --git a/handbook/style.css b/handbook/style.css
new file mode 100644
index 0000000000..fb95694f9c
--- /dev/null
+++ b/handbook/style.css
@@ -0,0 +1,957 @@
+/*
+ Generic XHTML / DocBook XHTML CSS Stylesheet.
+
+ Browser wrangling and typographic design by
+ Oyvind Kolas / pippin@gimp.org
+
+ Customised for Poky by
+ Matthew Allum / mallum@o-hand.com
+
+ Thanks to:
+ Liam R. E. Quin
+ William Skaggs
+ Jakub Steiner
+
+ Structure
+ ---------
+
+ The stylesheet is divided into the following sections:
+
+ Positioning
+ Margins, paddings, width, font-size, clearing.
+ Decorations
+ Borders, style
+ Colors
+ Colors
+ Graphics
+ Graphical backgrounds
+ Nasty IE tweaks
+ Workarounds needed to make it work in internet explorer,
+ currently makes the stylesheet non validating, but up until
+ this point it is validating.
+ Mozilla extensions
+ Transparency for footer
+ Rounded corners on boxes
+
+*/
+
+
+ /*************** /
+ / Positioning /
+/ ***************/
+
+body {
+ font-family: Verdana, Sans, sans-serif;
+
+ min-width: 640px;
+ width: 80%;
+ margin: 0em auto;
+ padding: 2em 5em 5em 5em;
+ color: #333;
+}
+
+h1,h2,h3,h4,h5,h6,h7 {
+ font-family: Arial, Sans;
+ color:#999999;
+ clear: both;
+}
+
+h1 {
+ font-size: 2em;
+ text-align: left;
+ padding: 0em 0em 0em 0em;
+ margin: 2em 0em 0em 0em;
+}
+
+h2.subtitle {
+ margin: 0.10em 0 3.0em 0;
+ padding: 0 0 0 0;
+ font-size: 1.8em;
+ padding-left: 20%;
+ font-weight: normal;
+ font-style: italic;
+}
+
+h2 {
+ margin: 2em 0em 0.66em 0em;
+ padding: 0.5em 0em 0em 0em;
+ font-size: 1.5em;
+ font-weight: normal;
+}
+
+h3.subtitle {
+ margin: 0em 0em 1em 0em;
+ padding: 0em 0em 0em 0em;
+ font-size: 142.14%;
+ text-align : right;
+}
+
+h3 {
+ margin: 1em 0em 0.5em 0em;
+ padding: 1em 0em 0em 0em;
+ font-size: 140%;
+ font-weight: normal;
+}
+
+h4 {
+ margin: 1em 0em 0.5em 0em;
+ padding: 1em 0em 0em 0em;
+ font-size: 120%;
+ font-weight: normal;
+}
+
+h5 {
+ margin: 1em 0em 0.5em 0em;
+ padding: 1em 0em 0em 0em;
+ font-size: 110.000%;
+ border-bottom: 1px solid black;
+}
+
+h6 {
+ margin: 1em 0em 0em 0em;
+ padding: 1em 0em 0em 0em;
+ font-size: 80%;
+ font-weight: normal;
+}
+
+.authorgroup {
+ background-color: transparent;
+ background-repeat: no-repeat;
+ padding-top: 256;
+ background-image: url("poky-beaver.png");
+ background-position: right top;
+ float: right;
+ margin-top: -256px;
+ padding-right: 50px;
+ margin-left: 50px;
+ text-align: right;
+ width: 200px;
+}
+
+h3.author {
+ margin: 0 0 0 0;
+ padding: 0 0 0 0;
+ font-weight: normal;
+ font-size: 100%;
+ clear: both;
+}
+
+.author tt.email {
+ font-size: 66%;
+}
+
+.titlepage hr {
+ width: 0;
+ clear: both;
+}
+
+.revhistory {
+ padding-top: 2em;
+ clear: both;
+}
+
+.toc,
+.list-of-tables,
+.list-of-examples,
+.list-of-figures {
+ padding: 1.33em 0em 2.5em 0em;
+}
+
+.toc p,
+.list-of-tables p,
+.list-of-figures p,
+.list-of-examples p {
+ padding: 0 0 0 0;
+ padding: 0em 0em 0.3em;
+ margin: 1.5em 0 0 0;
+}
+
+.toc p b,
+.list-of-tables p b,
+.list-of-figures p b,
+.list-of-examples p b{
+ font-size: 100.0%;
+ font-weight: bold;
+}
+
+.toc dl,
+.list-of-tables dl,
+.list-of-figures dl,
+.list-of-examples dl {
+ margin: 0 0 0.5em 0;
+ padding: 0 0 0 0;
+}
+
+.toc dt {
+ margin: 0 0 0 0;
+ padding: 0 0 0 0;
+}
+
+.toc dd {
+ margin: 0em 0em 0em 2.6em;
+ padding: 0 0 0 0;
+}
+
+div.glossary dl,
+div.variablelist dl {
+}
+
+.glossary dl dt,
+.variablelist dl dt,
+.variablelist dl dt span.term {
+ font-weight: normal;
+ width: 20em;
+ text-align: right;
+}
+
+.variablelist dl dt {
+ margin-top: 0.5em;
+}
+
+.glossary dl dd,
+.variablelist dl dd {
+ margin-top: -1em;
+ margin-left: 25.5em;
+}
+
+.glossary dd p,
+.variablelist dd p {
+ margin-top: 0em;
+ margin-bottom: 1em;
+}
+
+
+div.calloutlist table td {
+ padding: 0 0 0 0;
+ margin: 0 0 0 0;
+}
+
+div.calloutlist table td p {
+ margin-top: 0em;
+ margin-bottom: 1em;
+}
+
+div p.copyright {
+ text-align: left;
+}
+
+div.legalnotice p.legalnotice-title {
+ margin-bottom: 0;
+}
+
+p {
+ line-height: 1.5em;
+ margin-top: 0;
+
+}
+
+dl {
+ padding-top: 0em;
+}
+
+hr {
+ border: solid 1px;
+}
+
+
+.mediaobject,
+.mediaobjectco {
+ text-align: center;
+}
+
+img {
+ border: none;
+}
+
+.mediaobject img,
+.mediaobjectco img{
+ max-width: 36em;
+}
+
+ul {
+ padding: 0 0 0 1.5em;
+}
+
+ul li {
+ padding: 0 0 0 0;
+}
+
+ul li p {
+ text-align: left;
+}
+
+table {
+ width :100%;
+}
+
+th {
+ padding: 0.25em;
+ text-align: left;
+ font-weight: normal;
+ vertical-align: top;
+}
+
+td {
+ padding: 0.25em;
+ vertical-align: top;
+}
+
+p a[id] {
+ margin: 0;
+ padding: 0;
+ display: inline;
+ background-image: none;
+}
+
+a {
+ text-decoration: underline;
+ color: #444;
+}
+
+pre {
+ overflow : auto;
+}
+
+a:hover {
+ text-decoration: underline;
+ /*font-weight: bold;*/
+}
+
+
+div.informalfigure,
+div.informalexample,
+div.informaltable,
+div.figure,
+div.table,
+div.example {
+ margin: 1em 0em;
+ padding: 1em;
+ page-break-inside: avoid;
+}
+
+
+div.informalfigure p.title b,
+div.informalexample p.title b,
+div.informaltable p.title b,
+div.figure p.title b,
+div.example p.title b,
+div.table p.title b{
+ padding-top: 0;
+ margin-top: 0;
+ font-size: 100%;
+ font-weight: normal;
+}
+
+.mediaobject .caption,
+.mediaobject .caption p {
+ text-align: left;
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
+}
+
+.epigraph {
+ padding-left: 55%;
+ margin-bottom: 1em;
+}
+
+.epigraph p {
+ text-align: left;
+}
+
+.epigraph .quote {
+ font-style: italic;
+}
+.epigraph .attribution {
+ font-style: normal;
+ text-align: right;
+}
+
+span.application {
+ font-style: italic;
+}
+
+.programlisting {
+ font-family: monospace;
+ font-size: 80%;
+ white-space: pre;
+ margin: 1.33em 0em;
+ padding: 1.33em;
+}
+
+.tip,
+.warning,
+.caution,
+.note {
+ margin-top: 1em;
+ margin-bottom: 1em;
+
+}
+
+/* force full width of table within div */
+.tip table,
+.warning table,
+.caution table,
+.note table {
+ border: none;
+ width: 100%;
+}
+
+
+.tip table th,
+.warning table th,
+.caution table th,
+.note table th {
+ padding: 0.8em 0.0em 0.0em 0.0em;
+ margin : 0 0 0 0;
+}
+
+.tip p,
+.warning p,
+.caution p,
+.note p {
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+ padding-right: 1em;
+ text-align: left;
+}
+
+.acronym {
+ text-transform: uppercase;
+}
+
+b.keycap,
+.keycap {
+ padding: 0.09em 0.3em;
+ margin: 0;
+}
+
+.itemizedlist li {
+ clear: none;
+}
+
+.filename {
+ font-size: medium;
+ font-family: Courier, monospace;
+}
+
+
+div.navheader, div.heading{
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ background-color: #cdf;
+ width: 100%;
+}
+
+div.navfooter, div.footing{
+ position: fixed;
+ left: 0em;
+ bottom: 0em;
+ background-color: #eee;
+ width: 100%;
+}
+
+
+div.navheader td,
+div.navfooter td {
+ font-size: 66%;
+}
+
+div.navheader table th {
+ /*font-family: Georgia, Times, serif;*/
+ /*font-size: x-large;*/
+ font-size: 80%;
+}
+
+div.navheader table {
+ border-left: 0;
+ border-right: 0;
+ border-top: 0;
+ width: 100%;
+}
+
+div.navfooter table {
+ border-left: 0;
+ border-right: 0;
+ border-bottom: 0;
+ width: 100%;
+}
+
+div.navheader table td a,
+div.navfooter table td a {
+ color: #777;
+ text-decoration: none;
+}
+
+/* normal text in the footer */
+div.navfooter table td {
+ color: black;
+}
+
+div.navheader table td a:visited,
+div.navfooter table td a:visited {
+ color: #444;
+}
+
+
+/* links in header and footer */
+div.navheader table td a:hover,
+div.navfooter table td a:hover {
+ text-decoration: underline;
+ background-color: transparent;
+ color: #33a;
+}
+
+div.navheader hr,
+div.navfooter hr {
+ display: none;
+}
+
+
+.qandaset tr.question td p {
+ margin: 0 0 1em 0;
+ padding: 0 0 0 0;
+}
+
+.qandaset tr.answer td p {
+ margin: 0 0 1em 0;
+ padding: 0 0 0 0;
+}
+.answer td {
+ padding-bottom: 1.5em;
+}
+
+.emphasis {
+ font-weight: bold;
+}
+
+
+ /************* /
+ / decorations /
+/ *************/
+
+.titlepage {
+}
+
+.part .title {
+}
+
+.subtitle {
+ border: none;
+}
+
+/*
+h1 {
+ border: none;
+}
+
+h2 {
+ border-top: solid 0.2em;
+ border-bottom: solid 0.06em;
+}
+
+h3 {
+ border-top: 0em;
+ border-bottom: solid 0.06em;
+}
+
+h4 {
+ border: 0em;
+ border-bottom: solid 0.06em;
+}
+
+h5 {
+ border: 0em;
+}
+*/
+
+.programlisting {
+ border: solid 1px;
+}
+
+div.figure,
+div.table,
+div.informalfigure,
+div.informaltable,
+div.informalexample,
+div.example {
+ border : 1px solid;
+}
+
+
+
+.tip,
+.warning,
+.caution,
+.note {
+ border : 1px solid;
+}
+
+.tip table th,
+.warning table th,
+.caution table th,
+.note table th {
+ border-bottom : 1px solid;
+}
+
+.question td {
+ border-top: 1px solid black;
+}
+
+.answer {
+}
+
+
+b.keycap,
+.keycap {
+ border: 1px solid;
+}
+
+
+div.navheader, div.heading{
+ border-bottom: 1px solid;
+}
+
+
+div.navfooter, div.footing{
+ border-top: 1px solid;
+}
+
+ /********* /
+ / colors /
+/ *********/
+
+body {
+ color: #333;
+ background: white;
+}
+
+a {
+ background: transparent;
+}
+
+a:hover {
+ background-color: #dedede;
+}
+
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+h7,
+h8 {
+ background-color : transparent;
+}
+
+hr {
+ border-color: #aaa;
+}
+
+
+.tip, .warning, .caution, .note {
+ border-color : #aaa;
+}
+
+
+.tip table th,
+.warning table th,
+.caution table th,
+.note table th {
+ border-bottom-color: #aaa;
+}
+
+
+.warning {
+ background-color: #fea;
+}
+
+.caution {
+ background-color: #fea;
+}
+
+.tip {
+ background-color: #eff;
+}
+
+.note {
+ background-color: #dfc;
+}
+
+.glossary dl dt,
+.variablelist dl dt,
+.variablelist dl dt span.term {
+ color: #044;
+}
+
+div.figure,
+div.table,
+div.example,
+div.informalfigure,
+div.informaltable,
+div.informalexample {
+ border-color: #aaa;
+}
+
+pre.programlisting {
+ color: black;
+ background-color: #fff;
+ border-color: #aaa;
+ border-width: 2px;
+}
+
+.guimenu,
+.guilabel,
+.guimenuitem {
+ background-color: #eee;
+}
+
+
+b.keycap,
+.keycap {
+ background-color: #eee;
+ border-color: #999;
+}
+
+
+div.navheader {
+ border-color: black;
+}
+
+
+div.navfooter {
+ border-color: black;
+}
+
+
+ /*********** /
+ / graphics /
+/ ***********/
+
+/*
+body {
+ background-image: url("images/body_bg.jpg");
+ background-attachment: fixed;
+}
+
+.navheader,
+.note,
+.tip {
+ background-image: url("images/note_bg.jpg");
+ background-attachment: fixed;
+}
+
+.warning,
+.caution {
+ background-image: url("images/warning_bg.jpg");
+ background-attachment: fixed;
+}
+
+.figure,
+.informalfigure,
+.example,
+.informalexample,
+.table,
+.informaltable {
+ background-image: url("images/figure_bg.jpg");
+ background-attachment: fixed;
+}
+
+*/
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+h7{
+}
+
+div.preface .titlepage .title,
+div.colophon .title,
+div.chapter .titlepage .title {
+ background-image: url("images/title-bg.png");
+ background-position: bottom;
+ background-repeat: repeat-x;
+}
+
+div.section div.section .titlepage .title,
+div.sect2 .titlepage .title {
+ background: none;
+}
+
+
+h1.title {
+ background-color: transparent;
+ background-image: url("poky-handbook.png");
+ background-repeat: no-repeat;
+ height: 256;
+ text-indent: -9000px;
+ overflow:hidden;
+}
+
+h2.subtitle {
+ background-color: transparent;
+ text-indent: -9000px;
+ overflow:hidden;
+ width: 0;
+ display: none;
+}
+
+ /*************************************** /
+ / pippin.gimp.org specific alterations /
+/ ***************************************/
+
+/*
+div.heading, div.navheader {
+ color: #777;
+ font-size: 80%;
+ padding: 0;
+ margin: 0;
+ text-align: left;
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ width: 100%;
+ height: 50px;
+ background: url('/gfx/heading_bg.png') transparent;
+ background-repeat: repeat-x;
+ background-attachment: fixed;
+ border: none;
+}
+
+div.heading a {
+ color: #444;
+}
+
+div.footing, div.navfooter {
+ border: none;
+ color: #ddd;
+ font-size: 80%;
+ text-align:right;
+
+ width: 100%;
+ padding-top: 10px;
+ position: absolute;
+ bottom: 0px;
+ left: 0px;
+
+ background: url('/gfx/footing_bg.png') transparent;
+}
+*/
+
+
+
+ /****************** /
+ / nasty ie tweaks /
+/ ******************/
+
+/*
+div.heading, div.navheader {
+ width:expression(document.body.clientWidth + "px");
+}
+
+div.footing, div.navfooter {
+ width:expression(document.body.clientWidth + "px");
+ margin-left:expression("-5em");
+}
+body {
+ padding:expression("4em 5em 0em 5em");
+}
+*/
+
+ /**************************************** /
+ / mozilla vendor specific css extensions /
+/ ****************************************/
+/*
+div.navfooter, div.footing{
+ -moz-opacity: 0.8;
+}
+
+div.figure,
+div.table,
+div.informalfigure,
+div.informaltable,
+div.informalexample,
+div.example,
+.tip,
+.warning,
+.caution,
+.note {
+ -moz-border-radius: 0.5em;
+}
+
+b.keycap,
+.keycap {
+ -moz-border-radius: 0.3em;
+}
+*/
+
+table tr td table tr td {
+ display: none;
+}
+
+
+hr {
+ display: none;
+}
+
+table {
+ border: 0;
+}
+
+ .photo {
+ float:right;
+ margin-left: 1.5em;
+ margin-bottom: 1.5em;
+ margin-top: 0em;
+ max-width: 17em;
+ border: 1px solid gray;
+ padding: 3px;
+ background: white;
+}
+ .seperator {
+ padding-top: 2em;
+ clear :both;
+ }
+
+ #validators {
+ margin-top: 5em;
+ text-align: right;
+ color: #777;
+ }
+ @media print {
+ body {
+ font-size: 8pt;
+ }
+ .noprint {
+ display: none;
+ }
+ }
+
+
+.tip,
+.note {
+ background: #91ae35;
+ color: #fff;
+ padding: 20px;
+ margin: 20px;
+}
+
+.tip h3,
+.note h3 {
+ padding: 0;
+ margin: 0;
+ font-size: 2em;
+ font-weight: bold;
+ color: #fff;
+}
+
+.tip a,
+.note a {
+ color: #fff;
+ text-decoration: underline;
+} \ No newline at end of file
diff --git a/handbook/usingpoky.xml b/handbook/usingpoky.xml
new file mode 100644
index 0000000000..c30da0716d
--- /dev/null
+++ b/handbook/usingpoky.xml
@@ -0,0 +1,390 @@
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<chapter id='usingpoky'>
+<title>Using Poky</title>
+
+ <para>
+ This section gives an overview of the components that make up Poky
+ following by information about running poky builds and dealing with any
+ problems that may arise.
+ </para>
+
+<section id='usingpoky-components'>
+ <title>Poky Overview</title>
+
+ <para>
+ At the core of Poky is the bitbake task executor together with various types of
+ configuration files. This section gives an overview of bitbake and the
+ configuration files, in particular what they are used for, and how they
+ interact.
+ </para>
+
+ <para>
+ Bitbake handles the parsing and execution of the data
+ files. The data itself is of various types; recipes which give
+ details about particular pieces of software, class data which is an
+ abstraction of common build information (e.g. how to build a Linux kernel)
+ and configuration data for machines, policy decisions, etc., which acts as
+ a glue and binds everything together. Bitbake knows how to combine multiple
+ data sources together, each data source being referred to as a <link
+ linkend='usingpoky-changes-collections'>'collection'</link>.
+ </para>
+
+ <para>
+ The <link linkend='ref-structure'>directory structure walkthrough</link>
+ section gives details on the meaning of specific directories but some
+ brief details on the core components follows:
+ </para>
+
+ <section id='usingpoky-components-bitbake'>
+ <title>Bitbake</title>
+
+ <para>
+ Bitbake is the tool at the heart of Poky and is responsible
+ for parsing the metadata, generating a list of tasks from it
+ and then executing them. To see a list of the options it
+ supports look at <command>bitbake --help</command>.
+ </para>
+
+ <para>
+ The most common usage is <command>bitbake packagename</command> where
+ packagename is the name of the package you wish to build
+ (from now on called the target). This often equates to the first part of a .bb
+ filename, so to run the <filename>matchbox-desktop_1.2.3.bb</filename> file, you
+ might type <command>bitbake matchbox-desktop</command>.
+ Several different versions of matchbox-desktop might exist and
+ bitbake will choose the one selected by the distribution configuration
+ (more details about how bitbake chooses between different versions
+ and providers is available in the <link linkend='ref-bitbake-providers'>
+ 'Preferences and Providers' section</link>). Bitbake will also try to execute any
+ dependent tasks first so before building matchbox-desktop it
+ would build a cross compiler and glibc if not already built.
+ </para>
+
+ </section>
+
+ <section id='usingpoky-components-metadata'>
+ <title>Metadata (Recipes)</title>
+
+ <para>
+ The .bb files are usually referred to as 'recipes'. In general, a
+ recipe contains information about a single piece of software such
+ as where to download the source, any patches that are needed,
+ any special configuration options, how to compile the source files
+ and how to package the compiled output.
+ </para>
+
+ <para>
+ 'package' can also used to describe recipes but since the same
+ word is used for the packaged output from Poky (i.e. .ipk or .deb
+ files), this document will avoid it.
+ </para>
+
+ </section>
+
+ <section id='usingpoky-components-classes'>
+ <title>Classes</title>
+
+ <para>
+ Class (.bbclass) files contain information which is useful to share
+ between metadata files. An example is the autotools class which contains
+ the common settings that any application using autotools would use. The
+ <link linkend='ref-classes'>classes reference section</link> gives details
+ on common classes and how to use them.
+ </para>
+ </section>
+
+ <section id='usingpoky-components-configuration'>
+ <title>Configuration</title>
+
+ <para>
+ The configuration (.conf) files define various configuration variables
+ which govern what Poky does. These are split into several areas, such
+ as machine configuration options, distribution configuration options,
+ compiler tuning options, general common configuration and user
+ configuration (local.conf).
+ </para>
+ </section>
+
+</section>
+
+
+
+<section id='usingpoky-build'>
+ <title>Running a Build</title>
+
+ <para>
+ First the Poky build environment needs to be setup using the following command:
+ </para>
+ <para>
+ <literallayout class='monospaced'>
+$ source poky-init-build-env
+</literallayout>
+ </para>
+ <para>
+ Once the Poky build environment is setup, a target can now be built using:
+ </para>
+ <para>
+ <literallayout class='monospaced'>
+$ bitbake &lt;target&gt;
+</literallayout>
+ </para>
+ <para>
+ The target is the name of the recipe you want to build. Common targets are the
+ images (in <filename class="directory">meta/packages/images/</filename>)
+ or the name of a recipe for a specific piece of software like
+ <application>busybox</application>. More details about the standard images
+ are available in the <link linkend='ref-images'>image reference section</link>.
+ </para>
+</section>
+
+<section id='usingpoky-install'>
+ <title>Installing and Using the Result</title>
+
+ <para>
+ Once an image has been built it often needs to be installed. The images/kernels built
+ by Poky are placed in the <filename class="directory">tmp/deploy/images</filename>
+ directory. Running qemux86 and qemuarm images is covered in the <link
+ linkend='intro-quickstart-qemu'>Running an Image</link> section. See your
+ board/machine documentation for information about how to install these images.
+ </para>
+
+ <section id='usingpoky-install-usbnetworking'>
+ <title>USB Networking</title>
+
+ <para>
+ Devices commonly have USB connectivity. To connect to the usbnet interface, on
+ the host machine run:
+ </para>
+ <para>
+ <programlisting>
+modprobe usbnet
+ifconfig usb0 192.168.0.200
+route add 192.168.0.202 usb0
+</programlisting>
+ </para>
+ </section>
+
+ <section id='usingpoky-install-qemu-networking'>
+ <title>QEMU/USB networking with IP masquerading</title>
+
+ <para>
+ On Ubuntu, Debian or similar distributions you can have the network automatically
+ configured. You can also enable masquerading between the QEMU system and the rest
+ of your network. To do this you need to edit <filename>/etc/network/interfaces</filename> to include:
+ </para>
+
+ <para><programlisting>
+allow-hotplug tap0
+iface tap0 inet static
+ address 192.168.7.200
+ netmask 255.255.255.0
+ network 192.168.7.0
+ post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.0/24
+ post-up echo 1 > /proc/sys/net/ipv4/ip_forward
+ post-up iptables -P FORWARD ACCEPT
+</programlisting>
+ </para>
+
+ <para>
+ This ensures the tap0 interface will be up everytime you run QEMU
+ and it will have network/internet access.
+ </para>
+
+ <para>
+ Under emulation there are two steps to configure for internet access
+ via tap0. The first step is to configure routing:
+ </para>
+
+ <para><programlisting>
+route add default gw 192.168.7.200 tap0
+</programlisting>
+ </para>
+
+ <para>
+ The second is to configure name resolution which is configured in the
+ <filename>/etc/resolv.conf</filename> file. The simplest solution is
+ to copy it's content from the host machine.
+ </para>
+
+ <para>
+ USB connections to devices can be setup and automated in a similar way.
+ First add the following to
+ <filename>/etc/network/interfaces</filename>:
+ </para>
+
+ <para><programlisting>
+allow-hotplug usb0
+iface usb0 inet static
+ address 192.168.0.200
+ netmask 255.255.255.0
+ network 192.168.0.0
+ post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
+ post-up echo 1 > /proc/sys/net/ipv4/ip_forward
+ post-up iptables -P FORWARD ACCEPT
+</programlisting>
+ </para>
+
+ <para>
+ and then to configure routing on the device you would use:
+ </para>
+
+ <para><programlisting>
+route add default gw 192.168.0.202 usb0
+</programlisting>
+ </para>
+
+ </section>
+</section>
+
+<section id='usingpoky-debugging'>
+ <title>Debugging Build Failures</title>
+
+ <para>
+ The exact method for debugging Poky depends on the nature of the
+ bug(s) and which part of the system they might be from. Standard
+ debugging practises such as comparing to the last
+ known working version and examining the changes, reapplying the
+ changes in steps to identify the one causing the problem etc. are
+ valid for Poky just like any other system. Its impossible to detail
+ every possible potential failure here but there are some general
+ tips to aid debugging:
+ </para>
+
+ <section id='usingpoky-debugging-taskfailures'>
+ <title>Task Failures</title>
+
+ <para>The log file for shell tasks is available in <filename>${WORKDIR}/temp/log.do_taskname.pid</filename>.
+ For the compile task of busybox 1.01 on the ARM spitz machine, this
+ might be <filename>tmp/work/armv5te-poky-linux-gnueabi/busybox-1.01/temp/log.do_compile.1234</filename>
+ for example. To see what bitbake ran to generate that log, look at the <filename>run.do_taskname.pid </filename>
+ file in the same directory.
+ </para>
+
+ <para>The output from python tasks is sent directly to the console at present.</para>
+ </section>
+
+ <section id='usingpoky-debugging-taskrunning'>
+ <title>Running specific tasks</title>
+
+ <para> Any given package consists of a set of tasks, in most
+ cases the series is fetch, unpack, patch, configure,
+ compile, install, package, package_write and build. The
+ default task is "build" and any tasks this depends on are
+ built first hence the standard bitbake behaviour. There are
+ some tasks such as devshell which are not part of the
+ default build chain. If you wish to run such a task you can
+ use the "-c" option to bitbake e.g. <command>bitbake
+ matchbox-desktop -c devshell</command>.
+ </para>
+
+ <para>
+ If you wish to rerun a task you can use the force option
+ "-f". A typical usage session might look like: </para>
+
+ <para>
+ <literallayout class='monospaced'>
+% bitbake matchbox-desktop
+[change some source in the WORKDIR for example]
+% bitbake matchbox-desktop -c compile -f
+% bitbake matchbox-desktop</literallayout>
+ </para>
+
+ <para>
+ which would build matchbox-desktop, then recompile it. The
+ final command reruns all tasks after the compile (basically
+ the packaging tasks) since bitbake will notice the the
+ compile has been rerun and hence the other tasks also need
+ to run again.
+ </para>
+
+ <para>
+ You can view a list of tasks in a given package by running
+ the listtasks task e.g. <command>bitbake matchbox-desktop -c
+ listtasks</command>.
+ </para>
+ </section>
+
+ <section id='usingpoky-debugging-dependencies'>
+ <title>Dependency Graphs</title>
+
+ <para>
+ Sometimes it can be hard to see why bitbake wants to build
+ some other packages before a given package you've specified.
+ <command>bitbake -g targetname</command> will create
+ <filename>depends.dot</filename> and
+ <filename>task-depends.dot</filename> files in the current
+ directory. They show
+ which packages and tasks depend on which other packages and
+ tasks and are useful for debugging purposes.
+ </para>
+ </section>
+
+ <section id='usingpoky-debugging-bitbake'>
+ <title>General Bitbake Problems</title>
+
+ <para>
+ Debug output from bitbake can be seen with the "-D" option.
+ The debug output gives more information about what bitbake
+ is doing and/or why. Each -D option increases the logging
+ level, the most common usage being "-DDD".
+ </para>
+
+ <para>
+ The output from <command>bitbake -DDD -v targetname</command> can reveal why
+ a certain version of a package might be chosen, why bitbake
+ picked a certain provider or help in other situations where
+ bitbake does something you're not expecting.
+ </para>
+ </section>
+
+ <section id='usingpoky-debugging-buildfile'>
+ <title>Building with no dependencies</title>
+
+ <para>
+ If you really want to build a specific .bb file, you can use
+ the form <command>bitbake -b somepath/somefile.bb</command>. Note that this
+ will not check the dependencies so this option should only
+ be used when you know its dependencies already exist. You
+ can specify fragments of the filename and bitbake will see
+ if it can find a unique match.
+ </para>
+
+ </section>
+
+ <section id='usingpoky-debugging-variables'>
+ <title>Variables</title>
+
+ <para>
+ The "-e" option will dump the resulting environment for
+ either the configuration (no package specified) or for a
+ specific package when specified with the "-b" option.
+ </para>
+ </section>
+
+ <section id='usingpoky-debugging-others'>
+ <title>Other Tips</title>
+
+ <tip>
+ <para>When adding new packages it is worth keeping an eye open for bad
+ things creeping into compiler commandlines such as references to local
+ system files (<filename>/usr/lib/</filename> or <filename>/usr/include/</filename> etc.).
+ </para>
+ </tip>
+
+ <tip>
+ <para>
+ If you want to remove the psplash boot splashscreen, add "psplash=false"
+ to the kernel commandline and psplash won't load allowing you to see
+ the console. It's also possible to switch out of the splashscreen by
+ switching virtual console (Fn+Left or Fn+Right on a Zaurus).
+ </para>
+ </tip>
+
+ </section>
+</section>
+
+</chapter>
+<!--
+vim: expandtab tw=80 ts=4
+-->