summaryrefslogtreecommitdiffstats
path: root/b2qt-init-build-env
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@digia.com>2014-02-11 10:18:30 +0200
committerSamuli Piippo <samuli.piippo@digia.com>2014-02-12 09:34:52 +0200
commitd0f0c374e07f0d748f3ad20b8350863394ae8283 (patch)
tree8b8a3c62c94e66b220314565295c240b4ebe550f /b2qt-init-build-env
parent1d951aca19b0c65c79ee6239a95d28dbf467198a (diff)
downloadmeta-boot2qt-d0f0c374e07f0d748f3ad20b8350863394ae8283.tar.gz
Changes to init script
- Move to root folder - meta-ti and meta-raspberrypi now have dora branch Change-Id: I1b88ead9c44b67243d9c69fd6a5a8a59c8232b97 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
Diffstat (limited to 'b2qt-init-build-env')
-rwxr-xr-xb2qt-init-build-env76
1 files changed, 76 insertions, 0 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env
new file mode 100755
index 0000000..8c4da01
--- /dev/null
+++ b/b2qt-init-build-env
@@ -0,0 +1,76 @@
1#!/bin/sh
2#############################################################################
3##
4## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
5##
6## This file is part of the Qt Enterprise Embedded Scripts of the Qt
7## framework.
8##
9## $QT_BEGIN_LICENSE$
10## Commercial License Usage Only
11## Licensees holding valid commercial Qt license agreements with Digia
12## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
13## may use this file in accordance with the terms contained in said license
14## agreement.
15##
16## For further information use the contact form at
17## http://qt.digia.com/contact-us.
18##
19##
20## $QT_END_LICENSE$
21##
22#############################################################################
23
24set -e
25
26if [ $# -ne 1 ]; then
27 echo "Usage: $0 <yocto build directory>"
28 exit 1
29fi
30
31mkdir -p ${1}
32
33DIR=$(readlink -f $(dirname $0))
34BUILDDIR=$(readlink -f $1)
35
36if [ ! -d ${BUILDDIR}/poky ]; then
37 git clone git://git.yoctoproject.org/poky ${BUILDDIR}/poky -b dora
38fi
39
40if [ ! -d ${BUILDDIR}/poky/meta-openembedded ]; then
41 git clone git://git.openembedded.org/meta-openembedded ${BUILDDIR}/poky/meta-openembedded -b dora
42fi
43
44if [ ! -d ${BUILDDIR}/poky/meta-ti ]; then
45 git clone git://git.yoctoproject.org/meta-ti ${BUILDDIR}/poky/meta-ti -b dora
46fi
47
48if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm ]; then
49 git clone git://git.yoctoproject.org/meta-fsl-arm ${BUILDDIR}/poky/meta-fsl-arm -b dora
50fi
51
52if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm-extra ]; then
53 git clone git://github.com/Freescale/meta-fsl-arm-extra.git ${BUILDDIR}/poky/meta-fsl-arm-extra -b dora
54fi
55
56if [ ! -d ${BUILDDIR}/poky/meta-raspberrypi ]; then
57 git clone git://git.yoctoproject.org/meta-raspberrypi ${BUILDDIR}/poky/meta-raspberrypi -b dora
58fi
59
60if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then
61 ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt
62fi
63
64echo
65echo "Yocto build system is ready"
66echo "next initialize the build env for your target machine, for example:"
67echo
68echo "cd ${BUILDDIR}"
69echo "export TEMPLATECONF=meta-b2qt/conf"
70echo "export MACHINE=raspberrypi"
71echo ". ./poky/oe-init-build-env build-raspberrypi"
72echo
73echo "and build B2Qt image with:"
74echo
75echo "bitbake b2qt-embedded-image"
76echo