summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xb2qt-init-build-env5
-rw-r--r--classes/image_dd.bbclass78
-rw-r--r--classes/populate_b2qt_sdk.bbclass8
-rw-r--r--classes/qtquickcompiler.bbclass25
-rw-r--r--conf/bblayers.conf.rpi.sample1
-rw-r--r--conf/bblayers.conf.smx6.sample50
-rw-r--r--conf/distro/b2qt.conf4
-rw-r--r--conf/distro/include/apalis-imx6.conf5
-rw-r--r--conf/distro/include/colibri-imx6.conf7
-rw-r--r--conf/distro/include/colibri-vf.conf7
-rw-r--r--conf/distro/include/nuc.conf6
-rw-r--r--conf/distro/include/raspberrypi2.conf4
-rw-r--r--conf/distro/include/smarc-samx6i.conf3
-rw-r--r--conf/distro/include/tibidabo.conf6
-rw-r--r--conf/local.conf.sample4
-rw-r--r--meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend22
-rw-r--r--meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-imx_0.11.1.bbappend22
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb38
-rw-r--r--meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend7
-rw-r--r--meta-nuc-extras/classes/image_dd_efi.bbclass45
-rw-r--r--meta-nuc-extras/recipes/grub/grub-efi/grub.cfg10
-rw-r--r--meta-nuc-extras/recipes/grub/grub-efi_2.00.bbappend40
-rw-r--r--meta-raspberrypi-extras/conf/layer.conf32
-rw-r--r--meta-raspberrypi-extras/recipes/bootfiles/rpi-config_git.bbappend27
-rw-r--r--meta-smx6-extras/conf/layer.conf37
-rw-r--r--meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend26
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb4
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr2
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-imx6-enable-sdboot-by-default.patch36
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch35
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend6
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch25
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex_2015.04.bbappend25
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller.bb3
-rw-r--r--recipes-qt/b2qt-addons/b2qt-demos.bb8
-rw-r--r--recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb1
-rw-r--r--recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb1
-rw-r--r--recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb1
-rw-r--r--recipes-qt/b2qt-addons/b2qt-launcher.bb3
-rw-r--r--recipes-qt/b2qt-addons/b2qt-utils.bb3
-rw-r--r--recipes-qt/b2qt-addons/democompositor_git.bb3
-rw-r--r--recipes-qt/packagegroups/packagegroup-b2qt-embedded-addons.bb2
-rw-r--r--recipes-qt/qt5-addons/qtcharts_git.bb4
-rw-r--r--recipes-qt/qt5-addons/qtdatavis3d_git.bb1
-rw-r--r--recipes-qt/qt5-addons/qtdeclarative-render2d_git.bb1
-rw-r--r--recipes-qt/qt5-addons/qtquickcompiler-sdk.bb58
-rw-r--r--recipes-qt/qt5-addons/qtvirtualkeyboard_git.bb1
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bbappend15
-rw-r--r--recipes-qt/qt5/qt3d_git.bbappend17
-rw-r--r--recipes-qt/qt5/qtbase-native_git.bbappend9
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch180
-rw-r--r--recipes-qt/qt5/qtbase_git.bbappend12
-rw-r--r--recipes-qt/qt5/qtcanvas3d_git.bbappend1
-rw-r--r--recipes-qt/qt5/qtconnectivity_git.bbappend1
-rw-r--r--recipes-qt/qt5/qtdeclarative_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtgraphicaleffects_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtimageformats_git.bbappend1
-rw-r--r--recipes-qt/qt5/qtlocation_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtmultimedia_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtquickcontrols_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtsensors_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtserialbus_git.bb3
-rw-r--r--recipes-qt/qt5/qtserialport_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtsvg_git.bbappend1
-rw-r--r--recipes-qt/qt5/qttools_git.bbappend3
-rw-r--r--recipes-qt/qt5/qttranslations_git.bbappend6
-rw-r--r--recipes-qt/qt5/qtwayland-native_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtwayland_5.7-wip.bb2
-rw-r--r--recipes-qt/qt5/qtwayland_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtwebchannel_git.bbappend1
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bbappend3
-rw-r--r--recipes-qt/qt5/qtwebsockets_git.bbappend1
-rw-r--r--recipes-qt/qt5/qtxmlpatterns_git.bbappend1
-rw-r--r--recipes/dracut/dracut_git.bbappend4
-rw-r--r--recipes/initramfs-basic/files/init.sh102
-rw-r--r--recipes/initramfs-basic/init-basic.bb34
-rw-r--r--recipes/initramfs-basic/initramfs-basic.bb40
-rw-r--r--recipes/os-release/os-release.bbappend39
-rw-r--r--recipes/ostree/ostree.bb1
-rw-r--r--recipes/ostree/ostree/0004-Mount-boot-partition.patch108
-rw-r--r--recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch60
-rw-r--r--scripts/manifest.xml14
-rw-r--r--scripts/manifest_fido.xml11
-rwxr-xr-xscripts/setup-environment.sh5
84 files changed, 1241 insertions, 203 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env
index 0ae2503..ef2e024 100755
--- a/b2qt-init-build-env
+++ b/b2qt-init-build-env
@@ -95,9 +95,12 @@ get_groups() {
95 apalis-imx6|colibri-imx6|colibri-vf) 95 apalis-imx6|colibri-imx6|colibri-vf)
96 PROJECT_GROUPS="toradex" 96 PROJECT_GROUPS="toradex"
97 ;; 97 ;;
98 imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x|smarc-samx6i) 98 imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x)
99 PROJECT_GROUPS="fsl" 99 PROJECT_GROUPS="fsl"
100 ;; 100 ;;
101 smarc-samx6i)
102 PROJECT_GROUPS="smx6"
103 ;;
101 tibidabo) 104 tibidabo)
102 PROJECT_GROUPS="architech" 105 PROJECT_GROUPS="architech"
103 ;; 106 ;;
diff --git a/classes/image_dd.bbclass b/classes/image_dd.bbclass
new file mode 100644
index 0000000..4d193b7
--- /dev/null
+++ b/classes/image_dd.bbclass
@@ -0,0 +1,78 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22# This class is based on meta-fsl-arm/classes/image_types_fsl.bbclass::generate_imx_sdcard()
23DESCRIPTION = "The base class for building images that can be deployed with GNU coreutils dd tool."
24inherit image_types
25
26IMAGE="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.img"
27
28# Boot partition size [in KiB]
29BOOT_SPACE ?= "8192"
30
31# Set alignment to 4MB [in KiB]
32IMAGE_ROOTFS_ALIGNMENT = "4096"
33
34# Boot partition volume id
35BOOTDD_VOLUME_ID = "boot"
36
37IMAGE_TYPEDEP_dd = "ext3"
38IMAGE_DEPENDS_dd = "parted-native:do_populate_sysroot \
39 dosfstools-native:do_populate_sysroot \
40 mtools-native:do_populate_sysroot"
41
42image_dd_do_populate_boot() {
43}
44EXPORT_FUNCTIONS do_populate_boot
45
46IMAGE_CMD_dd() {
47
48 ROOTFS="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
49
50 # Align boot partition and calculate total binary image size
51 BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1)
52 BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT})
53 IMAGE_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT})
54
55 # Initialize a sparse file
56 dd if=/dev/zero of=${IMAGE} bs=1 count=0 seek=$(expr 1024 \* ${IMAGE_SIZE})
57
58 # Create partition table
59 parted -s ${IMAGE} mklabel msdos
60 parted -s ${IMAGE} unit KiB mkpart primary fat32 ${IMAGE_ROOTFS_ALIGNMENT} $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED})
61 parted -s ${IMAGE} unit KiB mkpart primary $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED}) $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED} \+ $ROOTFS_SIZE)
62 parted -s ${IMAGE} set 1 boot on
63 parted ${IMAGE} print
64
65 # Create boot partition image
66 BOOT_BLOCKS=$(LC_ALL=C parted -s ${IMAGE} unit b print \
67 | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }')
68 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
69 do_populate_boot
70
71 # Burn Partitions
72 dd if=${WORKDIR}/boot.img of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
73 dd if=${ROOTFS} of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${BOOT_SPACE_ALIGNED} \* 1024 + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
74
75 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
76 ln -s ${IMAGE_NAME}.rootfs.img ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.img
77}
78
diff --git a/classes/populate_b2qt_sdk.bbclass b/classes/populate_b2qt_sdk.bbclass
index a61d625..cce6669 100644
--- a/classes/populate_b2qt_sdk.bbclass
+++ b/classes/populate_b2qt_sdk.bbclass
@@ -23,7 +23,8 @@ inherit populate_sdk
23 23
24replace_sysroot_symlink() { 24replace_sysroot_symlink() {
25 SYMLINK_SYSROOT=$1 25 SYMLINK_SYSROOT=$1
26 for SOURCE in `find ${SYMLINK_SYSROOT} -type l` 26 SEARCH_FOLDER=$2
27 for SOURCE in `find ${SEARCH_FOLDER} -type l`
27 do 28 do
28 TARGET=`readlink -m "${SOURCE}"` 29 TARGET=`readlink -m "${SOURCE}"`
29 #check whether TARGET is inside the sysroot when not prepend the sysroot 30 #check whether TARGET is inside the sysroot when not prepend the sysroot
@@ -31,6 +32,7 @@ replace_sysroot_symlink() {
31 rm "${SOURCE}" 32 rm "${SOURCE}"
32 if [ -d "${TARGET}" ]; then 33 if [ -d "${TARGET}" ]; then
33 cp -r "${TARGET}" "${SOURCE}" 34 cp -r "${TARGET}" "${SOURCE}"
35 replace_sysroot_symlink ${SYMLINK_SYSROOT} ${SOURCE}
34 elif [ -f "${TARGET}" ]; then 36 elif [ -f "${TARGET}" ]; then
35 cp "${TARGET}" "${SOURCE}" 37 cp "${TARGET}" "${SOURCE}"
36 elif [ -e "${TARGET}" ]; then 38 elif [ -e "${TARGET}" ]; then
@@ -40,8 +42,8 @@ replace_sysroot_symlink() {
40} 42}
41 43
42fakeroot tar_sdk_sdkmingw32() { 44fakeroot tar_sdk_sdkmingw32() {
43 replace_sysroot_symlink ${SDK_OUTPUT}${SDKTARGETSYSROOT} 45 replace_sysroot_symlink ${SDK_OUTPUT}${SDKTARGETSYSROOT} ${SDK_OUTPUT}${SDKTARGETSYSROOT}
44 replace_sysroot_symlink ${SDK_OUTPUT}${SDKPATHNATIVE} 46 replace_sysroot_symlink ${SDK_OUTPUT}${SDKPATHNATIVE} ${SDK_OUTPUT}${SDKPATHNATIVE}
45 # Package it up 47 # Package it up
46 mkdir -p ${SDK_DEPLOY} 48 mkdir -p ${SDK_DEPLOY}
47 cd ${SDK_OUTPUT}/${SDKPATH} 49 cd ${SDK_OUTPUT}/${SDKPATH}
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass
index 16fb6fe..b6710be 100644
--- a/classes/qtquickcompiler.bbclass
+++ b/classes/qtquickcompiler.bbclass
@@ -20,16 +20,23 @@
20############################################################################## 20##############################################################################
21 21
22python __anonymous() { 22python __anonymous() {
23 provider = "qtquickcompiler"
24
23 sdk_path = d.getVar('QT_SDK_PATH', True) or "" 25 sdk_path = d.getVar('QT_SDK_PATH', True) or ""
24 if len(sdk_path) != 0: 26 if len(sdk_path) != 0:
25 bb.note("TODO: QtQuickCompiler not yet available for external builds") 27 qtquickcompiler_path = d.getVar('B2QTBASE', True) + "/recipes-qt/qt5-addons/qtquickcompiler-sdk"
26 else: 28 if not os.path.isdir(qtquickcompiler_path):
27 pn = d.getVar("PN", True) 29 bb.note("QtQuickCompiler not available")
28 if "toolchain-host" in pn: 30 return
29 d.appendVar('RDEPENDS_' + pn, " nativesdk-qtquickcompiler-tools")
30 if "toolchain-target" in pn:
31 d.appendVar('RDEPENDS_' + pn, " qtquickcompiler-dev")
32 else: 31 else:
33 d.appendVar('DEPENDS', " qtquickcompiler qtquickcompiler-native") 32 provider = "qtquickcompiler-sdk"
34 d.appendVar('EXTRA_QMAKEVARS_PRE', " CONFIG+=qtquickcompiler CONFIG+=no_qtquickcompiler_depend") 33
34 pn = d.getVar("PN", True)
35 if "toolchain-host" in pn:
36 d.appendVar('RDEPENDS_' + pn, " nativesdk-%s-tools" % provider)
37 if "toolchain-target" in pn:
38 d.appendVar('RDEPENDS_' + pn, " %s-dev" % provider)
39 else:
40 d.appendVar('DEPENDS', " %s %s-native" % (provider, provider))
41 d.appendVar('EXTRA_QMAKEVARS_PRE', " CONFIG+=qtquickcompiler CONFIG+=no_qtquickcompiler_depend")
35} 42}
diff --git a/conf/bblayers.conf.rpi.sample b/conf/bblayers.conf.rpi.sample
index 6b12ac5..3be5ea3 100644
--- a/conf/bblayers.conf.rpi.sample
+++ b/conf/bblayers.conf.rpi.sample
@@ -37,6 +37,7 @@ BBLAYERS ?= " \
37 ${BSPDIR}/sources/meta-openembedded/meta-initramfs \ 37 ${BSPDIR}/sources/meta-openembedded/meta-initramfs \
38 ${BSPDIR}/sources/meta-openembedded/meta-ruby \ 38 ${BSPDIR}/sources/meta-openembedded/meta-ruby \
39 ${BSPDIR}/sources/meta-b2qt \ 39 ${BSPDIR}/sources/meta-b2qt \
40 ${BSPDIR}/sources/meta-b2qt/meta-raspberrypi-extras \
40 ${BSPDIR}/sources/meta-mingw \ 41 ${BSPDIR}/sources/meta-mingw \
41 ${BSPDIR}/sources/meta-qt5 \ 42 ${BSPDIR}/sources/meta-qt5 \
42 " 43 "
diff --git a/conf/bblayers.conf.smx6.sample b/conf/bblayers.conf.smx6.sample
new file mode 100644
index 0000000..f604394
--- /dev/null
+++ b/conf/bblayers.conf.smx6.sample
@@ -0,0 +1,50 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
23# changes incompatibly
24LCONF_VERSION = "6"
25
26BBPATH = "${TOPDIR}"
27BBFILES ?= ""
28BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
29
30BBLAYERS ?= " \
31 ${BSPDIR}/sources/poky/meta \
32 ${BSPDIR}/sources/poky/meta-yocto \
33 ${BSPDIR}/sources/meta-fsl-arm \
34 ${BSPDIR}/sources/meta-fsl-arm-extra \
35 ${BSPDIR}/sources/meta-smx6 \
36 ${BSPDIR}/sources/meta-openembedded/meta-oe \
37 ${BSPDIR}/sources/meta-openembedded/meta-python \
38 ${BSPDIR}/sources/meta-openembedded/meta-networking \
39 ${BSPDIR}/sources/meta-openembedded/meta-initramfs \
40 ${BSPDIR}/sources/meta-openembedded/meta-ruby \
41 ${BSPDIR}/sources/meta-b2qt \
42 ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \
43 ${BSPDIR}/sources/meta-b2qt/meta-smx6-extras \
44 ${BSPDIR}/sources/meta-mingw \
45 ${BSPDIR}/sources/meta-qt5 \
46 "
47BBLAYERS_NON_REMOVABLE ?= " \
48 ${BSPDIR}/sources/poky/meta \
49 ${BSPDIR}/sources/poky/meta-yocto \
50 "
diff --git a/conf/distro/b2qt.conf b/conf/distro/b2qt.conf
index af7fcb3..7b56113 100644
--- a/conf/distro/b2qt.conf
+++ b/conf/distro/b2qt.conf
@@ -61,6 +61,10 @@ MACHINE_EXTRA_INSTALL ?= ""
61MACHINE_EXTRA_INSTALL_SDK ?= "" 61MACHINE_EXTRA_INSTALL_SDK ?= ""
62MACHINE_EXTRA_INSTALL_SDK_HOST ?= "" 62MACHINE_EXTRA_INSTALL_SDK_HOST ?= ""
63 63
64# Override mkspec for mingw build
65OE_QMAKE_PLATFORM_NATIVE_mingw32 = "win32-g++-oe"
66OE_QMAKE_PLATFORM_mingw32 = "win32-g++-oe"
67
64PACKAGE_EXCLUDE_COMPLEMENTARY ?= "qtquickcompiler" 68PACKAGE_EXCLUDE_COMPLEMENTARY ?= "qtquickcompiler"
65 69
66IMAGE_FSTYPES = "tar.gz conf" 70IMAGE_FSTYPES = "tar.gz conf"
diff --git a/conf/distro/include/apalis-imx6.conf b/conf/distro/include/apalis-imx6.conf
index 9938003..d5827db 100644
--- a/conf/distro/include/apalis-imx6.conf
+++ b/conf/distro/include/apalis-imx6.conf
@@ -37,6 +37,11 @@ BOOTFS_CONTENT = "\
37 flash_blk-${MACHINE}.img:flash_blk.img \ 37 flash_blk-${MACHINE}.img:flash_blk.img \
38 " 38 "
39BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy" 39BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy"
40BOOT_SCRIPTS += " \
41 u-boot-${MACHINE}.imx:u-boot.imx \
42 flash_mmc-${MACHINE}.img:flash_mmc.img \
43 flash_blk-${MACHINE}.img:flash_blk.img \
44 "
40 45
41MACHINE_EXTRA_INSTALL = "\ 46MACHINE_EXTRA_INSTALL = "\
42 libgal-mx6 \ 47 libgal-mx6 \
diff --git a/conf/distro/include/colibri-imx6.conf b/conf/distro/include/colibri-imx6.conf
index 6d1a2d5..4c9a923 100644
--- a/conf/distro/include/colibri-imx6.conf
+++ b/conf/distro/include/colibri-imx6.conf
@@ -32,7 +32,12 @@ BOOTFS_CONTENT = "\
32 ${KERNEL_IMAGETYPE}-imx6dl-colibri-cam-eval-v3.dtb:imx6dl-colibri-cam-eval-v3.dtb \ 32 ${KERNEL_IMAGETYPE}-imx6dl-colibri-cam-eval-v3.dtb:imx6dl-colibri-cam-eval-v3.dtb \
33 u-boot-${MACHINE}.imx:u-boot.imx \ 33 u-boot-${MACHINE}.imx:u-boot.imx \
34 " 34 "
35BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy" 35BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy"
36BOOT_SCRIPTS += " \
37 u-boot-${MACHINE}.imx:u-boot.imx \
38 flash_mmc-${MACHINE}.img:flash_mmc.img \
39 flash_blk-${MACHINE}.img:flash_blk.img \
40 "
36 41
37MACHINE_EXTRA_INSTALL = "\ 42MACHINE_EXTRA_INSTALL = "\
38 libgal-mx6 \ 43 libgal-mx6 \
diff --git a/conf/distro/include/colibri-vf.conf b/conf/distro/include/colibri-vf.conf
index f71d118..0d31f99 100644
--- a/conf/distro/include/colibri-vf.conf
+++ b/conf/distro/include/colibri-vf.conf
@@ -26,13 +26,18 @@ DEPLOY_CONF_NAME = "Toradex Colibri VF"
26IMAGE_FSTYPES += "ext3 sdcard" 26IMAGE_FSTYPES += "ext3 sdcard"
27 27
28BOOTFS_CONTENT = "\ 28BOOTFS_CONTENT = "\
29 u-boot-nand.imx:u-boot-nand.imx \ 29 u-boot-${MACHINE}.imx:u-boot.imx \
30 flash_mmc-${MACHINE}.img:flash_mmc.img \ 30 flash_mmc-${MACHINE}.img:flash_mmc.img \
31 flash_blk-${MACHINE}.img:flash_blk.img \ 31 flash_blk-${MACHINE}.img:flash_blk.img \
32 ${KERNEL_IMAGETYPE}-vf500-colibri-eval-v3.dtb:vf500-colibri-eval-v3.dtb \ 32 ${KERNEL_IMAGETYPE}-vf500-colibri-eval-v3.dtb:vf500-colibri-eval-v3.dtb \
33 ${KERNEL_IMAGETYPE}-vf610-colibri-eval-v3.dtb:vf610-colibri-eval-v3.dtb \ 33 ${KERNEL_IMAGETYPE}-vf610-colibri-eval-v3.dtb:vf610-colibri-eval-v3.dtb \
34 " 34 "
35BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy" 35BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy"
36BOOT_SCRIPTS += " \
37 u-boot-${MACHINE}.imx:u-boot.imx \
38 flash_mmc-${MACHINE}.img:flash_mmc.img \
39 flash_blk-${MACHINE}.img:flash_blk.img \
40 "
36 41
37DEFAULTTUNE = "armv7ahf-neon" 42DEFAULTTUNE = "armv7ahf-neon"
38 43
diff --git a/conf/distro/include/nuc.conf b/conf/distro/include/nuc.conf
index fe04572..8a41388 100644
--- a/conf/distro/include/nuc.conf
+++ b/conf/distro/include/nuc.conf
@@ -25,13 +25,17 @@ DISTRO_FEATURES_DEFAULT += "wayland weston"
25 25
26DISTRO_FEATURES_remove = "usbgadget" 26DISTRO_FEATURES_remove = "usbgadget"
27 27
28IMAGE_FSTYPES += " hddimg" 28IMAGE_CLASSES += "image_dd_efi"
29IMAGE_FSTYPES += "ext3 dd"
30
31INITRAMFS_IMAGE = "initramfs-basic"
29 32
30SYSVINIT_ENABLED_GETTYS = "1" 33SYSVINIT_ENABLED_GETTYS = "1"
31 34
32MACHINE_EXTRA_INSTALL = "\ 35MACHINE_EXTRA_INSTALL = "\
33 wayland \ 36 wayland \
34 mesa-megadriver \ 37 mesa-megadriver \
38 grub-efi-config \
35 " 39 "
36 40
37MACHINE_EXTRA_INSTALL_SDK = " \ 41MACHINE_EXTRA_INSTALL_SDK = " \
diff --git a/conf/distro/include/raspberrypi2.conf b/conf/distro/include/raspberrypi2.conf
index 7e4c057..040ea9b 100644
--- a/conf/distro/include/raspberrypi2.conf
+++ b/conf/distro/include/raspberrypi2.conf
@@ -46,3 +46,7 @@ module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1"
46GPU_MEM = "256" 46GPU_MEM = "256"
47# video camera support 47# video camera support
48VIDEO_CAMERA = "1" 48VIDEO_CAMERA = "1"
49RPI_FT5604 = "1"
50
51KERNEL_DEVICETREE += "overlays/rpi-ft5406-overlay.dtb"
52MACHINE_FEATURES += "pitft"
diff --git a/conf/distro/include/smarc-samx6i.conf b/conf/distro/include/smarc-samx6i.conf
index 23bc85f..d3ce2c9 100644
--- a/conf/distro/include/smarc-samx6i.conf
+++ b/conf/distro/include/smarc-samx6i.conf
@@ -45,3 +45,6 @@ MACHINE_EXTRA_INSTALL_SDK += " \
45 " 45 "
46 46
47KERNEL_MODULE_AUTOLOAD += "mxc_v4l2_capture" 47KERNEL_MODULE_AUTOLOAD += "mxc_v4l2_capture"
48
49BBMASK ?= " "
50BBMASK .= "|meta-smx6/recipes-qt"
diff --git a/conf/distro/include/tibidabo.conf b/conf/distro/include/tibidabo.conf
index 19399c6..6f47970 100644
--- a/conf/distro/include/tibidabo.conf
+++ b/conf/distro/include/tibidabo.conf
@@ -31,6 +31,12 @@ BOOTFS_CONTENT = "\
31 " 31 "
32BOOTFS_DEPENDS = "tibidabo-bootscript-sd:do_deploy virtual/kernel:do_deploy" 32BOOTFS_DEPENDS = "tibidabo-bootscript-sd:do_deploy virtual/kernel:do_deploy"
33 33
34# mx6 GPU libraries
35PREFERRED_PROVIDER_virtual/egl_mx6 = "gpu-viv-bin-mx6q"
36PREFERRED_PROVIDER_virtual/libgles1_mx6q = "gpu-viv-bin-mx6q"
37PREFERRED_PROVIDER_virtual/libgles2_mx6q = "gpu-viv-bin-mx6q"
38PREFERRED_PROVIDER_virtual/libgl_mx6q = "gpu-viv-bin-mx6q"
39
34MACHINE_EXTRA_INSTALL = "\ 40MACHINE_EXTRA_INSTALL = "\
35 libgal-mx6 \ 41 libgal-mx6 \
36 libegl-mx6 \ 42 libegl-mx6 \
diff --git a/conf/local.conf.sample b/conf/local.conf.sample
index 7aa0dc8..0fdcdb7 100644
--- a/conf/local.conf.sample
+++ b/conf/local.conf.sample
@@ -102,7 +102,7 @@ DL_DIR ?= "${TOPDIR}/../downloads"
102# 102#
103# The default is a sstate-cache directory under TOPDIR. 103# The default is a sstate-cache directory under TOPDIR.
104# 104#
105#SSTATE_DIR ?= "${TOPDIR}/sstate-cache" 105SSTATE_DIR ?= "${TOPDIR}/../sstate-cache"
106 106
107# 107#
108# Where to place the build output 108# Where to place the build output
@@ -252,7 +252,7 @@ BB_DISKMON_DIRS = "\
252#SSTATE_MIRRORS ?= "\ 252#SSTATE_MIRRORS ?= "\
253#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ 253#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
254#file://.* file:///some/local/dir/sstate/PATH" 254#file://.* file:///some/local/dir/sstate/PATH"
255SSTATE_MIRRORS ?= "file://.* http://yocto-cache.ci.local/sstate-cache/PATH" 255SSTATE_MIRRORS ?= "file://.* http://yocto-cache.ci.local/sstate-caches/${DISTRO_CODENAME}/PATH"
256 256
257PREMIRRORS = "\ 257PREMIRRORS = "\
258ftp://.*/.* http://yocto-cache.ci.local/sources/ \n \ 258ftp://.*/.* http://yocto-cache.ci.local/sources/ \n \
diff --git a/meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
new file mode 100644
index 0000000..0f39891
--- /dev/null
+++ b/meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
@@ -0,0 +1,22 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22PACKAGECONFIG_remove = "gles2"
diff --git a/meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-imx_0.11.1.bbappend b/meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-imx_0.11.1.bbappend
new file mode 100644
index 0000000..df90624
--- /dev/null
+++ b/meta-architech-extras/recipes/gstreamer/gstreamer1.0-plugins-imx_0.11.1.bbappend
@@ -0,0 +1,22 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22DEPENDS_remove = "imx-gpu-viv"
diff --git a/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb b/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb
index 8a2fd54..69adc4f 100644
--- a/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb
+++ b/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb
@@ -24,15 +24,35 @@ SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \
24RDEPENDS_kernel-base = "" 24RDEPENDS_kernel-base = ""
25 25
26do_configure_prepend() { 26do_configure_prepend() {
27 # FunctionFS for adb 27
28 echo "CONFIG_USB_FUNCTIONFS=m" >> ${WORKDIR}/defconfig 28cat <<EOF >> ${WORKDIR}/defconfig
29 29
30 # Enable USB serial support 30# FunctionFS for adb
31 echo "CONFIG_USB_SERIAL=m" >> ${WORKDIR}/defconfig 31CONFIG_USB_FUNCTIONFS=m
32 echo "CONFIG_USB_SERIAL_GENERIC=y" >> ${WORKDIR}/defconfig 32
33 echo "CONFIG_USB_SERIAL_FTDI_SIO=m" >> ${WORKDIR}/defconfig 33# Enable USB serial support
34 echo "CONFIG_USB_SERIAL_PL2303=m" >> ${WORKDIR}/defconfig 34CONFIG_USB_SERIAL=m
35 echo "CONFIG_USB_ACM=m" >> ${WORKDIR}/defconfig 35CONFIG_USB_SERIAL_GENERIC=y
36CONFIG_USB_SERIAL_FTDI_SIO=m
37CONFIG_USB_SERIAL_PL2303=m
38CONFIG_USB_ACM=m
39
40# Control group support
41CONFIG_CGROUPS=y
42
43# Open by fhandle syscalls
44CONFIG_FHANDLE=y
45CONFIG_EXPORTFS=y
46
47# Namespaces support
48CONFIG_NAMESPACES=y
49CONFIG_UTS_NS=y
50CONFIG_IPC_NS=y
51CONFIG_USER_NS=y
52CONFIG_PID_NS=y
53CONFIG_NET_NS=y
54
55EOF
36} 56}
37 57
38# bbappend in meta-tibidabo still tries to use PRINC, set to -1 to prevent errors 58# bbappend in meta-tibidabo still tries to use PRINC, set to -1 to prevent errors
diff --git a/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend b/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend
index bf2a850..a945ea8 100644
--- a/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend
+++ b/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend
@@ -31,3 +31,10 @@ SRC_URI += "\
31INSANE_SKIP_${PN} = "installed-vs-shipped" 31INSANE_SKIP_${PN} = "installed-vs-shipped"
32KERNEL_IMAGETYPE = "zImage" 32KERNEL_IMAGETYPE = "zImage"
33B = "${S}" 33B = "${S}"
34
35do_configure_prepend() {
36 sed -e '/CONFIG_USB_FUNCTIONFS_ETH=/d' \
37 -e '/CONFIG_USB_FUNCTIONFS_RNDIS=/d' \
38 -i ${WORKDIR}/defconfig
39 echo "CONFIG_FHANDLE=y" >> ${WORKDIR}/defconfig
40}
diff --git a/meta-nuc-extras/classes/image_dd_efi.bbclass b/meta-nuc-extras/classes/image_dd_efi.bbclass
new file mode 100644
index 0000000..7bbff62
--- /dev/null
+++ b/meta-nuc-extras/classes/image_dd_efi.bbclass
@@ -0,0 +1,45 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22DESCRIPTION = "Extends image_dd class to boot via GRUB-EFI and initramfs."
23LICENSE = "CLOSED"
24
25inherit image_dd
26
27EXTRA_IMAGECMD_ext3 += "-L rootfs"
28IMAGE_DEPENDS_ext3 += "initramfs-basic:do_rootfs"
29
30IMAGE_CMD_ext3_prepend() {
31
32 # https://www.kernel.org/doc/Documentation/x86/early-microcode.txt
33 microcode="${@bb.utils.contains('MACHINE_FEATURES', 'intel-ucode', '${DEPLOY_DIR_IMAGE}/microcode.cpio ', '', d)}"
34 cat ${microcode} ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz > ${IMAGE_ROOTFS}/boot/initramfs
35 chmod 0644 ${IMAGE_ROOTFS}/boot/initramfs
36}
37
38do_populate_boot() {
39
40 mkdir -p ${WORKDIR}/EFI/BOOT/
41 # Path where EFI firmware searches for EFI executable
42 cp ${DEPLOY_DIR_IMAGE}/bootx64.efi ${WORKDIR}/EFI/BOOT/
43 mcopy -s -i ${WORKDIR}/boot.img ${WORKDIR}/EFI ::/EFI
44}
45
diff --git a/meta-nuc-extras/recipes/grub/grub-efi/grub.cfg b/meta-nuc-extras/recipes/grub/grub-efi/grub.cfg
new file mode 100644
index 0000000..ca53537
--- /dev/null
+++ b/meta-nuc-extras/recipes/grub/grub-efi/grub.cfg
@@ -0,0 +1,10 @@
1# Created by meta-b2qt
2serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
3default=boot
4timeout=10
5
6menuentry 'boot' {
7 linux /boot/bzImage root=LABEL=rootfs
8 initrd /boot/initramfs
9}
10
diff --git a/meta-nuc-extras/recipes/grub/grub-efi_2.00.bbappend b/meta-nuc-extras/recipes/grub/grub-efi_2.00.bbappend
new file mode 100644
index 0000000..d002240
--- /dev/null
+++ b/meta-nuc-extras/recipes/grub/grub-efi_2.00.bbappend
@@ -0,0 +1,40 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
23SRC_URI += "file://grub.cfg"
24
25do_deploy_prepend() {
26
27cat > ${WORKDIR}/cfg <<EOF
28search.file /boot/grub2/grub.cfg root
29set prefix=/boot/grub2
30EOF
31}
32
33do_install_append() {
34
35 install -d ${D}/boot/grub2/
36 install -m 644 ${WORKDIR}/grub.cfg ${D}/boot/grub2/
37}
38
39PACKAGES += "${PN}-config"
40FILES_${PN}-config = "/boot/grub2/"
diff --git a/meta-raspberrypi-extras/conf/layer.conf b/meta-raspberrypi-extras/conf/layer.conf
new file mode 100644
index 0000000..641e0f6
--- /dev/null
+++ b/meta-raspberrypi-extras/conf/layer.conf
@@ -0,0 +1,32 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22# We have a conf and classes directory, append to BBPATH
23BBPATH .= ":${LAYERDIR}"
24
25# We have a recipes directory, add to BBFILES
26BBFILES += "${LAYERDIR}/recipes*/*/*.bb \
27 ${LAYERDIR}/recipes*/*/*.bbappend \
28 "
29
30BBFILE_COLLECTIONS += "b2qt_rpi"
31BBFILE_PATTERN_b2qt_rpi := "^${LAYERDIR}/"
32BBFILE_PRIORITY_b2qt_rpi = "20"
diff --git a/meta-raspberrypi-extras/recipes/bootfiles/rpi-config_git.bbappend b/meta-raspberrypi-extras/recipes/bootfiles/rpi-config_git.bbappend
new file mode 100644
index 0000000..b711ab5
--- /dev/null
+++ b/meta-raspberrypi-extras/recipes/bootfiles/rpi-config_git.bbappend
@@ -0,0 +1,27 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22do_deploy_append() {
23 if [ "${RPI_FT5604}" = "1" ]; then
24 echo "# Enable rpi-ft5604 touch" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
25 echo "dtoverlay=rpi-ft5406" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
26 fi
27}
diff --git a/meta-smx6-extras/conf/layer.conf b/meta-smx6-extras/conf/layer.conf
new file mode 100644
index 0000000..097fefe
--- /dev/null
+++ b/meta-smx6-extras/conf/layer.conf
@@ -0,0 +1,37 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22# We have a conf and classes directory, append to BBPATH
23BBPATH .= ":${LAYERDIR}"
24
25# We have a recipes directory, add to BBFILES
26BBFILES += "${LAYERDIR}/recipes*/*/*.bb \
27 ${LAYERDIR}/recipes*/*/*.bbappend \
28 "
29
30BBFILE_COLLECTIONS += "b2qt_smx6"
31BBFILE_PATTERN_b2qt_smx6 := "^${LAYERDIR}/"
32BBFILE_PRIORITY_b2qt_smx6 = "20"
33
34# meta-smx6 depends on fsl-demos, but that's not needed
35LAYERDEPENDS_smx6 = ""
36# meta-smx6 layer.conf modifies qtbase PACKAGECONFIG
37PACKAGECONFIG_remove_pn-qtbase = "examples"
diff --git a/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend b/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend
new file mode 100644
index 0000000..00f3c11
--- /dev/null
+++ b/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend
@@ -0,0 +1,26 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22do_configure_prepend() {
23 echo "CONFIG_NAMESPACES=y" >> ${WORKDIR}/defconfig
24 echo "CONFIG_FHANDLE=y" >> ${WORKDIR}/defconfig
25 echo "CONFIG_CGROUPS=y" >> ${WORKDIR}/defconfig
26}
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb
index 3d63f6b..337d57d 100644
--- a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb
+++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb
@@ -29,6 +29,8 @@ SRC_URI = " \
29 file://flash_blk.scr \ 29 file://flash_blk.scr \
30 " 30 "
31 31
32S = "${WORKDIR}"
33
32inherit deploy 34inherit deploy
33 35
34do_mkimage () { 36do_mkimage () {
@@ -62,4 +64,4 @@ do_install[noexec] = "1"
62do_populate_sysroot[noexec] = "1" 64do_populate_sysroot[noexec] = "1"
63 65
64PACKAGE_ARCH = "${MACHINE_ARCH}" 66PACKAGE_ARCH = "${MACHINE_ARCH}"
65COMPATIBLE_MACHINE = "(apalis-imx6|colibri-vf)" 67COMPATIBLE_MACHINE = "(apalis-imx6|colibri-vf|colibri-imx6)"
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr
index 5e31380..be8ec8d 100644
--- a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr
+++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr
@@ -1,2 +1,2 @@
1setenv update_uboot 'fatload ${interface} 0:1 ${loadaddr} u-boot-nand.imx && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot' 1setenv update_uboot 'fatload ${interface} 0:1 ${loadaddr} u-boot.imx && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot'
2echo 'enter "run update_uboot" to update the uboot' 2echo 'enter "run update_uboot" to update the uboot'
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-imx6-enable-sdboot-by-default.patch b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-imx6-enable-sdboot-by-default.patch
new file mode 100644
index 0000000..0743128
--- /dev/null
+++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-imx6-enable-sdboot-by-default.patch
@@ -0,0 +1,36 @@
1From 10ebeba59e6fd25352aa44ecd85913126ec45afe Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@theqtcompany.com>
3Date: Wed, 24 Feb 2016 15:39:52 +0200
4Subject: [PATCH] colibri imx6: enable sdboot by default
5
6remove console from tty1
7---
8 include/configs/colibri_imx6.h | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-)
10
11diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h
12index c545334..eb0dfa9 100644
13--- a/include/configs/colibri_imx6.h
14+++ b/include/configs/colibri_imx6.h
15@@ -242,7 +242,8 @@
16
17 #define FDT_FILE "imx6dl-colibri-eval-v3.dtb"
18 #define CONFIG_EXTRA_ENV_SETTINGS \
19- "bootcmd=run emmcboot ; echo ; echo emmcboot failed ; " \
20+ "bootcmd=run sdboot ; echo ; echo sdboot failed ; " \
21+ "run emmcboot ; echo ; echo emmcboot failed ; " \
22 "run nfsboot ; echo ; echo nfsboot failed ; " \
23 "usb start ;" \
24 "setenv stdout serial,vga ; setenv stdin serial,usbkbd\0" \
25@@ -261,7 +262,7 @@
26 "setsdupdate=setenv interface mmc; setenv drive 1; mmc rescan; " \
27 "load ${interface} ${drive}:1 ${kernel_addr_r} flash_blk.img\0" \
28 "setup=setenv setupargs fec_mac=${ethaddr} " \
29- "consoleblank=0 no_console_suspend=1 console=tty1 " \
30+ "consoleblank=0 no_console_suspend=1 " \
31 "console=${console},${baudrate}n8\0 " \
32 "setupdate=run setsdupdate || run setusbupdate || run setethupdate;" \
33 " source ${kernel_addr_r}\0" \
34--
351.9.1
36
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch
deleted file mode 100644
index bae71d5..0000000
--- a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 878f506e43f40c2667e9e5ae82741d32fc653cac Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@theqtcompany.com>
3Date: Thu, 28 May 2015 09:06:54 +0300
4Subject: [PATCH] colibri vf: enable sdboot by default
5
6Run sdboot first and remove console message from tty1
7---
8 include/configs/colibri_vf.h | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
12index 06caabd..fb9fe41 100644
13--- a/include/configs/colibri_vf.h
14+++ b/include/configs/colibri_vf.h
15@@ -174,7 +174,7 @@
16 "ubifsload ${fdt_addr_r} /boot/${soc}-colibri-${fdt_board}.dtb && " \
17 "bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
18
19-#define CONFIG_BOOTCOMMAND "run ubiboot; run sdboot; run nfsboot"
20+#define CONFIG_BOOTCOMMAND "run sdboot; run ubiboot; run nfsboot"
21
22 #define DFU_ALT_NAND_INFO "vf-bcb part 0,1;u-boot part 0,2;ubi part 0,4"
23
24@@ -187,7 +187,7 @@
25 "defargs=\0" \
26 "console=ttyLP0\0" \
27 "setup=setenv setupargs " \
28- "console=tty1 console=${console}" \
29+ "console=${console}" \
30 ",${baudrate}n8 ${memargs} consoleblank=0\0" \
31 "setsdupdate=mmc rescan && setenv interface mmc && " \
32 "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
33--
341.9.1
35
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend
index 905619a..1165713 100644
--- a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend
+++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend
@@ -20,9 +20,7 @@
20############################################################################## 20##############################################################################
21 21
22FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 22FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
23SRC_URI_append_apalis-imx6 = " \ 23SRC_URI += " \
24 file://0001-Update-default-args-for-apalis-imx6.patch \ 24 file://0001-Update-default-args-for-apalis-imx6.patch \
25 " 25 file://0001-colibri-imx6-enable-sdboot-by-default.patch \
26SRC_URI_append_colibri-vf = " \
27 file://0001-colibri-vf-enable-sdboot-by-default.patch \
28 " 26 "
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch b/meta-toradex-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch
new file mode 100644
index 0000000..b54a4ae
--- /dev/null
+++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch
@@ -0,0 +1,25 @@
1From f480a948551b0e5592d93cb7a5dc1653de900909 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@theqtcompany.com>
3Date: Wed, 24 Feb 2016 16:01:33 +0200
4Subject: [PATCH] colibri vf: remove console from tty1
5
6---
7 include/configs/colibri_vf.h | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
11index b870812..0726fc5 100644
12--- a/include/configs/colibri_vf.h
13+++ b/include/configs/colibri_vf.h
14@@ -202,7 +202,7 @@
15 "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
16 "source ${loadaddr}\0" \
17 "setup=setenv setupargs " \
18- "console=tty1 console=${console}" \
19+ "console=${console}" \
20 ",${baudrate}n8 ${memargs} consoleblank=0\0" \
21 "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \
22 "setusbupdate=usb start && setenv interface usb && " \
23--
241.9.1
25
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex_2015.04.bbappend b/meta-toradex-extras/recipes/u-boot/u-boot-toradex_2015.04.bbappend
new file mode 100644
index 0000000..4e0c623
--- /dev/null
+++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex_2015.04.bbappend
@@ -0,0 +1,25 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
23SRC_URI += " \
24 file://0001-colibri-vf-remove-console-from-tty1.patch \
25 "
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller.bb b/recipes-qt/b2qt-addons/b2qt-appcontroller.bb
index ebf585d..b083a4f 100644
--- a/recipes-qt/b2qt-addons/b2qt-appcontroller.bb
+++ b/recipes-qt/b2qt-addons/b2qt-appcontroller.bb
@@ -30,8 +30,9 @@ SRC_URI = " \
30 file://appcontroller.conf \ 30 file://appcontroller.conf \
31 " 31 "
32 32
33SRCREV = "af3ab8ec0213a40d90f3d58a8a65a944b0cd753e" 33SRCREV = "1e3c96e0e4f28a072c835775f7fdc310eb3b4f28"
34BRANCH = "5.6" 34BRANCH = "5.6"
35PV = "5.6+git${SRCPV}"
35 36
36S = "${WORKDIR}/git" 37S = "${WORKDIR}/git"
37 38
diff --git a/recipes-qt/b2qt-addons/b2qt-demos.bb b/recipes-qt/b2qt-addons/b2qt-demos.bb
index 9270a0f..55b7f98 100644
--- a/recipes-qt/b2qt-addons/b2qt-demos.bb
+++ b/recipes-qt/b2qt-addons/b2qt-demos.bb
@@ -34,12 +34,12 @@ SRC_URI = " \
34 https://s3-eu-west-1.amazonaws.com/qt-files/examples/Videos/Qt+World+Summit+2015+Recap.mp4;name=video2 \ 34 https://s3-eu-west-1.amazonaws.com/qt-files/examples/Videos/Qt+World+Summit+2015+Recap.mp4;name=video2 \
35 " 35 "
36 36
37PV = "1.0+git${SRCPV}" 37PV = "5.6+git${SRCPV}"
38 38
39BRANCH = "5.6" 39BRANCH = "5.6"
40BROWSER_BRANCH = "dev" 40BROWSER_BRANCH = "dev"
41QT_BRANCH = "5.6" 41QT_BRANCH = "5.6"
42SRCREV_demos = "d9d77da89ac7fea96fae940b74c0dfc2225d0b52" 42SRCREV_demos = "1e2d7ade9c4bb6bee6aca8f716844b4d66d6b033"
43SRCREV_qtcanvas3d = "5a17c4ca0552c9f4e6b5646f0cee2b21a55c3d18" 43SRCREV_qtcanvas3d = "5a17c4ca0552c9f4e6b5646f0cee2b21a55c3d18"
44SRCREV_qtquickcontrols = "fc9c57cf8b66bafbcaa6957bb22293047aa3d9df" 44SRCREV_qtquickcontrols = "fc9c57cf8b66bafbcaa6957bb22293047aa3d9df"
45SRCREV_qtwebbrowser = "c86bb8a400f79be205025598310926df5d01c7bc" 45SRCREV_qtwebbrowser = "c86bb8a400f79be205025598310926df5d01c7bc"
@@ -59,14 +59,14 @@ do_install_append() {
59 # we only need plugins from the demos 59 # we only need plugins from the demos
60 rm -rf ${D}/data/user/camera 60 rm -rf ${D}/data/user/camera
61 rm -rf ${D}/data/user/sensorexplorer 61 rm -rf ${D}/data/user/sensorexplorer
62 rm -rf ${D}/data/user/qtwebbrowser
62 63
63 # we need all qml and content files 64 # we need all qml and content files
64 cp -r ${S}/* ${D}/data/user/qt/ 65 cp -r ${S}/* ${D}/data/user/qt/
65 66
66 # but none of the source files 67 # but none of the source files
67 find ${D}/data/user/qt/ \( -name '*.cpp' -or -name '*.h' -or -name '*.pro' \) -delete 68 find ${D}/data/user/qt/ \( -name '*.cpp' -or -name '*.h' -or -name '*.pro' \) -delete
68 rm -rf ${D}/data/user/qt/qtwebbrowser/tqtc-qtwebbrowser/.git 69 rm -rf ${D}/data/user/qt/qtwebbrowser/tqtc-qtwebbrowser
69 rm -rf ${D}/data/user/qt/qtwebbrowser/tqtc-qtwebbrowser/mockups
70 70
71 if [ -d ${WORKDIR}/git/images ]; then 71 if [ -d ${WORKDIR}/git/images ]; then
72 install -d 0755 ${D}/data/images 72 install -d 0755 ${D}/data/images
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb b/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb
index 4b92c52..7f4b083 100644
--- a/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb
+++ b/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb
@@ -33,6 +33,7 @@ SRC_URI = " \
33 33
34SRCREV = "ab4a9f13831f44f3dcd375fa17ed7e102647febe" 34SRCREV = "ab4a9f13831f44f3dcd375fa17ed7e102647febe"
35BRANCH = "master" 35BRANCH = "master"
36PV = "1.0+git${SRCPV}"
36 37
37S = "${WORKDIR}/git/src/helperlibs/proxy" 38S = "${WORKDIR}/git/src/helperlibs/proxy"
38 39
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb b/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb
index b3e95e4..7b51ece 100644
--- a/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb
+++ b/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb
@@ -33,6 +33,7 @@ SRC_URI = " \
33 33
34SRCREV = "ab4a9f13831f44f3dcd375fa17ed7e102647febe" 34SRCREV = "ab4a9f13831f44f3dcd375fa17ed7e102647febe"
35BRANCH = "master" 35BRANCH = "master"
36PV = "1.0+git${SRCPV}"
36 37
37S = "${WORKDIR}/git/src/helperlibs/sdcarddaemon" 38S = "${WORKDIR}/git/src/helperlibs/sdcarddaemon"
38 39
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb b/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb
index 7b6f2c0..3b1da08 100644
--- a/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb
+++ b/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb
@@ -31,6 +31,7 @@ SRC_URI = " \
31 31
32SRCREV = "ab4a9f13831f44f3dcd375fa17ed7e102647febe" 32SRCREV = "ab4a9f13831f44f3dcd375fa17ed7e102647febe"
33BRANCH = "master" 33BRANCH = "master"
34PV = "1.0+git${SRCPV}"
34 35
35EXTRA_QMAKEVARS_PRE += "CONFIG+=force_independent" 36EXTRA_QMAKEVARS_PRE += "CONFIG+=force_independent"
36 37
diff --git a/recipes-qt/b2qt-addons/b2qt-launcher.bb b/recipes-qt/b2qt-addons/b2qt-launcher.bb
index b73b477..ea85c86 100644
--- a/recipes-qt/b2qt-addons/b2qt-launcher.bb
+++ b/recipes-qt/b2qt-addons/b2qt-launcher.bb
@@ -32,8 +32,9 @@ SRC_URI = " \
32 file://b2qt.service \ 32 file://b2qt.service \
33 " 33 "
34 34
35SRCREV = "b92077ac6962c9f42f778facbdea4a81affb22c1" 35SRCREV = "f5aaf9297648b397ee8fecb0a494b4774e130422"
36BRANCH = "5.6" 36BRANCH = "5.6"
37PV = "5.6+git${SRCPV}"
37 38
38S = "${WORKDIR}/git" 39S = "${WORKDIR}/git"
39 40
diff --git a/recipes-qt/b2qt-addons/b2qt-utils.bb b/recipes-qt/b2qt-addons/b2qt-utils.bb
index 00efce9..f43e450 100644
--- a/recipes-qt/b2qt-addons/b2qt-utils.bb
+++ b/recipes-qt/b2qt-addons/b2qt-utils.bb
@@ -29,8 +29,9 @@ SRC_URI = " \
29 git://codereview.qt-project.org/tqtc-boot2qt/utils;branch=${BRANCH};protocol=ssh;sdk-uri=5.6/Boot2Qt/sources/b2qt-utils \ 29 git://codereview.qt-project.org/tqtc-boot2qt/utils;branch=${BRANCH};protocol=ssh;sdk-uri=5.6/Boot2Qt/sources/b2qt-utils \
30 " 30 "
31 31
32SRCREV = "2b81f8dbc97b446b33fb67e3196a8726ed195008" 32SRCREV = "a34cacb1a239dff4033b6beffd811b35db7c339f"
33BRANCH = "5.6" 33BRANCH = "5.6"
34PV = "5.6+git${SRCPV}"
34 35
35S = "${WORKDIR}/git" 36S = "${WORKDIR}/git"
36 37
diff --git a/recipes-qt/b2qt-addons/democompositor_git.bb b/recipes-qt/b2qt-addons/democompositor_git.bb
index 0d2c3db..314e491 100644
--- a/recipes-qt/b2qt-addons/democompositor_git.bb
+++ b/recipes-qt/b2qt-addons/democompositor_git.bb
@@ -26,11 +26,12 @@ LIC_FILES_CHKSUM = "file://main.cpp;md5=56e7f80d726792929d5d089852de7cde;beginli
26inherit qmake5 sdk-sources 26inherit qmake5 sdk-sources
27 27
28SRC_URI = " \ 28SRC_URI = " \
29 git://codereview.qt-project.org/tqtc-boot2qt/demos;branch=${BRANCH};protocol=ssh;sdk-uri=5.5/Boot2Qt/sources/b2qt-demos \ 29 git://codereview.qt-project.org/tqtc-boot2qt/demos;branch=${BRANCH};protocol=ssh;sdk-uri=5.6/Boot2Qt/sources/b2qt-demos \
30 " 30 "
31 31
32SRCREV = "b6217fb2bb7702324da2a9f3f45be4a60e6ffe6c" 32SRCREV = "b6217fb2bb7702324da2a9f3f45be4a60e6ffe6c"
33BRANCH = "5.6" 33BRANCH = "5.6"
34PV = "5.6+git${SRCPV}"
34 35
35S = "${WORKDIR}/git/wayland/democompositor/" 36S = "${WORKDIR}/git/wayland/democompositor/"
36 37
diff --git a/recipes-qt/packagegroups/packagegroup-b2qt-embedded-addons.bb b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-addons.bb
index 7f0867e..c784787 100644
--- a/recipes-qt/packagegroups/packagegroup-b2qt-embedded-addons.bb
+++ b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-addons.bb
@@ -31,5 +31,5 @@ RDEPENDS_${PN} += " \
31 b2qt-utils \ 31 b2qt-utils \
32 b2qt-launcher \ 32 b2qt-launcher \
33 b2qt-demos \ 33 b2qt-demos \
34 democompositor \ 34 ${@base_contains("DISTRO_FEATURES", "wayland", "democompositor", "", d)} \
35 " 35 "
diff --git a/recipes-qt/qt5-addons/qtcharts_git.bb b/recipes-qt/qt5-addons/qtcharts_git.bb
index c6c1997..090276b 100644
--- a/recipes-qt/qt5-addons/qtcharts_git.bb
+++ b/recipes-qt/qt5-addons/qtcharts_git.bb
@@ -26,7 +26,7 @@ LIC_FILES_CHKSUM = "file://src/charts/qchart.h;md5=a712f087e2146153f45db2e8eb1a3
26inherit qt5-module qtquickcompiler 26inherit qt5-module qtquickcompiler
27require recipes-qt/qt5/qt5-git.inc 27require recipes-qt/qt5/qt5-git.inc
28 28
29QT_MODULE_BRANCH = "5.6" 29QT_MODULE_BRANCH = "5.6.0"
30SRCREV = "672ea1cb191f9d386ce32b96102fe638fcae5fba" 30SRCREV = "f4ba2fb9840279f986bd11ab6860e6a3125d9599"
31 31
32DEPENDS = "qtbase qtdeclarative qtmultimedia" 32DEPENDS = "qtbase qtdeclarative qtmultimedia"
diff --git a/recipes-qt/qt5-addons/qtdatavis3d_git.bb b/recipes-qt/qt5-addons/qtdatavis3d_git.bb
index 155c8f0..a148bdc 100644
--- a/recipes-qt/qt5-addons/qtdatavis3d_git.bb
+++ b/recipes-qt/qt5-addons/qtdatavis3d_git.bb
@@ -26,7 +26,6 @@ LIC_FILES_CHKSUM = "file://src/datavisualization/global/qdatavisualizationglobal
26inherit qt5-module 26inherit qt5-module
27require recipes-qt/qt5/qt5-git.inc 27require recipes-qt/qt5/qt5-git.inc
28 28
29QT_MODULE_BRANCH = "5.6"
30SRCREV = "4f23f0f984ef2ee96d5baa3a74a465d6734381ba" 29SRCREV = "4f23f0f984ef2ee96d5baa3a74a465d6734381ba"
31 30
32DEPENDS += "qtbase qtdeclarative qtmultimedia" 31DEPENDS += "qtbase qtdeclarative qtmultimedia"
diff --git a/recipes-qt/qt5-addons/qtdeclarative-render2d_git.bb b/recipes-qt/qt5-addons/qtdeclarative-render2d_git.bb
index 38de1a5..5162519 100644
--- a/recipes-qt/qt5-addons/qtdeclarative-render2d_git.bb
+++ b/recipes-qt/qt5-addons/qtdeclarative-render2d_git.bb
@@ -26,7 +26,6 @@ LIC_FILES_CHKSUM = "file://src/plugins/scenegraph/softwarecontext/softwarelayer.
26inherit qt5-module 26inherit qt5-module
27require recipes-qt/qt5/qt5-git.inc 27require recipes-qt/qt5/qt5-git.inc
28 28
29QT_MODULE_BRANCH = "5.6"
30SRCREV = "3a22766e8c4ea39836f197552e92b3cc78e77f62" 29SRCREV = "3a22766e8c4ea39836f197552e92b3cc78e77f62"
31 30
32DEPENDS = "qtbase qtdeclarative" 31DEPENDS = "qtbase qtdeclarative"
diff --git a/recipes-qt/qt5-addons/qtquickcompiler-sdk.bb b/recipes-qt/qt5-addons/qtquickcompiler-sdk.bb
new file mode 100644
index 0000000..04a0b3a
--- /dev/null
+++ b/recipes-qt/qt5-addons/qtquickcompiler-sdk.bb
@@ -0,0 +1,58 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22DESCRIPTION = "Qt Quick Compiler using prebuilt binaries from Qt SDK"
23LICENSE = "QtEnterprise"
24LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9"
25
26inherit allarch qmake5_paths
27
28DEPENDS = "qtbase"
29
30S = "${WORKDIR}"
31
32QT_VERSION = "5.6"
33
34NATIVESDK_BINARY = "qtquickcompiler"
35NATIVESDK_BINARY_mingw32 = "qtquickcompiler.exe"
36
37do_install() {
38 install -d ${D}${OE_QMAKE_PATH_ARCHDATA}/mkspecs/features
39 install -m 0755 ${THISDIR}/qtquickcompiler-sdk/mkspecs/features/qtquickcompiler.prf ${D}${OE_QMAKE_PATH_ARCHDATA}/mkspecs/features
40 install -d ${D}${OE_QMAKE_PATH_ARCHDATA}/cmake/Qt5QuickCompiler
41 install -m 0644 ${THISDIR}/qtquickcompiler-sdk/lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake ${D}${OE_QMAKE_PATH_ARCHDATA}/cmake/Qt5QuickCompiler
42
43 if [ "${PN}" = "qtquickcompiler-sdk-native" ]; then
44 install -d ${D}${OE_QMAKE_PATH_BINS}
45 install -m 0755 ${THISDIR}/qtquickcompiler-sdk/bin/qtquickcompiler ${D}${OE_QMAKE_PATH_BINS}
46 elif [ "${PN}" = "nativesdk-qtquickcompiler-sdk" ]; then
47 install -d ${D}${OE_QMAKE_PATH_BINS}
48 install -m 0755 ${THISDIR}/qtquickcompiler-sdk/bin/${NATIVESDK_BINARY} ${D}${OE_QMAKE_PATH_BINS}
49 fi
50}
51
52INHIBIT_PACKAGE_STRIP = "1"
53ALLOW_EMPTY_${PN} = "1"
54PACKAGES =+ "${PN}-tools"
55FILES_${PN}-tools = "${OE_QMAKE_PATH_BINS}"
56FILES_${PN}-dev = "${OE_QMAKE_PATH_ARCHDATA}"
57
58BBCLASSEXTEND = "native nativesdk"
diff --git a/recipes-qt/qt5-addons/qtvirtualkeyboard_git.bb b/recipes-qt/qt5-addons/qtvirtualkeyboard_git.bb
index 5639d60..f4bdbcc 100644
--- a/recipes-qt/qt5-addons/qtvirtualkeyboard_git.bb
+++ b/recipes-qt/qt5-addons/qtvirtualkeyboard_git.bb
@@ -26,7 +26,6 @@ LIC_FILES_CHKSUM = "file://src/virtualkeyboard/plugin.cpp;md5=8913d0b71519756d2e
26inherit qt5-module qtquickcompiler 26inherit qt5-module qtquickcompiler
27require recipes-qt/qt5/qt5-git.inc 27require recipes-qt/qt5/qt5-git.inc
28 28
29QT_MODULE_BRANCH = "5.6"
30SRCREV = "4d480f8f0c1ca3308f4c3a423ad30d5d44e9c1bf" 29SRCREV = "4d480f8f0c1ca3308f4c3a423ad30d5d44e9c1bf"
31 30
32DEPENDS = "qtbase qtdeclarative qtsvg hunspell" 31DEPENDS = "qtbase qtdeclarative qtsvg hunspell"
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bbappend b/recipes-qt/qt5/nativesdk-qtbase_git.bbappend
index fd8a462..312f6b2 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bbappend
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bbappend
@@ -19,9 +19,14 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22# Needed by qtxmlpatterns 22QT_MODULE_BRANCH = "5.6.0"
23EXTRA_QTLIB_append = " Network Sql" 23SRCREV = "d0cdc7ad1e2728caf363abf328b2ad81f2ed5a5b"
24# Needed by qttools
25EXTRA_QTLIB_append = " Xml"
26 24
27SRCREV = "719623a11d57da6a56d069a5ca8161531a37776b" 25FILESEXTRAPATHS_prepend := "${THISDIR}/qtbase:"
26
27SRC_URI += "\
28 file://0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch \
29 "
30
31fakeroot do_generate_qt_environment_file_mingw32() {
32}
diff --git a/recipes-qt/qt5/qt3d_git.bbappend b/recipes-qt/qt5/qt3d_git.bbappend
index 59b6b33..1818817 100644
--- a/recipes-qt/qt5/qt3d_git.bbappend
+++ b/recipes-qt/qt5/qt3d_git.bbappend
@@ -25,18 +25,5 @@ SRC_URI_append_class-target = " \
25 file://0001-Remove-qgltf.patch \ 25 file://0001-Remove-qgltf.patch \
26 " 26 "
27 27
28SRCREV = "190795b1f884620ba8b31d3998ac97107d4f4eb7" 28QT_MODULE_BRANCH = "5.6.0"
29 29SRCREV = "7a208d76ed96bb506899becfe680df06f95451c7"
30DEPENDS += "qt3d-native"
31
32SRC_URI += " \
33 file://0001-Allow-a-tools-only-build.patch \
34 "
35PACKAGECONFIG ??= ""
36PACKAGECONFIG_class-native ??= "tools-only"
37PACKAGECONFIG_class-nativesdk ??= "tools-only"
38PACKAGECONFIG[tools-only] = "CONFIG+=tools-only"
39
40EXTRA_QMAKEVARS_PRE += "${EXTRA_OECONF}"
41
42BBCLASSEXTEND += "native nativesdk"
diff --git a/recipes-qt/qt5/qtbase-native_git.bbappend b/recipes-qt/qt5/qtbase-native_git.bbappend
index 2a767e9..ee14664 100644
--- a/recipes-qt/qt5/qtbase-native_git.bbappend
+++ b/recipes-qt/qt5/qtbase-native_git.bbappend
@@ -19,4 +19,11 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "719623a11d57da6a56d069a5ca8161531a37776b" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "d0cdc7ad1e2728caf363abf328b2ad81f2ed5a5b"
24
25FILESEXTRAPATHS_prepend := "${THISDIR}/qtbase:"
26
27SRC_URI += "\
28 file://0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch \
29 "
diff --git a/recipes-qt/qt5/qtbase/0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch b/recipes-qt/qt5/qtbase/0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch
new file mode 100644
index 0000000..7ce3a9e
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch
@@ -0,0 +1,180 @@
1From 5363b4d6d1f3c5683267ec3e190b85eca964eef8 Mon Sep 17 00:00:00 2001
2From: David Schulz <david.schulz@theqtcompany.com>
3Date: Fri, 3 Jul 2015 16:06:59 +0200
4Subject: [PATCH] Add win32-g++-oe mkspec that uses the OE_ environment.
5
6Upstream-Status: Inappropriate [embedded specific]
7 too OE specific, probably cannot be upstreamed
8---
9 mkspecs/win32-g++-oe/qmake.conf | 109 +++++++++++++++++++++++++++++++++++
10 mkspecs/win32-g++-oe/qplatformdefs.h | 42 ++++++++++++++
11 2 files changed, 151 insertions(+)
12 create mode 100644 mkspecs/win32-g++-oe/qmake.conf
13 create mode 100644 mkspecs/win32-g++-oe/qplatformdefs.h
14
15diff --git a/mkspecs/win32-g++-oe/qmake.conf b/mkspecs/win32-g++-oe/qmake.conf
16new file mode 100644
17index 0000000..1c8879a
18--- /dev/null
19+++ b/mkspecs/win32-g++-oe/qmake.conf
20@@ -0,0 +1,109 @@
21+#
22+# qmake configuration for win32-g++
23+#
24+# Written for MinGW / gcc 4.6 or higher
25+#
26+# Cross compile example for i686-w64-mingw32-g++:
27+# configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-
28+#
29+
30+load(device_config)
31+
32+MAKEFILE_GENERATOR = MINGW
33+QMAKE_PLATFORM = win32 mingw
34+CONFIG += debug_and_release debug_and_release_target precompile_header
35+DEFINES += UNICODE
36+QMAKE_COMPILER_DEFINES += __GNUC__ WIN32
37+
38+QMAKE_EXT_OBJ = .o
39+QMAKE_EXT_RES = _res.o
40+
41+QMAKE_COMPILER = $(OE_QMAKE_COMPILER) gcc
42+
43+QMAKE_CC = $(OE_QMAKE_CC)
44+QMAKE_LEX = flex
45+QMAKE_LEXFLAGS =
46+QMAKE_YACC = byacc
47+QMAKE_YACCFLAGS = -d
48+QMAKE_CFLAGS = -pipe $(OE_QMAKE_CFLAGS)
49+QMAKE_CFLAGS_DEPS = -M
50+QMAKE_CFLAGS_WARN_ON = -Wall -Wextra
51+QMAKE_CFLAGS_WARN_OFF = -w
52+QMAKE_CFLAGS_RELEASE = -O2
53+QMAKE_CFLAGS_DEBUG = -g
54+QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
55+QMAKE_CFLAGS_SPLIT_SECTIONS = -ffunction-sections
56+QMAKE_CFLAGS_SSE2 = -msse2 -mstackrealign
57+QMAKE_CFLAGS_SSE3 = -msse3
58+QMAKE_CFLAGS_SSSE3 = -mssse3
59+QMAKE_CFLAGS_SSE4_1 = -msse4.1
60+QMAKE_CFLAGS_SSE4_2 = -msse4.2
61+QMAKE_CFLAGS_AVX = -mavx
62+QMAKE_CFLAGS_AVX2 = -mavx2
63+QMAKE_CFLAGS_NEON = -mfpu=neon
64+
65+QMAKE_CXX = $(OE_QMAKE_CXX)
66+QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(OE_QMAKE_CXXFLAGS)
67+QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS
68+QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
69+QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
70+QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
71+QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
72+QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
73+QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
74+QMAKE_CXXFLAGS_RTTI_ON = -frtti
75+QMAKE_CXXFLAGS_RTTI_OFF = -fno-rtti
76+QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads
77+QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptions
78+QMAKE_CXXFLAGS_CXX11 = -std=c++0x
79+QMAKE_CXXFLAGS_SPLIT_SECTIONS = $$QMAKE_CFLAGS_SPLIT_SECTIONS
80+
81+QMAKE_INCDIR =
82+
83+QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src
84+QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
85+QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src
86+QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
87+
88+QMAKE_LINK = $(OE_QMAKE_LINK)
89+QMAKE_LINK_C = $(OE_QMAKE_LINK)
90+QMAKE_LFLAGS = $(OE_QMAKE_LDFLAGS)
91+QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads
92+QMAKE_LFLAGS_EXCEPTIONS_OFF =
93+QMAKE_LFLAGS_RELEASE = -Wl,-s
94+QMAKE_LFLAGS_DEBUG =
95+QMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,console
96+QMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windows
97+QMAKE_LFLAGS_DLL = -shared
98+QMAKE_LFLAGS_CXX11 =
99+QMAKE_LFLAGS_GCSECTIONS = -Wl,--gc-sections
100+QMAKE_LFLAGS_USE_GOLD = -fuse-ld=gold
101+QMAKE_LINK_OBJECT_MAX = 10
102+QMAKE_LINK_OBJECT_SCRIPT = object_script
103+QMAKE_PREFIX_SHLIB =
104+QMAKE_EXTENSION_SHLIB = dll
105+QMAKE_PREFIX_STATICLIB = lib
106+QMAKE_EXTENSION_STATICLIB = a
107+QMAKE_LIB_EXTENSIONS = a dll.a
108+
109+QMAKE_LIBS =
110+QMAKE_LIBS_CORE = -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
111+QMAKE_LIBS_GUI = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lws2_32 -lole32 -luuid -luser32 -ladvapi32
112+QMAKE_LIBS_NETWORK = -lws2_32
113+QMAKE_LIBS_OPENGL = -lglu32 -lopengl32 -lgdi32 -luser32
114+QMAKE_LIBS_OPENGL_ES2 = -llibEGL -llibGLESv2 -lgdi32 -luser32
115+QMAKE_LIBS_OPENGL_ES2_DEBUG = -llibEGLd -llibGLESv2d -lgdi32 -luser32
116+QMAKE_LIBS_COMPAT = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32
117+QMAKE_LIBS_QT_ENTRY = -lmingw32 -lqtmain
118+
119+QMAKE_IDL = midl
120+QMAKE_LIB = $(OE_QMAKE_AR) -ru
121+QMAKE_RC = $(RC)
122+
123+QMAKE_STRIP = $${OE_QMAKE_STRIP}
124+QMAKE_STRIPFLAGS_LIB += --strip-unneeded
125+QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy
126+QMAKE_NM = $${CROSS_COMPILE}nm -P
127+
128+isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG)
129+load(qt_config)
130diff --git a/mkspecs/win32-g++-oe/qplatformdefs.h b/mkspecs/win32-g++-oe/qplatformdefs.h
131new file mode 100644
132index 0000000..9d63527
133--- /dev/null
134+++ b/mkspecs/win32-g++-oe/qplatformdefs.h
135@@ -0,0 +1,42 @@
136+/****************************************************************************
137+**
138+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
139+** Contact: http://www.qt-project.org/legal
140+**
141+** This file is part of the qmake spec of the Qt Toolkit.
142+**
143+** $QT_BEGIN_LICENSE:LGPL$
144+** Commercial License Usage
145+** Licensees holding valid commercial Qt licenses may use this file in
146+** accordance with the commercial license agreement provided with the
147+** Software or, alternatively, in accordance with the terms contained in
148+** a written agreement between you and Digia. For licensing terms and
149+** conditions see http://qt.digia.com/licensing. For further information
150+** use the contact form at http://qt.digia.com/contact-us.
151+**
152+** GNU Lesser General Public License Usage
153+** Alternatively, this file may be used under the terms of the GNU Lesser
154+** General Public License version 2.1 as published by the Free Software
155+** Foundation and appearing in the file LICENSE.LGPL included in the
156+** packaging of this file. Please review the following information to
157+** ensure the GNU Lesser General Public License version 2.1 requirements
158+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
159+**
160+** In addition, as a special exception, Digia gives you certain additional
161+** rights. These rights are described in the Digia Qt LGPL Exception
162+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
163+**
164+** GNU General Public License Usage
165+** Alternatively, this file may be used under the terms of the GNU
166+** General Public License version 3.0 as published by the Free Software
167+** Foundation and appearing in the file LICENSE.GPL included in the
168+** packaging of this file. Please review the following information to
169+** ensure the GNU General Public License version 3.0 requirements will be
170+** met: http://www.gnu.org/copyleft/gpl.html.
171+**
172+**
173+** $QT_END_LICENSE$
174+**
175+****************************************************************************/
176+
177+#include "../win32-g++/qplatformdefs.h"
178--
1791.9.1
180
diff --git a/recipes-qt/qt5/qtbase_git.bbappend b/recipes-qt/qt5/qtbase_git.bbappend
index 65a9b1d..0b4774a 100644
--- a/recipes-qt/qt5/qtbase_git.bbappend
+++ b/recipes-qt/qt5/qtbase_git.bbappend
@@ -39,20 +39,14 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
39 39
40SRC_URI += " \ 40SRC_URI += " \
41 file://oe-device-extra.pri \ 41 file://oe-device-extra.pri \
42 file://0001-Add-win32-g-oe-mkspec-that-uses-the-OE_-environment.patch \
42 " 43 "
43do_configure_prepend() { 44do_configure_prepend() {
44 install -m 0644 ${WORKDIR}/oe-device-extra.pri ${S}/mkspecs 45 install -m 0644 ${WORKDIR}/oe-device-extra.pri ${S}/mkspecs
45} 46}
46 47
47SRCREV = "719623a11d57da6a56d069a5ca8161531a37776b" 48QT_MODULE_BRANCH = "5.6.0"
49SRCREV = "d0cdc7ad1e2728caf363abf328b2ad81f2ed5a5b"
48 50
49# Temporarily here, until merged upstream 51# Temporarily here, until merged upstream
50PACKAGECONFIG[openssl] = "-openssl,-no-openssl,openssl,libssl"
51PACKAGECONFIG[kms] = "-kms,-no-kms,drm virtual/egl" 52PACKAGECONFIG[kms] = "-kms,-no-kms,drm virtual/egl"
52
53do_install_append() {
54 # Temporarily here, until merged upstream
55 sed -i -e 's|${STAGING_DIR_NATIVE}${prefix_native}|$$[QT_HOST_PREFIX]|g' \
56 -e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' \
57 ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/*.pri
58}
diff --git a/recipes-qt/qt5/qtcanvas3d_git.bbappend b/recipes-qt/qt5/qtcanvas3d_git.bbappend
index 0a8d678..9478428 100644
--- a/recipes-qt/qt5/qtcanvas3d_git.bbappend
+++ b/recipes-qt/qt5/qtcanvas3d_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "5a17c4ca0552c9f4e6b5646f0cee2b21a55c3d18" 23SRCREV = "5a17c4ca0552c9f4e6b5646f0cee2b21a55c3d18"
diff --git a/recipes-qt/qt5/qtconnectivity_git.bbappend b/recipes-qt/qt5/qtconnectivity_git.bbappend
index 67cd0dd..8057fbb 100644
--- a/recipes-qt/qt5/qtconnectivity_git.bbappend
+++ b/recipes-qt/qt5/qtconnectivity_git.bbappend
@@ -19,5 +19,6 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "8b550f0a7508ed413cded71a20485e61010b0aa3" 23SRCREV = "8b550f0a7508ed413cded71a20485e61010b0aa3"
23 24
diff --git a/recipes-qt/qt5/qtdeclarative_git.bbappend b/recipes-qt/qt5/qtdeclarative_git.bbappend
index 09944d9..626014a 100644
--- a/recipes-qt/qt5/qtdeclarative_git.bbappend
+++ b/recipes-qt/qt5/qtdeclarative_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "19dffeed2e677cf03b6e122c7a15f355ebe413c8" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "dc558b69f083c89aa8c02952e5f167405939a61a"
diff --git a/recipes-qt/qt5/qtgraphicaleffects_git.bbappend b/recipes-qt/qt5/qtgraphicaleffects_git.bbappend
index 972f725..7f854d5 100644
--- a/recipes-qt/qt5/qtgraphicaleffects_git.bbappend
+++ b/recipes-qt/qt5/qtgraphicaleffects_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "2f0e5e726d76b8ad5a0e9b07aeb57006490e18b4" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "4b8e9a348ca379b203c26ff14dd236267dd60646"
diff --git a/recipes-qt/qt5/qtimageformats_git.bbappend b/recipes-qt/qt5/qtimageformats_git.bbappend
index 4213bc9..f3895a6 100644
--- a/recipes-qt/qt5/qtimageformats_git.bbappend
+++ b/recipes-qt/qt5/qtimageformats_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "0bd46d5861fa7b48c87cd3a734d00671df929869" 23SRCREV = "0bd46d5861fa7b48c87cd3a734d00671df929869"
diff --git a/recipes-qt/qt5/qtlocation_git.bbappend b/recipes-qt/qt5/qtlocation_git.bbappend
index a012288..3308e33 100644
--- a/recipes-qt/qt5/qtlocation_git.bbappend
+++ b/recipes-qt/qt5/qtlocation_git.bbappend
@@ -24,4 +24,5 @@ PACKAGECONFIG += "gypsy"
24EXTRA_QMAKEVARS_PRE_emulator += "CONFIG+=simulator" 24EXTRA_QMAKEVARS_PRE_emulator += "CONFIG+=simulator"
25DEPENDS_emulator += "qtsimulator" 25DEPENDS_emulator += "qtsimulator"
26 26
27SRCREV = "526f459330d9bb5238479523f45aaa4caa958f77" 27QT_MODULE_BRANCH = "5.6.0"
28SRCREV = "ca4bce553d03a64fa119650990083267ea9c8d31"
diff --git a/recipes-qt/qt5/qtmultimedia_git.bbappend b/recipes-qt/qt5/qtmultimedia_git.bbappend
index eaebada..1793fdd 100644
--- a/recipes-qt/qt5/qtmultimedia_git.bbappend
+++ b/recipes-qt/qt5/qtmultimedia_git.bbappend
@@ -21,4 +21,5 @@
21 21
22PACKAGECONFIG += "${@base_contains("DISTRO_FEATURES", "gstreamer010", "gstreamer010", "gstreamer", d)}" 22PACKAGECONFIG += "${@base_contains("DISTRO_FEATURES", "gstreamer010", "gstreamer010", "gstreamer", d)}"
23 23
24SRCREV = "241444eab724ba0cb4fa142c5ccb02243b6f2dc2" 24QT_MODULE_BRANCH = "5.6.0"
25SRCREV = "9985224a89b830dc182b428f491b6187d6f0e1ba"
diff --git a/recipes-qt/qt5/qtquickcontrols_git.bbappend b/recipes-qt/qt5/qtquickcontrols_git.bbappend
index f899df0..c7df857 100644
--- a/recipes-qt/qt5/qtquickcontrols_git.bbappend
+++ b/recipes-qt/qt5/qtquickcontrols_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "fc9c57cf8b66bafbcaa6957bb22293047aa3d9df" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "85c2d2cce4c7d49bc425ccd0be2bbd9841b7e79b"
diff --git a/recipes-qt/qt5/qtsensors_git.bbappend b/recipes-qt/qt5/qtsensors_git.bbappend
index 457e0fd..d570ec2 100644
--- a/recipes-qt/qt5/qtsensors_git.bbappend
+++ b/recipes-qt/qt5/qtsensors_git.bbappend
@@ -22,4 +22,5 @@
22EXTRA_QMAKEVARS_PRE_emulator += "SENSORS_PLUGINS=simulator" 22EXTRA_QMAKEVARS_PRE_emulator += "SENSORS_PLUGINS=simulator"
23DEPENDS_emulator += "qtsimulator" 23DEPENDS_emulator += "qtsimulator"
24 24
25SRCREV = "ad52d307cbff44b77bf7d4fa923377b72bb04374" 25QT_MODULE_BRANCH = "5.6.0"
26SRCREV = "7197e7f4b385315cb241043495cbfad58deb911a"
diff --git a/recipes-qt/qt5/qtserialbus_git.bb b/recipes-qt/qt5/qtserialbus_git.bb
index d06444b..c833730 100644
--- a/recipes-qt/qt5/qtserialbus_git.bb
+++ b/recipes-qt/qt5/qtserialbus_git.bb
@@ -31,4 +31,5 @@ LIC_FILES_CHKSUM = " \
31 31
32DEPENDS += "qtbase qtserialport" 32DEPENDS += "qtbase qtserialport"
33 33
34SRCREV = "c3f263509b64814ba12dbb627897de00b05230bc" 34QT_MODULE_BRANCH = "5.6.0"
35SRCREV = "48f32572590e45a57573944c0822855819d138df"
diff --git a/recipes-qt/qt5/qtserialport_git.bbappend b/recipes-qt/qt5/qtserialport_git.bbappend
index 188e736..7e72190 100644
--- a/recipes-qt/qt5/qtserialport_git.bbappend
+++ b/recipes-qt/qt5/qtserialport_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "6ba354a0ec3bd3064d072cf170fe9f60f9ae3389" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "03d492e49e74eefa1c83e37e833d862f4b9f1e45"
diff --git a/recipes-qt/qt5/qtsvg_git.bbappend b/recipes-qt/qt5/qtsvg_git.bbappend
index 56a80d9..27ed9e2 100644
--- a/recipes-qt/qt5/qtsvg_git.bbappend
+++ b/recipes-qt/qt5/qtsvg_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "38777ea7451d55e9c3d32d88d46063016013f60c" 23SRCREV = "38777ea7451d55e9c3d32d88d46063016013f60c"
diff --git a/recipes-qt/qt5/qttools_git.bbappend b/recipes-qt/qt5/qttools_git.bbappend
index 932f535..7244baf 100644
--- a/recipes-qt/qt5/qttools_git.bbappend
+++ b/recipes-qt/qt5/qttools_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "eb59d8084af321d05b4ebdfb2c1e051dfdca0b62" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "9904992dc4eb9a5958fcfbac238374ff38498143"
diff --git a/recipes-qt/qt5/qttranslations_git.bbappend b/recipes-qt/qt5/qttranslations_git.bbappend
index e8b1d19..9c5261a 100644
--- a/recipes-qt/qt5/qttranslations_git.bbappend
+++ b/recipes-qt/qt5/qttranslations_git.bbappend
@@ -19,9 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "41d212290c3822b8eef151785d89ac5f5b246bde" 23SRCREV = "41d212290c3822b8eef151785d89ac5f5b246bde"
23
24PACKAGES += "${PN}-qtwebengine"
25FILES_${PN}-qtwebengine = " \
26 ${OE_QMAKE_PATH_TRANSLATIONS}/qtwebengine_*.qm \
27"
diff --git a/recipes-qt/qt5/qtwayland-native_git.bbappend b/recipes-qt/qt5/qtwayland-native_git.bbappend
index cd4d339..57cc2e7 100644
--- a/recipes-qt/qt5/qtwayland-native_git.bbappend
+++ b/recipes-qt/qt5/qtwayland-native_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "baec8be7294a176620253dbbc1b2938cf96c8360" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "29b8bd8b1117589341110502fe516bf22c920747"
diff --git a/recipes-qt/qt5/qtwayland_5.7-wip.bb b/recipes-qt/qt5/qtwayland_5.7-wip.bb
index 0828a42..2de879b 100644
--- a/recipes-qt/qt5/qtwayland_5.7-wip.bb
+++ b/recipes-qt/qt5/qtwayland_5.7-wip.bb
@@ -21,7 +21,7 @@
21 21
22require recipes-qt/qt5/qtwayland_git.bb 22require recipes-qt/qt5/qtwayland_git.bb
23 23
24SRCREV = "600d845ff4a89982dd6a8c9fa0dd60b2bf861ff5" 24SRCREV = "0b9967d0f16652b0c77d454923bb7a1423792658"
25PV = "5.7-wip+git${SRCPV}" 25PV = "5.7-wip+git${SRCPV}"
26QT_MODULE_BRANCH = "wip-compositor-api" 26QT_MODULE_BRANCH = "wip-compositor-api"
27EXTRA_QMAKEVARS_PRE += "CONFIG+=explicitlib" 27EXTRA_QMAKEVARS_PRE += "CONFIG+=explicitlib"
diff --git a/recipes-qt/qt5/qtwayland_git.bbappend b/recipes-qt/qt5/qtwayland_git.bbappend
index cd4d339..57cc2e7 100644
--- a/recipes-qt/qt5/qtwayland_git.bbappend
+++ b/recipes-qt/qt5/qtwayland_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22SRCREV = "baec8be7294a176620253dbbc1b2938cf96c8360" 22QT_MODULE_BRANCH = "5.6.0"
23SRCREV = "29b8bd8b1117589341110502fe516bf22c920747"
diff --git a/recipes-qt/qt5/qtwebchannel_git.bbappend b/recipes-qt/qt5/qtwebchannel_git.bbappend
index ac958c0..2179f58 100644
--- a/recipes-qt/qt5/qtwebchannel_git.bbappend
+++ b/recipes-qt/qt5/qtwebchannel_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "92d903d92b430222cd3f89eab08d61d947e5abea" 23SRCREV = "92d903d92b430222cd3f89eab08d61d947e5abea"
diff --git a/recipes-qt/qt5/qtwebengine_git.bbappend b/recipes-qt/qt5/qtwebengine_git.bbappend
index 75d65a5..381bbbd 100644
--- a/recipes-qt/qt5/qtwebengine_git.bbappend
+++ b/recipes-qt/qt5/qtwebengine_git.bbappend
@@ -25,5 +25,6 @@ SRC_URI_append_mx6 = " \
25 file://0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch \ 25 file://0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch \
26 " 26 "
27 27
28SRCREV_qtwebengine = "bc2b0d81a8eff28852c9916a4768f05638d5d4cd" 28QT_MODULE_BRANCH = "5.6.0"
29SRCREV_qtwebengine = "5c4ae298b0a3d75c4c5ea8aef0595914ab25607f"
29SRCREV_chromium = "e63eb5276c8d141853e2c26bf1bac469ed60465f" 30SRCREV_chromium = "e63eb5276c8d141853e2c26bf1bac469ed60465f"
diff --git a/recipes-qt/qt5/qtwebsockets_git.bbappend b/recipes-qt/qt5/qtwebsockets_git.bbappend
index 528e5b6..ea08e2e 100644
--- a/recipes-qt/qt5/qtwebsockets_git.bbappend
+++ b/recipes-qt/qt5/qtwebsockets_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "88946bbe209cb6148b4a3284077bb9a06c7bc1ef" 23SRCREV = "88946bbe209cb6148b4a3284077bb9a06c7bc1ef"
diff --git a/recipes-qt/qt5/qtxmlpatterns_git.bbappend b/recipes-qt/qt5/qtxmlpatterns_git.bbappend
index 287ed42..f45b633 100644
--- a/recipes-qt/qt5/qtxmlpatterns_git.bbappend
+++ b/recipes-qt/qt5/qtxmlpatterns_git.bbappend
@@ -19,4 +19,5 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22QT_MODULE_BRANCH = "5.6.0"
22SRCREV = "de2dadb8af67f9d425c3a8d2353a7d5b07588915" 23SRCREV = "de2dadb8af67f9d425c3a8d2353a7d5b07588915"
diff --git a/recipes/dracut/dracut_git.bbappend b/recipes/dracut/dracut_git.bbappend
index e33637a..ca3437c 100644
--- a/recipes/dracut/dracut_git.bbappend
+++ b/recipes/dracut/dracut_git.bbappend
@@ -19,6 +19,10 @@
19## 19##
20############################################################################## 20##############################################################################
21 21
22PV = "044+git${SRCREV}"
23SRCREV = "1bc3e733f96033a508841e97fe08da7a12851782"
24SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http"
25
22# Upstream recipe mistakenly depends on systemd, we remove that dependency here. 26# Upstream recipe mistakenly depends on systemd, we remove that dependency here.
23RDEPENDS_${PN}_remove = "systemd" 27RDEPENDS_${PN}_remove = "systemd"
24REQUIRED_DISTRO_FEATURES_remove = "systemd" 28REQUIRED_DISTRO_FEATURES_remove = "systemd"
diff --git a/recipes/initramfs-basic/files/init.sh b/recipes/initramfs-basic/files/init.sh
new file mode 100644
index 0000000..3db235b
--- /dev/null
+++ b/recipes/initramfs-basic/files/init.sh
@@ -0,0 +1,102 @@
1#!/bin/sh
2
3PATH=/sbin:/bin:/usr/sbin:/usr/bin
4ROOT_MOUNT="/sysroot/"
5ROOT_DEVICE=""
6
7early_setup() {
8
9 mkdir -p /proc
10 mkdir -p /sys
11 mount -t proc proc /proc
12 mount -t sysfs sysfs /sys
13 mount -t devtmpfs none /dev
14
15 mkdir -p /run
16 mkdir -p /var/run
17}
18
19read_args() {
20
21 for arg in $(cat /proc/cmdline); do
22 value=$(echo ${arg} | cut -s -f2- -d '=')
23 case $arg in
24 root=*)
25 root=$value
26 ;;
27 debugshell*)
28 if [ -z "$value" ]; then
29 shelltimeout=30
30 else
31 shelltimeout=$value
32 fi
33 ;;
34 esac
35 done
36
37 if [ -z "$root" ] ; then
38 debug_shell "No root= specified via kernel command line."
39 else
40 case $root in
41 LABEL=*)
42 label=${root#LABEL=}
43 ;;
44 *)
45 debug_shell "This init script only supports root=LABEL=* for specifying root file system, but root=$root was provided."
46 ;;
47 esac
48 fi
49}
50
51mount_rootfs() {
52
53 mkdir -p $ROOT_MOUNT
54 mount $ROOT_DEVICE $ROOT_MOUNT
55 mount -n --move /proc $ROOT_MOUNT/proc
56 mount -n --move /sys $ROOT_MOUNT/sys
57 mount -n --move /dev $ROOT_MOUNT/dev
58
59 exec switch_root $ROOT_MOUNT /sbin/init || debug_shell "Couldn't switch_root."
60}
61
62switch_real_root() {
63
64 echo "Searching for media..."
65 C=0
66 while true
67 do
68
69 rootfs=$(findfs LABEL=$label)
70 if [ -n "$rootfs" ] ; then
71 ROOT_DEVICE=$rootfs
72 mount_rootfs
73 fi
74
75 # don't wait for more than $shelltimeout seconds, if it's set
76 if [ -n "$shelltimeout" ]; then
77 echo -n " " $(( $shelltimeout - $C ))
78 if [ $C -ge $shelltimeout ]; then
79 debug_shell "Cannot find root file system."
80 fi
81 C=$(( C + 1 ))
82 fi
83
84 sleep 1
85 done
86}
87
88debug_shell() {
89
90 echo ${1}
91 echo "Dropping to a shell."
92 exec sh
93}
94
95main() {
96
97 early_setup
98 read_args
99 switch_real_root
100}
101
102main
diff --git a/recipes/initramfs-basic/init-basic.bb b/recipes/initramfs-basic/init-basic.bb
new file mode 100644
index 0000000..674e683
--- /dev/null
+++ b/recipes/initramfs-basic/init-basic.bb
@@ -0,0 +1,34 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22SUMMARY = "Simple init script that mounts root filesystem by label."
23LICENSE = "CLOSED"
24SRC_URI = "file://init.sh"
25
26S = "${WORKDIR}"
27
28do_install () {
29 install -m 0755 ${WORKDIR}/init.sh ${D}/init
30}
31
32inherit allarch
33
34FILES_${PN} += "/init"
diff --git a/recipes/initramfs-basic/initramfs-basic.bb b/recipes/initramfs-basic/initramfs-basic.bb
new file mode 100644
index 0000000..4bef9c8
--- /dev/null
+++ b/recipes/initramfs-basic/initramfs-basic.bb
@@ -0,0 +1,40 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22DESCRIPTION = "Basic initramfs image. Useful as a template for more advanced functionality."
23LICENSE = "CLOSED"
24
25# findfs from busybox fails to do its jobs, the full version from util-linux-findfs works fine
26PACKAGE_INSTALL = "init-basic busybox util-linux-findfs ${ROOTFS_BOOTSTRAP_INSTALL}"
27
28# Do not pollute the initramfs image with rootfs features
29IMAGE_FEATURES = ""
30
31export IMAGE_BASENAME = "initramfs-basic"
32IMAGE_LINGUAS = ""
33
34IMAGE_FSTYPES = "cpio.gz"
35inherit core-image
36
37IMAGE_ROOTFS_SIZE = "8192"
38
39BAD_RECOMMENDATIONS += "busybox-syslog"
40
diff --git a/recipes/os-release/os-release.bbappend b/recipes/os-release/os-release.bbappend
new file mode 100644
index 0000000..98e2d16
--- /dev/null
+++ b/recipes/os-release/os-release.bbappend
@@ -0,0 +1,39 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22# Reported upstream https://bugzilla.yoctoproject.org/show_bug.cgi?id=9144
23python do_fix_quotes () {
24 with open(d.expand('${B}/os-release'), 'w') as f:
25 for field in d.getVar('OS_RELEASE_FIELDS', True).split():
26 value = d.getVar(field, True)
27 if value:
28 f.write('{0}="{1}"\n'.format(field, value))
29}
30
31do_verify_if_fixed_by_upstream () {
32 pretty_name_first_char=$(cat ${B}/os-release | grep "^PRETTY_NAME" | cut -f 2 -d '=' | cut -c1)
33 if [ "${pretty_name_first_char}" = "\"" ]] ; then
34 bbwarn "Issue appears to be fixed by upstream, remove this workaround."
35 fi
36}
37
38addtask do_verify_if_fixed_by_upstream after do_compile before do_install
39addtask do_fix_quotes after do_verify_if_fixed_by_upstream before do_install
diff --git a/recipes/ostree/ostree.bb b/recipes/ostree/ostree.bb
index a0a1b8a..4dbafd5 100644
--- a/recipes/ostree/ostree.bb
+++ b/recipes/ostree/ostree.bb
@@ -32,6 +32,7 @@ SRC_URI = " \
32 file://0002-u-boot-Merge-ostree-s-and-systems-uEnv.txt.patch \ 32 file://0002-u-boot-Merge-ostree-s-and-systems-uEnv.txt.patch \
33 file://0003-Allow-updating-files-in-root-of-boot.patch \ 33 file://0003-Allow-updating-files-in-root-of-boot.patch \
34 file://0004-Mount-boot-partition.patch \ 34 file://0004-Mount-boot-partition.patch \
35 file://0005-Do-not-use-grub2-mkconfig.patch \
35 " 36 "
36 37
37SRCREV = "efdb4d8f443768e59529c299290bee8b1f8f93c3" 38SRCREV = "efdb4d8f443768e59529c299290bee8b1f8f93c3"
diff --git a/recipes/ostree/ostree/0004-Mount-boot-partition.patch b/recipes/ostree/ostree/0004-Mount-boot-partition.patch
index 092e142..a81f731 100644
--- a/recipes/ostree/ostree/0004-Mount-boot-partition.patch
+++ b/recipes/ostree/ostree/0004-Mount-boot-partition.patch
@@ -1,82 +1,60 @@
1From 5e9ed74a20026e5c9043eaf8a224ce84cb9cd9f0 Mon Sep 17 00:00:00 2001 1From 33642082578946fdc73ade8b78c05ba8d8521652 Mon Sep 17 00:00:00 2001
2From: Gatis Paeglis <gatis.paeglis@theqtcompany.com> 2From: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
3Date: Mon, 7 Dec 2015 18:14:26 +0100 3Date: Mon, 7 Mar 2016 15:17:34 +0100
4Subject: [PATCH] Mount boot partition 4Subject: [PATCH] ostree: Mount boot partition from user space
5 5
6On b2qt reference images the boot partition always is 6In the current approach we assumed that boot/
7the first partition on a device and rootfs is the second 7
8partition. We can get the root parition from a kernel 8- is on a separate boot partition
9command line and deduce the right boot partition from there. 9- boot partition is right before rootfs partition
10- rootfs parition is provided as a *device node*
11- has "ext2" filesystem (mount shell cmd tries to
12 auto detect FS type, mount system call does not.)
13
14The new approch does not assume any of the above, and
15moves this logic from early user space (initramfs) to
16user space. Initramfs by design should be used only to
17prepare the rootfs, other tasks should be done later.
10--- 18---
11 src/switchroot/ostree-prepare-root.c | 23 ++++++++++++++++++----- 19 src/switchroot/ostree-remount.c | 19 ++++++++++++++++++-
12 1 file changed, 18 insertions(+), 5 deletions(-) 20 1 file changed, 18 insertions(+), 1 deletion(-)
13 21
14diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c 22diff --git a/src/switchroot/ostree-remount.c b/src/switchroot/ostree-remount.c
15index 3de137b..2637dc3 100644 23index b8d3a96..33f2645 100644
16--- a/src/switchroot/ostree-prepare-root.c 24--- a/src/switchroot/ostree-remount.c
17+++ b/src/switchroot/ostree-prepare-root.c 25+++ b/src/switchroot/ostree-remount.c
18@@ -45,7 +45,7 @@ 26@@ -77,7 +77,7 @@ maybe_mount_tmpfs_on_var (void)
19 #include "ostree-mount-util.h" 27 int
20 28 main(int argc, char *argv[])
21 static char *
22-parse_ostree_cmdline (void)
23+parse_kernel_cmdline (const char *arg)
24 { 29 {
25 FILE *f = fopen("/proc/cmdline", "r"); 30- const char *remounts[] = { "/sysroot", "/etc", "/home", "/root", "/tmp", "/var", NULL };
26 char *cmdline = NULL; 31+ const char *remounts[] = { "/sysroot", "/etc", "/home", "/root", "/tmp", "/var", "/boot", NULL };
27@@ -75,9 +75,9 @@ parse_ostree_cmdline (void)
28 const char *next_nonspc = next;
29 while (next_nonspc && *next_nonspc == ' ')
30 next_nonspc += 1;
31- if (strncmp (iter, "ostree=", strlen ("ostree=")) == 0)
32+ if (strncmp (iter, arg, strlen (arg)) == 0)
33 {
34- const char *start = iter + strlen ("ostree=");
35+ const char *start = iter + strlen (arg);
36 if (next)
37 ret = strndup (start, next - start);
38 else
39@@ -114,10 +114,12 @@ main(int argc, char *argv[])
40 const char *readonly_bind_mounts[] = { "/usr", NULL };
41 const char *root_mountpoint = NULL;
42 char *ostree_target = NULL;
43+ char *boot_partition = NULL;
44 char *deploy_path = NULL;
45 char srcpath[PATH_MAX];
46 char destpath[PATH_MAX];
47 char newroot[PATH_MAX];
48+ char boot_mountpoint[PATH_MAX];
49 struct stat stbuf; 32 struct stat stbuf;
50 int i; 33 int i;
51 34
52@@ -129,7 +131,7 @@ main(int argc, char *argv[]) 35@@ -117,5 +117,22 @@ main(int argc, char *argv[])
53 36
54 root_mountpoint = argv[1]; 37 maybe_mount_tmpfs_on_var ();
55 38
56- ostree_target = parse_ostree_cmdline (); 39+ /* ostree-prepare-root mounts boot/ if it is on the same partition as root filesystem.
57+ ostree_target = parse_kernel_cmdline ("ostree="); 40+ * If boot/ is not mounted, then it must be on a different partition. Try to mount
58 if (!ostree_target) 41+ * filesystem where LABEL=boot-ostree.
59 { 42+ */
60 fprintf (stderr, "No OSTree target; expected ostree=/ostree/boot.N/...\n"); 43+ if (!(lstat ("/boot/loader", &stbuf) == 0 && S_ISLNK (stbuf.st_mode)))
61@@ -246,6 +248,17 @@ main(int argc, char *argv[])
62 perrorv ("failed to MS_MOVE %s to %s", deploy_path, root_mountpoint);
63 exit (EXIT_FAILURE);
64 }
65-
66+
67+ /* first partition always is the boot partition */
68+ boot_partition = parse_kernel_cmdline ("root=");
69+ boot_partition[strlen (boot_partition) - 1] = '1';
70+ /* mount the real boot parition over the deployment's boot directory */
71+ snprintf (boot_mountpoint, sizeof(boot_mountpoint), "%s/boot/", root_mountpoint);
72+ if (mount (boot_partition, boot_mountpoint, "ext2", 0, NULL) < 0)
73+ { 44+ {
74+ perrorv ("failed to mount boot parition %s to %s", boot_partition, boot_mountpoint); 45+ /* mount the real boot parition over the deployment's boot directory */
75+ exit (EXIT_FAILURE); 46+ const char *mount_cmd="mount LABEL=boot-ostree /boot";
47+ FILE *fp = popen (mount_cmd, "w");
48+ if (fp == NULL)
49+ {
50+ perrorv ("popen failed for: %s", mount_cmd);
51+ exit (EXIT_FAILURE);
52+ }
53+ pclose (fp);
76+ } 54+ }
77+ 55+
78 exit (EXIT_SUCCESS); 56 exit (EXIT_SUCCESS);
79 } 57 }
80-- 58--
812.1.4 592.7.0
82 60
diff --git a/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch b/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch
new file mode 100644
index 0000000..1414ff7
--- /dev/null
+++ b/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch
@@ -0,0 +1,60 @@
1From b613d60319beffc861f5b1faa906d2ee0c685f52 Mon Sep 17 00:00:00 2001
2From: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
3Date: Wed, 24 Feb 2016 18:12:27 +0100
4Subject: [PATCH] Do not use grub2-mkconfig.
5
6For details see: https://bugzilla.gnome.org/show_bug.cgi?id=762220
7---
8 src/libostree/ostree-bootloader-grub2.c | 12 +++++++++++-
9 1 file changed, 11 insertions(+), 1 deletion(-)
10
11diff --git a/src/libostree/ostree-bootloader-grub2.c b/src/libostree/ostree-bootloader-grub2.c
12index 1f89914..7cfb0dc 100644
13--- a/src/libostree/ostree-bootloader-grub2.c
14+++ b/src/libostree/ostree-bootloader-grub2.c
15@@ -282,6 +282,8 @@ grub2_child_setup (gpointer user_data)
16 }
17 }
18
19+#define OSTREE_NO_GRUB2_MKCONFIG
20+
21 static gboolean
22 _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
23 int bootversion,
24@@ -300,6 +302,7 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
25 g_autoptr(GFile) config_path_efi_dir = NULL;
26 g_autofree char *grub2_mkconfig_chroot = NULL;
27
28+#ifndef OSTREE_NO_GRUB2_MKCONFIG
29 if (ostree_sysroot_get_booted_deployment (self->sysroot) == NULL
30 && g_file_has_parent (self->sysroot->path, NULL))
31 {
32@@ -322,7 +325,7 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
33 tool_deployment_root = ostree_sysroot_get_deployment_directory (self->sysroot, tool_deployment);
34 grub2_mkconfig_chroot = g_file_get_path (tool_deployment_root);
35 }
36-
37+#endif
38 if (self->is_efi)
39 {
40 config_path_efi_dir = g_file_get_parent (self->config_path_efi);
41@@ -337,9 +340,16 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
42 bootversion);
43 }
44
45+#ifdef OSTREE_NO_GRUB2_MKCONFIG
46+ procctx = gs_subprocess_context_newv ("ostree-grub-generator", "-o",
47+ gs_file_get_path_cached (new_config_path),
48+ NULL);
49+#else
50 procctx = gs_subprocess_context_newv ("grub2-mkconfig", "-o",
51 gs_file_get_path_cached (new_config_path),
52 NULL);
53+#endif
54+
55 child_env = g_environ_setenv (child_env, "_OSTREE_GRUB2_BOOTVERSION", bootversion_str, TRUE);
56 /* We have to pass our state to the child */
57 if (self->is_efi)
58--
592.7.0
60
diff --git a/scripts/manifest.xml b/scripts/manifest.xml
index b95a8dc..5ba0e81 100644
--- a/scripts/manifest.xml
+++ b/scripts/manifest.xml
@@ -25,7 +25,7 @@
25 path="sources/meta-openembedded"/> 25 path="sources/meta-openembedded"/>
26 <project name="meta-qt5" 26 <project name="meta-qt5"
27 remote="qtyocto" 27 remote="qtyocto"
28 revision="72ac998cef3306e6e4d2f3760af1c21cedfc330f" 28 revision="e29477ac42b47f4fedd2cb4be27ec2e4aa70540c"
29 path="sources/meta-qt5"/> 29 path="sources/meta-qt5"/>
30 30
31 <project name="meta-mingw" 31 <project name="meta-mingw"
@@ -37,7 +37,7 @@
37 remote="yocto" 37 remote="yocto"
38 revision="c9f259a4bf8472dfa3ff75f1c3fcbe5e0ded7aaf" 38 revision="c9f259a4bf8472dfa3ff75f1c3fcbe5e0ded7aaf"
39 path="sources/meta-fsl-arm" 39 path="sources/meta-fsl-arm"
40 groups="notdefault,fsl,toradex,architech,ti,bbb"/> 40 groups="notdefault,fsl,toradex,architech,ti,bbb,smx6"/>
41 <project name="meta-ti" 41 <project name="meta-ti"
42 remote="yocto" 42 remote="yocto"
43 revision="0a222c70845d19a2213ac36803361e8531768cca" 43 revision="0a222c70845d19a2213ac36803361e8531768cca"
@@ -45,14 +45,14 @@
45 groups="notdefault,ti,bbb"/> 45 groups="notdefault,ti,bbb"/>
46 <project name="meta-raspberrypi" 46 <project name="meta-raspberrypi"
47 remote="yocto" 47 remote="yocto"
48 revision="6314f668fa14473463bb777ffaf778333fea16eb" 48 revision="a42a1706de91ed03ae8798c7f9e70c30cebcf7de"
49 path="sources/meta-raspberrypi" 49 path="sources/meta-raspberrypi"
50 groups="notdefault,rpi"/> 50 groups="notdefault,rpi"/>
51 <project name="meta-fsl-arm-extra" 51 <project name="meta-fsl-arm-extra"
52 remote="freescale" 52 remote="freescale"
53 revision="ad90ca98459f5de9483bb3ba5a81be0a67b078c3" 53 revision="ad90ca98459f5de9483bb3ba5a81be0a67b078c3"
54 path="sources/meta-fsl-arm-extra" 54 path="sources/meta-fsl-arm-extra"
55 groups="notdefault,fsl,toradex,architech"/> 55 groups="notdefault,fsl,toradex,architech,smx6"/>
56 <project name="meta-beagleboard" 56 <project name="meta-beagleboard"
57 remote="beagleboard" 57 remote="beagleboard"
58 revision="b5c709b2b6bd3bf236df923fa8f245a00fbb1b60" 58 revision="b5c709b2b6bd3bf236df923fa8f245a00fbb1b60"
@@ -73,6 +73,7 @@
73 revision="ead0a5c115e632015d8358f4f304ec8908732f5f" 73 revision="ead0a5c115e632015d8358f4f304ec8908732f5f"
74 path="sources/meta-intel" 74 path="sources/meta-intel"
75 groups="notdefault,nuc"/> 75 groups="notdefault,nuc"/>
76
76 <project name="meta-tegra" 77 <project name="meta-tegra"
77 remote="playground" 78 remote="playground"
78 revision="3125d29a5c58a471b67104d1bff965df38eb3115" 79 revision="3125d29a5c58a471b67104d1bff965df38eb3115"
@@ -83,6 +84,11 @@
83 revision="a376c795d5361fda4ea5f19feecc23ab7e753646" 84 revision="a376c795d5361fda4ea5f19feecc23ab7e753646"
84 path="sources/jetson-tk1-pro" 85 path="sources/jetson-tk1-pro"
85 groups="notdefault,nvidia-logan"/> 86 groups="notdefault,nvidia-logan"/>
87 <project name="meta-smx6"
88 remote="playground"
89 revision="c2f639ef4b2fd5809ab95fb330d28c2716aa290d"
90 path="sources/meta-smx6"
91 groups="notdefault,smx6"/>
86 92
87</manifest> 93</manifest>
88 94
diff --git a/scripts/manifest_fido.xml b/scripts/manifest_fido.xml
index 6a7b308..3a13f40 100644
--- a/scripts/manifest_fido.xml
+++ b/scripts/manifest_fido.xml
@@ -13,7 +13,7 @@
13 <remote fetch="http://codereview.qt-project.org/yocto" name="qtyocto"/> 13 <remote fetch="http://codereview.qt-project.org/yocto" name="qtyocto"/>
14 <remote fetch="git://git.yoctoproject.org" name="intel"/> 14 <remote fetch="git://git.yoctoproject.org" name="intel"/>
15 <remote fetch="git://github.com/openembedded" name="oe-mirror"/> 15 <remote fetch="git://github.com/openembedded" name="oe-mirror"/>
16 <remote fetch="git://git://playground.ci.local" name="playground"/> 16 <remote fetch="git://playground.ci.local" name="playground"/>
17 17
18 <project name="poky" 18 <project name="poky"
19 remote="yocto" 19 remote="yocto"
@@ -45,7 +45,7 @@
45 groups="notdefault,ti,bbb"/> 45 groups="notdefault,ti,bbb"/>
46 <project name="meta-raspberrypi" 46 <project name="meta-raspberrypi"
47 remote="yocto" 47 remote="yocto"
48 revision="fido" 48 revision="master"
49 path="sources/meta-raspberrypi" 49 path="sources/meta-raspberrypi"
50 groups="notdefault,rpi"/> 50 groups="notdefault,rpi"/>
51 <project name="meta-fsl-arm-extra" 51 <project name="meta-fsl-arm-extra"
@@ -73,6 +73,7 @@
73 revision="fido" 73 revision="fido"
74 path="sources/meta-intel" 74 path="sources/meta-intel"
75 groups="notdefault,nuc"/> 75 groups="notdefault,nuc"/>
76
76 <project name="meta-tegra" 77 <project name="meta-tegra"
77 remote="playground" 78 remote="playground"
78 revision="master" 79 revision="master"
@@ -83,6 +84,10 @@
83 revision="master" 84 revision="master"
84 path="sources/jetson-tk1-pro" 85 path="sources/jetson-tk1-pro"
85 groups="notdefault,nvidia-logan"/> 86 groups="notdefault,nvidia-logan"/>
86 87 <project name="meta-smx6"
88 remote="playground"
89 revision="fido"
90 path="sources/meta-smx6"
91 groups="notdefault,smx6"/>
87</manifest> 92</manifest>
88 93
diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh
index f681d14..28adeec 100755
--- a/scripts/setup-environment.sh
+++ b/scripts/setup-environment.sh
@@ -51,9 +51,12 @@ if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then
51 apalis-imx6|colibri-imx6|colibri-vf) 51 apalis-imx6|colibri-imx6|colibri-vf)
52 LAYERSCONF="bblayers.conf.toradex.sample" 52 LAYERSCONF="bblayers.conf.toradex.sample"
53 ;; 53 ;;
54 imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x|smarc-samx6i) 54 imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x)
55 LAYERSCONF="bblayers.conf.fsl.sample" 55 LAYERSCONF="bblayers.conf.fsl.sample"
56 ;; 56 ;;
57 smarc-samx6i)
58 LAYERSCONF="bblayers.conf.smx6.sample"
59 ;;
57 tibidabo) 60 tibidabo)
58 LAYERSCONF="bblayers.conf.tibidabo.sample" 61 LAYERSCONF="bblayers.conf.tibidabo.sample"
59 ;; 62 ;;