summaryrefslogtreecommitdiffstats
path: root/src/doc
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2014-02-12 11:01:17 +0100
committerSamuli Piippo <samuli.piippo@digia.com>2014-02-13 09:45:21 +0200
commit7a67c281301590b0f6305fc2cf118d28216b5362 (patch)
tree503122dbb7dae2bf3fb800d279b0386d7af117f1 /src/doc
parentb7347b14ba53a3d847ec783855a2c46101fafac3 (diff)
Doc: Document building your own embedded linux stack
Task-number: QTEE-176 Change-Id: I9641ea529f651fe5a19cfa0f0abff48096b26381 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com> Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/src/b2qt-external-pages.qdoc5
-rw-r--r--src/doc/src/b2qt.qdoc66
2 files changed, 71 insertions, 0 deletions
diff --git a/src/doc/src/b2qt-external-pages.qdoc b/src/doc/src/b2qt-external-pages.qdoc
index cce32e8..5196095 100644
--- a/src/doc/src/b2qt-external-pages.qdoc
+++ b/src/doc/src/b2qt-external-pages.qdoc
@@ -41,3 +41,8 @@
\externalpage http://qt.digia.com/Product/Qt-Enterprise-Features/Charts/
\title Qt Charts
*/
+
+/*!
+ \externalpage https://www.yoctoproject.org/
+ \title Yocto Project
+*/
diff --git a/src/doc/src/b2qt.qdoc b/src/doc/src/b2qt.qdoc
index 3ee3a0a..41e3065 100644
--- a/src/doc/src/b2qt.qdoc
+++ b/src/doc/src/b2qt.qdoc
@@ -811,6 +811,72 @@
}
}
\endcode
+
+ \section1 Building Your Own Embedded Linux Image
+
+ \B2QL is built using the tools and resources from the \l {Yocto Project},
+ and is based on Yocto's reference distribution (\e Poky). You can
+ use the same tools to build custom \B2Q images, and have control over
+ which packages are included in the build and how the software stack
+ is configured.
+
+ \section2 Requirements
+
+ You should be familiar with the Yocto tools and the concept of
+ \e {recipes}. For more information, see Yocto Project
+ \l{https://www.yoctoproject.org/documentation/current}{documentation}.
+
+ To get started, you need the following:
+
+ \list
+ \li Install the \B2Q \e source packages. You can
+ find these by running the \e MaintenanceTool application
+ located in the \SDK installation directory and selecting
+ \e {Package Manager}. The \e {Yocto meta layer} package
+ contains the additional recipes required to make the image
+ compatible with \B2Q.
+ \li Install the dependencies for the Yocto tools. In Ubuntu,
+ the following packages are required:
+ \code
+ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
+ build-essential chrpath libsdl1.2-dev xterm
+ \endcode
+ \endlist
+
+ \section2 Setting Up Yocto Build Environment
+
+ Run the setup script that initializes the Yocto environment:
+
+ \code
+ cd <your/yocto/build/directory>
+ <INSTALL_DIR>/Boot2Qt-2.x/sources/b2qt-yocto-meta/scripts/b2qt-init-build-env .
+ \endcode
+
+ \section2 Building the Image and Toolchain
+
+ After the Yocto environment is set up, you need to configure the
+ build environment for your target device. Using Raspberry Pi as
+ an example:
+
+ \code
+ export TEMPLATECONF=meta-b2qt/conf
+ export MACHINE=raspberrypi
+ source poky/oe-init-build-env build-raspberrypi
+ \endcode
+
+ Yocto recipes for \B2QL have two main targets to build: The target image,
+ and the external toolchain that is used for building the Qt framework and
+ applications.
+
+ \code
+ bitbake b2qt-embedded-image
+ bitbake meta-toolchain-b2qt-embedded-sdk
+ \endcode
+
+ \note The generated target image does not yet include Qt libraries,
+ you need to build Qt and add it into the image yourself. The
+ file \c {embedded-linux/build_qt.sh} from the \e {Build scripts} source
+ package can be used as reference on how to configure and build Qt.
*/
/*!