diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/manifest.xml | 53 | ||||
-rw-r--r-- | scripts/manifest_daisy.xml | 53 | ||||
-rw-r--r-- | scripts/manifest_tibidabo.xml | 31 | ||||
-rwxr-xr-x | scripts/setup-environment.sh | 96 |
4 files changed, 233 insertions, 0 deletions
diff --git a/scripts/manifest.xml b/scripts/manifest.xml new file mode 100644 index 0000000..0eb2fb9 --- /dev/null +++ b/scripts/manifest.xml | |||
@@ -0,0 +1,53 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <manifest> | ||
3 | |||
4 | <default sync-j="4" revision="daisy"/> | ||
5 | |||
6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> | ||
7 | <remote fetch="git://git.openembedded.org" name="oe"/> | ||
8 | <remote fetch="git://github.com/Freescale" name="freescale"/> | ||
9 | <remote fetch="git://github.com/beagleboard" name="beagleboard"/> | ||
10 | <remote fetch="git://git.toradex.com" name="toradex"/> | ||
11 | |||
12 | <project name="poky" | ||
13 | remote="yocto" | ||
14 | revision="18d859a8c982a76dda5bfe27a32d1a0905947d2e" | ||
15 | path="sources/poky"/> | ||
16 | <project name="meta-openembedded" | ||
17 | remote="oe" | ||
18 | revision="8065dd8456913457a0114ddb2b4bd4842847b2a3" | ||
19 | path="sources/meta-openembedded"/> | ||
20 | |||
21 | <project name="meta-fsl-arm" | ||
22 | remote="yocto" | ||
23 | revision="4e694e727aa8babfd0ba06c5e98bab3753b39a8b" | ||
24 | path="sources/meta-fsl-arm" | ||
25 | groups="notdefault,fsl,toradex"/> | ||
26 | <project name="meta-ti" | ||
27 | remote="yocto" | ||
28 | revision="c06f25913317160e03d172df73919edf9bdf8554" | ||
29 | path="sources/meta-ti" | ||
30 | groups="notdefault,ti,bbb"/> | ||
31 | <project name="meta-raspberrypi" | ||
32 | remote="yocto" | ||
33 | revision="946b69299737cc2f1378c864f1b9075280db1b53" | ||
34 | path="sources/meta-raspberrypi" | ||
35 | groups="notdefault,rpi"/> | ||
36 | <project name="meta-fsl-arm-extra" | ||
37 | remote="freescale" | ||
38 | revision="e1085deb3d915d2a95a65cceadc77c6de0dadfb6" | ||
39 | path="sources/meta-fsl-arm-extra" | ||
40 | groups="notdefault,fsl,toradex"/> | ||
41 | <project name="meta-beagleboard" | ||
42 | remote="beagleboard" | ||
43 | revision="b5c709b2b6bd3bf236df923fa8f245a00fbb1b60" | ||
44 | path="sources/meta-beagleboard" | ||
45 | groups="notdefault,bbb"/> | ||
46 | <project name="meta-toradex" | ||
47 | remote="toradex" | ||
48 | revision="d2a0c91d9fe0836113700daf28390588d2ddc9a8" | ||
49 | path="sources/meta-toradex" | ||
50 | groups="notdefault,toradex"/> | ||
51 | |||
52 | </manifest> | ||
53 | |||
diff --git a/scripts/manifest_daisy.xml b/scripts/manifest_daisy.xml new file mode 100644 index 0000000..2668398 --- /dev/null +++ b/scripts/manifest_daisy.xml | |||
@@ -0,0 +1,53 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <manifest> | ||
3 | |||
4 | <default sync-j="4" revision="daisy"/> | ||
5 | |||
6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> | ||
7 | <remote fetch="git://git.openembedded.org" name="oe"/> | ||
8 | <remote fetch="git://github.com/Freescale" name="freescale"/> | ||
9 | <remote fetch="git://github.com/beagleboard" name="beagleboard"/> | ||
10 | <remote fetch="git://git.toradex.com" name="toradex"/> | ||
11 | |||
12 | <project name="poky" | ||
13 | remote="yocto" | ||
14 | revision="daisy" | ||
15 | path="sources/poky"/> | ||
16 | <project name="meta-openembedded" | ||
17 | remote="oe" | ||
18 | revision="daisy" | ||
19 | path="sources/meta-openembedded"/> | ||
20 | |||
21 | <project name="meta-fsl-arm" | ||
22 | remote="yocto" | ||
23 | revision="daisy" | ||
24 | path="sources/meta-fsl-arm" | ||
25 | groups="notdefault,fsl,toradex"/> | ||
26 | <project name="meta-ti" | ||
27 | remote="yocto" | ||
28 | revision="daisy" | ||
29 | path="sources/meta-ti" | ||
30 | groups="notdefault,ti,bbb"/> | ||
31 | <project name="meta-raspberrypi" | ||
32 | remote="yocto" | ||
33 | revision="daisy" | ||
34 | path="sources/meta-raspberrypi" | ||
35 | groups="notdefault,rpi"/> | ||
36 | <project name="meta-fsl-arm-extra" | ||
37 | remote="freescale" | ||
38 | revision="daisy" | ||
39 | path="sources/meta-fsl-arm-extra" | ||
40 | groups="notdefault,fsl,toradex"/> | ||
41 | <project name="meta-beagleboard" | ||
42 | remote="beagleboard" | ||
43 | revision="master" | ||
44 | path="sources/meta-beagleboard" | ||
45 | groups="notdefault,bbb"/> | ||
46 | <project name="meta-toradex" | ||
47 | remote="toradex" | ||
48 | revision="V2.3" | ||
49 | path="sources/meta-toradex" | ||
50 | groups="notdefault,toradex"/> | ||
51 | |||
52 | </manifest> | ||
53 | |||
diff --git a/scripts/manifest_tibidabo.xml b/scripts/manifest_tibidabo.xml new file mode 100644 index 0000000..97c18dd --- /dev/null +++ b/scripts/manifest_tibidabo.xml | |||
@@ -0,0 +1,31 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <manifest> | ||
3 | |||
4 | <default sync-j="4" revision="dora"/> | ||
5 | |||
6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> | ||
7 | <remote fetch="git://git.openembedded.org" name="oe"/> | ||
8 | <remote fetch="git://github.com/Freescale" name="freescale"/> | ||
9 | <remote fetch="https://github.com/architech-boards/" name="architech"/> | ||
10 | |||
11 | <project name="poky" | ||
12 | remote="yocto" | ||
13 | revision="84c2763fa0bf08a83caa2c5ee532b5bef2ff918b" | ||
14 | path="sources/poky"/> | ||
15 | <project name="meta-openembedded" | ||
16 | remote="oe" | ||
17 | revision="40e0f371f3eb1628655c484feac0cebf810737b4" | ||
18 | path="sources/meta-openembedded"/> | ||
19 | |||
20 | <project name="meta-fsl-arm" | ||
21 | remote="yocto" | ||
22 | revision="fb1681666fac9c096314cd01242be4613b7ff140" | ||
23 | path="sources/meta-fsl-arm" | ||
24 | groups="notdefault,architech"/> | ||
25 | <project name="meta-tibidabo" | ||
26 | remote="architech" | ||
27 | revision="06c6b09e0776507e1230aa98b5ca10d9d3968286" | ||
28 | path="sources/meta-tibidabo" | ||
29 | groups="notdefault,architech"/> | ||
30 | |||
31 | </manifest> | ||
diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh new file mode 100755 index 0000000..62055a2 --- /dev/null +++ b/scripts/setup-environment.sh | |||
@@ -0,0 +1,96 @@ | |||
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://www.qt.io/contact-us. | ||
18 | ## | ||
19 | ## | ||
20 | ## $QT_END_LICENSE$ | ||
21 | ## | ||
22 | ############################################################################# | ||
23 | |||
24 | while test -n "$1"; do | ||
25 | case "$1" in | ||
26 | "--help" | "-h") | ||
27 | echo "Usage: . $0 [build directory]" | ||
28 | return 0 | ||
29 | ;; | ||
30 | *) | ||
31 | BUILDDIR=$1 | ||
32 | ;; | ||
33 | esac | ||
34 | shift | ||
35 | done | ||
36 | |||
37 | THIS_SCRIPT="setup-environment.sh" | ||
38 | if [ "$(basename $0)" = "${THIS_SCRIPT}" ]; then | ||
39 | echo "Error: This script needs to be sourced. Please run as '. $0'" | ||
40 | exit 1 | ||
41 | fi | ||
42 | |||
43 | if [ -z "$MACHINE" ]; then | ||
44 | echo "Error: MACHINE environment variable not defined" | ||
45 | return 1 | ||
46 | fi | ||
47 | |||
48 | BUILDDIR=${BUILDDIR:-build-${MACHINE}} | ||
49 | |||
50 | if [ ! -f ${PWD}/${BUILDDIR}/conf/bblayers.conf ]; then | ||
51 | case ${MACHINE} in | ||
52 | apalis-imx6|colibri-vf) | ||
53 | LAYERSCONF="bblayers.conf.toradex.sample" | ||
54 | ;; | ||
55 | imx53qsb|imx6qsabresd|nitrogen6x) | ||
56 | LAYERSCONF="bblayers.conf.fsl.sample" | ||
57 | ;; | ||
58 | tibidabo) | ||
59 | LAYERSCONF="bblayers.conf.tibidabo.sample" | ||
60 | ;; | ||
61 | beagleboard|am335x-evm) | ||
62 | LAYERSCONF="bblayers.conf.ti.sample" | ||
63 | ;; | ||
64 | beaglebone) | ||
65 | LAYERSCONF="bblayers.conf.bbb.sample" | ||
66 | ;; | ||
67 | raspberrypi) | ||
68 | LAYERSCONF="bblayers.conf.rpi.sample" | ||
69 | ;; | ||
70 | emulator) | ||
71 | LAYERSCONF="bblayers.conf.emulator.sample" | ||
72 | ;; | ||
73 | *) | ||
74 | LAYERSCONF="bblayers.conf.sample" | ||
75 | echo "Unknown MACHINE, bblayers.conf might need manual editing" | ||
76 | ;; | ||
77 | esac | ||
78 | |||
79 | mkdir -p ${PWD}/${BUILDDIR}/conf | ||
80 | cp ${PWD}/sources/meta-b2qt/conf/${LAYERSCONF} ${PWD}/${BUILDDIR}/conf/bblayers.conf | ||
81 | |||
82 | if [ ! -d ${PWD}/sources/meta-b2qt/.git ]; then | ||
83 | QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-b2qt/../../) | ||
84 | fi | ||
85 | fi | ||
86 | |||
87 | export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf" | ||
88 | . sources/poky/oe-init-build-env ${BUILDDIR} | ||
89 | |||
90 | # use sources from Qt SDK if that is available | ||
91 | sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf | ||
92 | |||
93 | unset QT_SDK_PATH | ||
94 | unset BUILDDIR | ||
95 | unset TEMPLATECONF | ||
96 | unset LAYERSCONF | ||