summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@digia.com>2014-09-29 13:51:20 +0300
committerAndy Nichols <andy.nichols@digia.com>2014-09-30 16:42:06 +0300
commit6c7560604612a4a9826c09d05fb6ea266fc4e2fc (patch)
tree1c612bc2a599a101e76c868f921678b8ea029f66
parent966f278b30303ab88d319af077f4ac8abf012dbe (diff)
downloadmeta-boot2qt-6c7560604612a4a9826c09d05fb6ea266fc4e2fc.tar.gz
Use device specific bblayers.conf files
Intead of modifying one commong bblayers.conf.sample file, create separate configs for each device type that uses different set of meta layers. Unknown devices now use all meta layers by default. Change-Id: I2bbcf803951c0c8c787b789420c325166b2ebbd5 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
-rwxr-xr-xb2qt-init-build-env4
-rw-r--r--conf/bblayers.conf.bbb.sample44
-rw-r--r--conf/bblayers.conf.emulator.sample40
-rw-r--r--conf/bblayers.conf.fsl.sample43
-rw-r--r--conf/bblayers.conf.rpi.sample41
-rw-r--r--conf/bblayers.conf.sample33
-rw-r--r--conf/bblayers.conf.ti.sample42
-rw-r--r--conf/bblayers.conf.toradex.sample45
-rwxr-xr-xscripts/setup_environment.sh35
9 files changed, 289 insertions, 38 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env
index 03c6439..2deb8a4 100755
--- a/b2qt-init-build-env
+++ b/b2qt-init-build-env
@@ -101,8 +101,8 @@ get_groups() {
101 GROUPS="emulator" 101 GROUPS="emulator"
102 ;; 102 ;;
103 *) 103 *)
104 echo "Unknown device configuration, no matching repo group defined" 104 echo "Unknown device configuration, including all meta layers"
105 exit 1 105 GROUPS="all"
106 ;; 106 ;;
107 esac 107 esac
108 108
diff --git a/conf/bblayers.conf.bbb.sample b/conf/bblayers.conf.bbb.sample
new file mode 100644
index 0000000..69f65e6
--- /dev/null
+++ b/conf/bblayers.conf.bbb.sample
@@ -0,0 +1,44 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
24# changes incompatibly
25LCONF_VERSION = "6"
26
27BBPATH = "${TOPDIR}"
28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
30
31BBLAYERS ?= " \
32 ${BSPDIR}/sources/poky/meta \
33 ${BSPDIR}/sources/poky/meta-yocto \
34 ${BSPDIR}/sources/meta-beagleboard/common-bsp \
35 ${BSPDIR}/sources/meta-ti \
36 ${BSPDIR}/sources/meta-openembedded/meta-oe \
37 ${BSPDIR}/sources/meta-b2qt \
38 ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \
39 ${BSPDIR}/sources/meta-b2qt/meta-beagleboard-extras \
40 "
41BBLAYERS_NON_REMOVABLE ?= " \
42 ${BSPDIR}/sources/poky/meta \
43 ${BSPDIR}/sources/poky/meta-yocto \
44 "
diff --git a/conf/bblayers.conf.emulator.sample b/conf/bblayers.conf.emulator.sample
new file mode 100644
index 0000000..76a49d5
--- /dev/null
+++ b/conf/bblayers.conf.emulator.sample
@@ -0,0 +1,40 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
24# changes incompatibly
25LCONF_VERSION = "6"
26
27BBPATH = "${TOPDIR}"
28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
30
31BBLAYERS ?= " \
32 ${BSPDIR}/sources/poky/meta \
33 ${BSPDIR}/sources/poky/meta-yocto \
34 ${BSPDIR}/sources/meta-openembedded/meta-oe \
35 ${BSPDIR}/sources/meta-b2qt \
36 "
37BBLAYERS_NON_REMOVABLE ?= " \
38 ${BSPDIR}/sources/poky/meta \
39 ${BSPDIR}/sources/poky/meta-yocto \
40 "
diff --git a/conf/bblayers.conf.fsl.sample b/conf/bblayers.conf.fsl.sample
new file mode 100644
index 0000000..a9711ca
--- /dev/null
+++ b/conf/bblayers.conf.fsl.sample
@@ -0,0 +1,43 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
24# changes incompatibly
25LCONF_VERSION = "6"
26
27BBPATH = "${TOPDIR}"
28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
30
31BBLAYERS ?= " \
32 ${BSPDIR}/sources/poky/meta \
33 ${BSPDIR}/sources/poky/meta-yocto \
34 ${BSPDIR}/sources/meta-fsl-arm \
35 ${BSPDIR}/sources/meta-fsl-arm-extra \
36 ${BSPDIR}/sources/meta-openembedded/meta-oe \
37 ${BSPDIR}/sources/meta-b2qt \
38 ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \
39 "
40BBLAYERS_NON_REMOVABLE ?= " \
41 ${BSPDIR}/sources/poky/meta \
42 ${BSPDIR}/sources/poky/meta-yocto \
43 "
diff --git a/conf/bblayers.conf.rpi.sample b/conf/bblayers.conf.rpi.sample
new file mode 100644
index 0000000..b7310f8
--- /dev/null
+++ b/conf/bblayers.conf.rpi.sample
@@ -0,0 +1,41 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
24# changes incompatibly
25LCONF_VERSION = "6"
26
27BBPATH = "${TOPDIR}"
28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
30
31BBLAYERS ?= " \
32 ${BSPDIR}/sources/poky/meta \
33 ${BSPDIR}/sources/poky/meta-yocto \
34 ${BSPDIR}/sources/meta-raspberrypi \
35 ${BSPDIR}/sources/meta-openembedded/meta-oe \
36 ${BSPDIR}/sources/meta-b2qt \
37 "
38BBLAYERS_NON_REMOVABLE ?= " \
39 ${BSPDIR}/sources/poky/meta \
40 ${BSPDIR}/sources/poky/meta-yocto \
41 "
diff --git a/conf/bblayers.conf.sample b/conf/bblayers.conf.sample
index 3636297..42c84d2 100644
--- a/conf/bblayers.conf.sample
+++ b/conf/bblayers.conf.sample
@@ -26,24 +26,25 @@ LCONF_VERSION = "6"
26 26
27BBPATH = "${TOPDIR}" 27BBPATH = "${TOPDIR}"
28BBFILES ?= "" 28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
29 30
30BBLAYERS ?= " \ 31BBLAYERS ?= " \
31 ##COREBASE##/meta \ 32 ${BSPDIR}/sources/poky/meta \
32 ##COREBASE##/meta-yocto \ 33 ${BSPDIR}/sources/poky/meta-yocto \
33 ##COREBASE##/../meta-fsl-arm \ 34 ${BSPDIR}/sources/meta-fsl-arm \
34 ##COREBASE##/../meta-fsl-arm-extra \ 35 ${BSPDIR}/sources/meta-fsl-arm-extra \
35 ##COREBASE##/../meta-beagleboard/common-bsp \ 36 ${BSPDIR}/sources/meta-beagleboard/common-bsp \
36 ##COREBASE##/../meta-ti \ 37 ${BSPDIR}/sources/meta-ti \
37 ##COREBASE##/../meta-raspberrypi \ 38 ${BSPDIR}/sources/meta-raspberrypi \
38 ##COREBASE##/../meta-toradex \ 39 ${BSPDIR}/sources/meta-toradex \
39 ##COREBASE##/../meta-openembedded/meta-oe \ 40 ${BSPDIR}/sources/meta-openembedded/meta-oe \
40 ##COREBASE##/../meta-b2qt \ 41 ${BSPDIR}/sources/meta-b2qt \
41 ##COREBASE##/../meta-b2qt/meta-ti-extras \ 42 ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \
42 ##COREBASE##/../meta-b2qt/meta-fsl-extras \ 43 ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \
43 ##COREBASE##/../meta-b2qt/meta-beagleboard-extras \ 44 ${BSPDIR}/sources/meta-b2qt/meta-beagleboard-extras \
44 ##COREBASE##/../meta-b2qt/meta-toradex-extras \ 45 ${BSPDIR}/sources/meta-b2qt/meta-toradex-extras \
45 " 46 "
46BBLAYERS_NON_REMOVABLE ?= " \ 47BBLAYERS_NON_REMOVABLE ?= " \
47 ##COREBASE##/meta \ 48 ${BSPDIR}/sources/poky/meta \
48 ##COREBASE##/meta-yocto \ 49 ${BSPDIR}/sources/poky/meta-yocto \
49 " 50 "
diff --git a/conf/bblayers.conf.ti.sample b/conf/bblayers.conf.ti.sample
new file mode 100644
index 0000000..f1a4557
--- /dev/null
+++ b/conf/bblayers.conf.ti.sample
@@ -0,0 +1,42 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
24# changes incompatibly
25LCONF_VERSION = "6"
26
27BBPATH = "${TOPDIR}"
28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
30
31BBLAYERS ?= " \
32 ${BSPDIR}/sources/poky/meta \
33 ${BSPDIR}/sources/poky/meta-yocto \
34 ${BSPDIR}/sources/meta-ti \
35 ${BSPDIR}/sources/meta-openembedded/meta-oe \
36 ${BSPDIR}/sources/meta-b2qt \
37 ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \
38 "
39BBLAYERS_NON_REMOVABLE ?= " \
40 ${BSPDIR}/sources/poky/meta \
41 ${BSPDIR}/sources/poky/meta-yocto \
42 "
diff --git a/conf/bblayers.conf.toradex.sample b/conf/bblayers.conf.toradex.sample
new file mode 100644
index 0000000..30c79d6
--- /dev/null
+++ b/conf/bblayers.conf.toradex.sample
@@ -0,0 +1,45 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://qt.digia.com/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
24# changes incompatibly
25LCONF_VERSION = "6"
26
27BBPATH = "${TOPDIR}"
28BBFILES ?= ""
29BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
30
31BBLAYERS ?= " \
32 ${BSPDIR}/sources/poky/meta \
33 ${BSPDIR}/sources/poky/meta-yocto \
34 ${BSPDIR}/sources/meta-fsl-arm \
35 ${BSPDIR}/sources/meta-fsl-arm-extra \
36 ${BSPDIR}/sources/meta-toradex \
37 ${BSPDIR}/sources/meta-openembedded/meta-oe \
38 ${BSPDIR}/sources/meta-b2qt \
39 ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \
40 ${BSPDIR}/sources/meta-b2qt/meta-toradex-extras \
41 "
42BBLAYERS_NON_REMOVABLE ?= " \
43 ${BSPDIR}/sources/poky/meta \
44 ${BSPDIR}/sources/poky/meta-yocto \
45 "
diff --git a/scripts/setup_environment.sh b/scripts/setup_environment.sh
index 63f59cf..aaba070 100755
--- a/scripts/setup_environment.sh
+++ b/scripts/setup_environment.sh
@@ -27,8 +27,8 @@ usage() {
27 27
28clean() { 28clean() {
29 unset BUILDDIR 29 unset BUILDDIR
30 unset NEWBUILD
31 unset TEMPLATECONF 30 unset TEMPLATECONF
31 unset LAYERSCONF
32} 32}
33 33
34CWD=`pwd` 34CWD=`pwd`
@@ -57,42 +57,37 @@ if [ -z "$MACHINE" ]; then
57 return 1 57 return 1
58fi 58fi
59 59
60if [ ! -d ${CWD}/${BUILDDIR} ]; then 60if [ ! -f ${CWD}/${BUILDDIR}/conf/bblayers.conf ]; then
61 NEWBUILD=1
62fi
63
64export TEMPLATECONF=${CWD}/sources/meta-b2qt/conf
65cd sources/poky
66. ./oe-init-build-env ${CWD}/${BUILDDIR}
67
68if [ -n "${NEWBUILD}" ]; then
69 case ${MACHINE} in 61 case ${MACHINE} in
70 apalis-imx6) 62 apalis-imx6)
71 LAYERS="meta-raspberrypi meta-beagleboard meta-ti" 63 LAYERSCONF="bblayers.conf.toradex.sample"
72 ;; 64 ;;
73 imx53qsb|imx6qsabresd|nitrogen6x) 65 imx53qsb|imx6qsabresd|nitrogen6x)
74 LAYERS="meta-raspberrypi meta-beagleboard meta-toradex meta-ti" 66 LAYERSCONF="bblayers.conf.fsl.sample"
75 ;; 67 ;;
76 beagleboard|am335x-evm) 68 beagleboard|am335x-evm)
77 LAYERS="meta-raspberrypi meta-beagleboard meta-toradex meta-fsl" 69 LAYERSCONF="bblayers.conf.ti.sample"
78 ;; 70 ;;
79 beaglebone) 71 beaglebone)
80 LAYERS="meta-raspberrypi meta-toradex meta-fsl" 72 LAYERSCONF="bblayers.conf.bbb.sample"
81 ;; 73 ;;
82 raspberrypi) 74 raspberrypi)
83 LAYERS="meta-beagleboard meta-toradex meta-ti meta-fsl" 75 LAYERSCONF="bblayers.conf.rpi.sample"
84 ;; 76 ;;
85 emulator) 77 emulator)
86 LAYERS="meta-raspberrypi meta-beagleboard meta-toradex meta-ti meta-fsl" 78 LAYERSCONF="bblayers.conf.emulator.sample"
87 ;; 79 ;;
88 *) 80 *)
89 echo "Unknown MACHINE, bblayer.conf might need manual editing" 81 LAYERSCONF="bblayers.conf.sample"
82 echo "Unknown MACHINE, bblayers.conf might need manual editing"
90 ;; 83 ;;
91 esac 84 esac
92 85
93 for layer in ${LAYERS}; do 86 mkdir -p ${CWD}/${BUILDDIR}/conf
94 sed -i -e "/${layer}/d" conf/bblayers.conf 87 cp ${CWD}/sources/meta-b2qt/conf/${LAYERSCONF} ${CWD}/${BUILDDIR}/conf/bblayers.conf
95 done
96fi 88fi
97 89
90export TEMPLATECONF=${CWD}/sources/meta-b2qt/conf
91cd sources/poky
92. ./oe-init-build-env ${CWD}/${BUILDDIR}
98clean 93clean