summaryrefslogtreecommitdiffstats
path: root/meta-boot2qt/recipes-qt
diff options
context:
space:
mode:
Diffstat (limited to 'meta-boot2qt/recipes-qt')
-rw-r--r--meta-boot2qt/recipes-qt/automotive/gammaray_git.bb30
-rw-r--r--meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service12
-rw-r--r--meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service13
-rw-r--r--meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb67
-rw-r--r--meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service11
-rw-r--r--meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb73
-rw-r--r--meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch19
-rw-r--r--meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb50
-rw-r--r--meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb70
-rw-r--r--meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch29
-rw-r--r--meta-boot2qt/recipes-qt/automotive/qtivi_git.bb110
-rw-r--r--meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb45
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb56
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf7
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf9
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf10
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf10
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf9
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf7
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf8
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf8
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb134
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb65
-rwxr-xr-xmeta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh49
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service10
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service11
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service11
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service10
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service11
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service10
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb47
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb72
-rwxr-xr-xmeta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh103
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults8
-rwxr-xr-xmeta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh120
-rw-r--r--meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service11
-rw-r--r--meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb50
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb44
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtglesstream.bb63
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb42
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target5
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator1
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh1
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service11
-rwxr-xr-xmeta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh49
-rw-r--r--meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb74
46 files changed, 1665 insertions, 0 deletions
diff --git a/meta-boot2qt/recipes-qt/automotive/gammaray_git.bb b/meta-boot2qt/recipes-qt/automotive/gammaray_git.bb
new file mode 100644
index 0000000..7466822
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/gammaray_git.bb
@@ -0,0 +1,30 @@
1SUMMARY = "GammaRay Qt introspection probe"
2HOMEPAGE = "http://www.kdab.com/gammaray"
3
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE.GPL.txt;md5=a5b28ec9718d4516f7a621cd0232afc1"
6
7inherit cmake_qt5
8
9SRC_URI = "git://github.com/KDAB/GammaRay;branch=${BRANCH}"
10
11BRANCH = "5.9"
12SRCREV = "87656b9c344077d84682b53ba3e4676e18b57f9e"
13PV = "${BRANCH}+git${SRCPV}"
14
15DEPENDS = "qtdeclarative qtlocation qtsvg qttools qtconnectivity qt3d qtivi qtscxml qtscxml-native \
16 ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
17
18S = "${WORKDIR}/git"
19
20EXTRA_OECMAKE += " -DGAMMARAY_BUILD_UI=OFF -DGAMMARAY_CORE_ONLY_LAUNCHER=ON"
21
22FILES_${PN}-dev += " \
23 /usr/lib/cmake/* \
24 /usr/mkspecs/modules/* \
25"
26FILES_${PN}-dbg += " \
27 /usr/lib/.debug/* \
28 /usr/lib/gammaray/*/*/.debug \
29 /usr/lib/gammaray/*/*/styles/.debug \
30"
diff --git a/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service
new file mode 100644
index 0000000..af23213
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/automotivedemo.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=AutomotiveDemo
3After=dbus.service dbus-session.service systemd-user-sessions.service
4Conflicts=neptune.service
5
6[Service]
7ExecStart=/usr/bin/appcontroller /usr/bin/appman -r --dbus session -c am-config.yaml
8Restart=on-failure
9WorkingDirectory=/opt/automotivedemo
10
11[Install]
12WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service
new file mode 100644
index 0000000..1025cc1
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo/tegra-t18x/automotivedemo.service
@@ -0,0 +1,13 @@
1[Unit]
2Description=AutomotiveDemo
3After=dbus.service dbus-session.service systemd-user-sessions.service
4Conflicts=neptune.service
5
6[Service]
7ExecStart=/usr/bin/appcontroller /usr/bin/appman -r --dbus session -c am-config.yaml
8Restart=on-failure
9WorkingDirectory=/opt/automotivedemo
10Environment=QT_QPA_EGLFS_KMS_CONFIG=kms_config.json
11
12[Install]
13WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb
new file mode 100644
index 0000000..c81adee
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/multiscreen-demo_git.bb
@@ -0,0 +1,67 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Multiscreen Demo"
31LICENSE = "GPLv3 | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073"
33
34inherit qt5-module systemd
35require recipes-qt/qt5/qt5-git.inc
36
37QT_GIT_PROJECT = "qt-apps"
38QT_MODULE_BRANCH = "master"
39
40SRC_URI += "\
41 git://github.com/qtproject/qt-apps-demo-assets;protocol=git;name=assets;destsuffix=git/demo-assets \
42 file://automotivedemo.service \
43 "
44
45SRCREV_multiscreen-demo = "6d02e36c4280cee5b0c31323016ae666c73afef4"
46SRCREV_assets = "0d47d21f082d6c9e355a55809ebd38a31ea02264"
47
48SRCREV_FORMAT = "multiscreen-demo_assets"
49
50DEPENDS = "qtbase qtdeclarative qt3d"
51RDEPENDS_${PN} = "qtapplicationmanager qtivi qtvirtualkeyboard"
52
53EXTRA_QMAKEVARS_PRE += "INSTALL_PREFIX=/opt"
54
55do_install_append() {
56 rm ${D}/opt/automotivedemo/start.sh
57
58 install -d ${D}${systemd_system_unitdir}
59 install -m 0644 ${WORKDIR}/automotivedemo.service ${D}${systemd_system_unitdir}/
60}
61
62FILES_${PN} += "\
63 /opt/automotivedemo \
64 "
65
66SYSTEMD_SERVICE_${PN} = "automotivedemo.service"
67SYSTEMD_AUTO_ENABLE = "disable"
diff --git a/meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service b/meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service
new file mode 100644
index 0000000..16b6a1f
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/neptune-ui/neptune.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Neptune
3After=dbus.service dbus-session.service systemd-user-sessions.service
4
5[Service]
6ExecStart=/usr/bin/appcontroller /usr/bin/appman -r --dbus session -c am-config.yaml
7Restart=on-failure
8WorkingDirectory=/usr/neptune-ui
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb b/meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb
new file mode 100644
index 0000000..5898424
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/neptune-ui_git.bb
@@ -0,0 +1,73 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Copyright (C) 2018 Pelagicore AG.
5## Contact: https://www.qt.io/licensing/
6##
7## This file is part of the Boot to Qt meta layer.
8##
9## $QT_BEGIN_LICENSE:GPL$
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 https://www.qt.io/terms-conditions. For further
16## information use the contact form at https://www.qt.io/contact-us.
17##
18## GNU General Public License Usage
19## Alternatively, this file may be used under the terms of the GNU
20## General Public License version 3 or (at your option) any later version
21## approved by the KDE Free Qt Foundation. The licenses are as published by
22## the Free Software Foundation and appearing in the file LICENSE.GPL3
23## included in the packaging of this file. Please review the following
24## information to ensure the GNU General Public License requirements will
25## be met: https://www.gnu.org/licenses/gpl-3.0.html.
26##
27## $QT_END_LICENSE$
28##
29############################################################################
30
31DESCRIPTION = "Neptune IVI UI"
32LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1"
33LIC_FILES_CHKSUM = "\
34 file://LICENSE.GPL3;md5=c41b4a3e669de55dfe304b8376b04a82 \
35 file://imports/assets/fonts/OFL.txt;md5=a729250f3548d9d2deab9bfeb8a7ad51 \
36"
37
38inherit qt5-module systemd
39require recipes-qt/qt5/qt5-git.inc
40
41QT_GIT_PROJECT = "qt-apps"
42
43SRC_URI += " \
44 file://neptune.service \
45 "
46
47SRCREV = "7b64754e5d1aa3ea3b63347bc5637bae9795e193"
48
49DEPENDS = "qtbase qtdeclarative qttools-native qtquickcontrols2 qtapplicationmanager"
50RDEPENDS_${PN} = "qtivi qtvirtualkeyboard dbus \
51 qtquickcontrols-qmlplugins qtgraphicaleffects-qmlplugins \
52 ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
53
54do_install_append() {
55 install -m 0755 -d ${D}${systemd_unitdir}/system
56 install -m 0644 ${WORKDIR}/neptune.service ${D}${systemd_unitdir}/system/
57
58 # Move the fonts to the system-wide font location
59 install -m 0755 -d ${D}${datadir}/fonts/ttf/
60 mv ${D}/usr/neptune-ui/imports/assets/fonts/*.ttf ${D}${datadir}/fonts/ttf/
61 rm -rf ${D}/usr/neptune-ui/imports/assets/fonts/
62}
63
64PACKAGES =+ "${PN}-apps"
65RRECOMMENDS_${PN} += "${PN}-apps"
66
67FILES_${PN}-apps += "/usr/neptune-ui/apps"
68FILES_${PN} += "\
69 /usr/neptune-ui \
70 ${datadir}/fonts/ttf \
71 "
72
73SYSTEMD_SERVICE_${PN} = "neptune.service"
diff --git a/meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch b/meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch
new file mode 100644
index 0000000..e3f81fa
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/qmllive-target/qmllive-target.patch
@@ -0,0 +1,19 @@
1diff --git a/runtime.pro b/runtime.pro
2index 73dd6d7..e569b23 100644
3--- a/runtime.pro
4+++ b/runtime.pro
5@@ -1,5 +1,4 @@
6 TARGET = qmlliveruntime
7-DESTDIR = ../../bin
8
9 QT *= widgets quick
10 osx: CONFIG -= app_bundle
11@@ -14,6 +13,6 @@ include(../src.pri)
12 RESOURCES += \
13 qml.qrc
14
15-
16-
17+target.path += /usr/bin
18+INSTALLS += target
19
diff --git a/meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb b/meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb
new file mode 100644
index 0000000..54f1188
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/qmllive-target_git.bb
@@ -0,0 +1,50 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "QML Live target runtime"
31
32LICENSE = "GPL-3.0"
33LIC_FILES_CHKSUM = "file://../../LICENSE.GPL3;md5=75cd0dbc6f2d24e7eeb128ff59b74f4c"
34
35inherit qmake5
36require recipes-qt/qt5/qt5-git.inc
37
38QT_GIT_PROJECT = "qt-apps"
39QT_MODULE = "qmllive"
40QT_MODULE_BRANCH = "master"
41
42SRC_URI += " \
43 file://qmllive-target.patch \
44 "
45
46SRCREV = "d0d41c71c4691a5f3e2b72e22917f314b4190ffc"
47
48S = "${WORKDIR}/git/src/runtime"
49
50DEPENDS = "qtbase qtdeclarative"
diff --git a/meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb b/meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb
new file mode 100644
index 0000000..ae66e8a
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/qtapplicationmanager_git.bb
@@ -0,0 +1,70 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt component for application lifecycle management"
31LICENSE = "(GFDL-1.3 & The-Qt-Company-GPL-Exception-1.0 & (LGPL-3.0 | GPL-2.0+)) | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=ff238b33ff354a0d8d79851a9c061717"
33
34inherit qt5-module
35require recipes-qt/qt5/qt5-git.inc
36
37SRCREV = "5581e400c95a1ff736c55c9d93bd451302970c11"
38
39DEPENDS = "qtbase qtdeclarative libyaml libarchive \
40 ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
41
42RDEPENDS_${PN} = "libcrypto ${PN}-tools"
43RDEPENDS_${PN}_remove_mingw32 = "libcrypto"
44
45EXTRA_QMAKEVARS_PRE += "\
46 ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "-config force-multiprocess", "-config force-singleprocess", d)} \
47 -config install-prefix=/usr \
48 -config systemd-workaround \
49 -config hardware-id=neptune \
50 "
51
52do_install_append() {
53 install -m 0755 -d ${D}/opt/am/
54 install -m 0644 ${S}/template-opt/am/config.yaml ${D}/opt/am/
55}
56
57FILES_${PN} += "\
58 /opt/am \
59 "
60
61BBCLASSEXTEND += "nativesdk"
62
63# nativesdk-qtdeclarative is added only to make build deterministic, can be removed once
64# there is a configure option to disable its usage.
65DEPENDS_class-nativesdk = "qtbase nativesdk-qtdeclarative nativesdk-glibc-locale nativesdk-libarchive"
66DEPENDS_class-nativesdk_remove_mingw32 = "nativesdk-glibc-locale nativesdk-libarchive"
67
68EXTRA_QMAKEVARS_PRE_class-nativesdk = "\
69 -config tools-only \
70 "
diff --git a/meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch b/meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch
new file mode 100644
index 0000000..9f6c0c0
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/qtivi/0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch
@@ -0,0 +1,29 @@
1From b4ed8c9d4a391771cba485bfa685147126260dc2 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Thu, 7 Sep 2017 10:24:11 +0300
4Subject: [PATCH] Use QT_HOST_BINS/get for getting correct path
5
6Patch QT_HOST_BINS same way as is done it qtbase for getting
7the EffectivePath instead of installation path.
8
9Change-Id: I3e9c04019c432e182dcb5c0898275173f20de1e2
10---
11 mkspecs/features/ivigenerator.prf | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/mkspecs/features/ivigenerator.prf b/mkspecs/features/ivigenerator.prf
15index 65c497e..7634355 100644
16--- a/mkspecs/features/ivigenerator.prf
17+++ b/mkspecs/features/ivigenerator.prf
18@@ -31,9 +31,9 @@ QFACE_YAML = $$QFACE_ABS_PWD/$${QFACE_BASE_NAME}.yaml
19 OTHER_FILES += $$QFACE_FILE
20
21 # Detect whether we are using the feature inside the qtivi repository
22-VIRTUALENV_PATH = $$[QT_HOST_BINS]/ivigenerator/qtivi_qface_virtualenv
23+VIRTUALENV_PATH = $$[QT_HOST_BINS/get]/ivigenerator/qtivi_qface_virtualenv
24 INTERNAL_VIRTUALENV_PATH = $$QTIVI_BUILD_ROOT/src/tools/ivigenerator/qtivi_qface_virtualenv
25-IVI_GENERATOR_PATH = $$[QT_HOST_BINS]/ivigenerator
26+IVI_GENERATOR_PATH = $$[QT_HOST_BINS/get]/ivigenerator
27 QTEST_ENVIRONMENT = $$upper($$(QTEST_ENVIRONMENT))
28
29 # Try to use the internal virtualenv when building qtivi
diff --git a/meta-boot2qt/recipes-qt/automotive/qtivi_git.bb b/meta-boot2qt/recipes-qt/automotive/qtivi_git.bb
new file mode 100644
index 0000000..5cbf131
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/qtivi_git.bb
@@ -0,0 +1,110 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt IVI"
31LICENSE = "(GFDL-1.3 & BSD & The-Qt-Company-GPL-Exception-1.0 & (LGPL-3.0 | GPL-2.0+)) | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
33 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
34 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
35 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
36 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02"
37
38DEPENDS = "qtbase qtdeclarative qtmultimedia qtivi-native"
39DEPENDS_class-native = "qtbase"
40DEPENDS_class-nativesdk = "qtbase"
41
42inherit qt5-module
43inherit python3native
44require recipes-qt/qt5/qt5-git.inc
45
46QT_MODULE_BRANCH_QFACE = "upstream/develop"
47
48SRC_URI += " \
49 ${QT_GIT}/qtivi-qface.git;name=qface;branch=${QT_MODULE_BRANCH_QFACE};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/qface \
50 file://0001-Use-QT_HOST_BINS-get-for-getting-correct-path.patch \
51"
52
53SRCREV_qtivi = "8d482b27c6c0c2b664104fd777ddee92652ab65c"
54SRCREV_qface = "9da793d6cbc63d617ad5e2ffd13e9f6d055c88e8"
55SRCREV = "${SRCREV_qtivi}"
56SRCREV_FORMAT = "qtivi_qface"
57
58PACKAGECONFIG ?= "taglib ivigenerator"
59PACKAGECONFIG[taglib] = "QMAKE_EXTRA_ARGS+=-feature-taglib,QMAKE_EXTRA_ARGS+=-no-feature-taglib,taglib"
60PACKAGECONFIG[dlt] = "QMAKE_EXTRA_ARGS+=-feature-dlt,QMAKE_EXTRA_ARGS+=-no-feature-dlt,dlt-daemon"
61PACKAGECONFIG[geniviextras-only] = "QMAKE_EXTRA_ARGS+=--geniviextras-only"
62# For cross-compiling tell qtivi to use the system-ivigenerator, which is installed by the native recipe"
63PACKAGECONFIG[ivigenerator] = "QMAKE_EXTRA_ARGS+=-system-ivigenerator"
64PACKAGECONFIG[ivigenerator-native] = "QMAKE_EXTRA_ARGS+=-qt-ivigenerator,,python3 python3-virtualenv"
65PACKAGECONFIG[host-tools-only] = "QMAKE_EXTRA_ARGS+=-host-tools-only"
66PACKAGECONFIG[simulator] = "QMAKE_EXTRA_ARGS+=-feature-simulator,QMAKE_EXTRA_ARGS+=-no-feature-simulator,qtsimulator"
67PACKAGECONFIG[simulator-native] = "QMAKE_EXTRA_ARGS+=-feature-simulator QMAKE_EXTRA_ARGS+=--force-ivigenerator-qtsimulator"
68
69PACKAGECONFIG_class-native ??= "host-tools-only ivigenerator-native"
70PACKAGECONFIG_class-nativesdk ??= "${PACKAGECONFIG_class-native}"
71PACKAGECONFIG_class-nativesdk_mingw32 ??= "host-tools-only"
72
73ALLOW_EMPTY_${PN}-tools = "1"
74
75EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS} ${@bb.utils.contains_any('PACKAGECONFIG', 'ivigenerator ivigenerator-native', '', 'QMAKE_EXTRA_ARGS+=-no-ivigenerator', d)}"
76
77set_python_paths() {
78 # Otherwise pip might cache or reuse something from our home folder
79 export HOME="${STAGING_DATADIR_NATIVE}"
80 # This is needed as otherwise the virtualenv tries to use the libs from the host
81 export LD_LIBRARY_PATH="${STAGING_LIBDIR_NATIVE}"
82 # Let qtivi use the python3-native binaries
83 export PYTHON3_PATH="${STAGING_BINDIR_NATIVE}/python3-native"
84}
85do_compile_prepend() {
86 set_python_paths
87}
88do_install_prepend() {
89 set_python_paths
90}
91
92# This needs a modified python3 recipe which copies the binary into a path where this recipe can pick it up
93# This is needed to provide a proper executable using the correct interpreter in the SDK.
94# See https://bugreports.qt.io/browse/AUTOSUITE-176
95do_install_append_class-nativesdk() {
96 export IVIGENERATOR_ENABLED="${@bb.utils.contains("PACKAGECONFIG", "ivigenerator-native", "1", "0", d)}"
97
98 if [ "${IVIGENERATOR_ENABLED}" = "1" ]; then
99 cp ${STAGING_BINDIR}/qt5/python3* ${D}/${OE_QMAKE_PATH_BINS}/ivigenerator/qtivi_qface_virtualenv/bin/
100 rm -f ${D}/${OE_QMAKE_PATH_BINS}/ivigenerator/qtivi_qface_virtualenv/bin/python
101 ln -sf python3 ${D}/${OE_QMAKE_PATH_BINS}/ivigenerator/qtivi_qface_virtualenv/bin/python
102 fi
103}
104
105
106BBCLASSEXTEND += "native nativesdk"
107
108INSANE_SKIP_${PN}_class-native = "already-stripped"
109INSANE_SKIP_${PN}_class-nativesdk = "already-stripped"
110INSANE_SKIP_${PN}-tools_class-nativesdk = "staticdev"
diff --git a/meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb b/meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb
new file mode 100644
index 0000000..9cc0d37
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/automotive/qtwebbrowser_git.bb
@@ -0,0 +1,45 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt Web Browser"
31LICENSE = "GPL-3.0"
32LIC_FILES_CHKSUM = "file://LICENSE.GPLv3;md5=a40e2bb02b1ac431f461afd03ff9d1d6"
33
34inherit qmake5
35require recipes-qt/qt5/qt5-git.inc
36
37QT_GIT_PROJECT = "qt-apps"
38QT_MODULE_BRANCH = "dev"
39
40SRCREV = "023733af5523a5ad84359926224fa106001215f4"
41
42DEPENDS = "qtbase qtdeclarative qtwebengine"
43
44FILES_${PN} += "/data/user/qt/qtwebbrowser-app"
45FILES_${PN}-dbg += "/data/user/qt/qtwebbrowser-app/.debug"
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb
new file mode 100644
index 0000000..9c52606
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller.bb
@@ -0,0 +1,56 @@
1############################################################################
2##
3## Copyright (C) 2017 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Boot to Qt Appcontroller"
31LICENSE = "The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://main.cpp;md5=f25c7436dbc72d4719a5684b28dbcf4b;beginline=1;endline=17"
33
34inherit qmake5
35require recipes-qt/qt5/qt5-git.inc
36
37SRC_URI = " \
38 git://codereview.qt-project.org/qt-apps/boot2qt-appcontroller;${QT_MODULE_BRANCH_PARAM};protocol=http \
39 file://appcontroller.conf \
40 "
41
42SRCREV = "5ab7fdbf0845c40418272bafa565295511055d3b"
43
44DEPENDS = "qtbase"
45
46do_configure_append() {
47 sed -i -e '/^platform=/d' ${WORKDIR}/appcontroller.conf
48 echo platform=${MACHINE} >> ${WORKDIR}/appcontroller.conf
49}
50
51do_install_append() {
52 install -m 0755 -d ${D}${sysconfdir}
53 install -m 0755 ${WORKDIR}/appcontroller.conf ${D}${sysconfdir}/
54}
55
56FILES_${PN} += "${sysconfdir}/appcontroller.conf"
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf
new file mode 100644
index 0000000..1ef3732
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf
@@ -0,0 +1,7 @@
1env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
2env=QT_IM_MODULE=qtvirtualkeyboard
3env=QT_QPA_EGLFS_FORCE888=0
4env=QT_QUICK_CONTROLS_1_STYLE=Flat
5env=XDG_RUNTIME_DIR=/tmp
6env=QTWEBENGINE_DISABLE_SANDBOX=1
7base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf
new file mode 100644
index 0000000..4fa1931
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf
@@ -0,0 +1,9 @@
1env=QMLSCENE_DEVICE=softwarecontext
2env=QT_QPA_PLATFORM=linuxfb
3env=QSG_RENDER_LOOP=basic
4env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
5env=QT_IM_MODULE=qtvirtualkeyboard
6env=QT_QUICK_CONTROLS_1_STYLE=Flat
7env=XDG_RUNTIME_DIR=/tmp
8env=QTWEBENGINE_DISABLE_SANDBOX=1
9base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf
new file mode 100644
index 0000000..2bc6eca
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf
@@ -0,0 +1,10 @@
1env=QT_QPA_GENERIC_PLUGINS=simulator
2env=QT_QPA_EGLFS_HIDECURSOR=1
3env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
4env=QT_IM_MODULE=qtvirtualkeyboard
5env=QTGLESSTREAM_DISPLAY=192.168.56.1
6env=SIMULATOR_HOSTNAME=192.168.56.1
7env=QT_QUICK_CONTROLS_1_STYLE=Flat
8env=XDG_RUNTIME_DIR=/tmp
9env=QTWEBENGINE_DISABLE_SANDBOX=1
10base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf
new file mode 100644
index 0000000..4e3415f
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf
@@ -0,0 +1,10 @@
1env=FB_MULTI_BUFFER=2
2env=QT_QPA_EGLFS_FORCEVSYNC=1
3env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
4env=QT_IM_MODULE=qtvirtualkeyboard
5env=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0
6env=QT_GSTREAMER_CAMERABIN_VIDEOSRC=mxc_v4l2=imxv4l2videosrc,v4l2src
7env=QT_QUICK_CONTROLS_1_STYLE=Flat
8env=XDG_RUNTIME_DIR=/tmp
9env=QTWEBENGINE_DISABLE_SANDBOX=1
10base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf
new file mode 100644
index 0000000..b27315e
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/mx7/appcontroller.conf
@@ -0,0 +1,9 @@
1env=QMLSCENE_DEVICE=softwarecontext
2env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
3env=QT_QPA_PLATFORM=linuxfb
4env=QSG_RENDER_LOOP=basic
5env=QT_IM_MODULE=qtvirtualkeyboard
6env=QT_QUICK_CONTROLS_1_STYLE=Flat
7env=XDG_RUNTIME_DIR=/tmp
8env=QTWEBENGINE_DISABLE_SANDBOX=1
9base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf
new file mode 100644
index 0000000..0915343
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf
@@ -0,0 +1,7 @@
1env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
2env=QT_IM_MODULE=qtvirtualkeyboard
3env=QT_QPA_EGLFS_FORCE888=1
4env=QT_QUICK_CONTROLS_1_STYLE=Flat
5env=XDG_RUNTIME_DIR=/tmp
6env=QTWEBENGINE_DISABLE_SANDBOX=1
7base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf
new file mode 100644
index 0000000..21bb44c
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/tegra-t18x/appcontroller.conf
@@ -0,0 +1,8 @@
1env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
2env=QT_IM_MODULE=qtvirtualkeyboard
3env=QT_QPA_EGLFS_FORCE888=0
4env=QT_QUICK_CONTROLS_1_STYLE=Flat
5env=XDG_RUNTIME_DIR=/tmp
6env=QSG_RENDER_LOOP=basic
7env=QTWEBENGINE_DISABLE_SANDBOX=1
8base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf
new file mode 100644
index 0000000..37284de
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-appcontroller/ti33x/appcontroller.conf
@@ -0,0 +1,8 @@
1env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
2env=QT_IM_MODULE=qtvirtualkeyboard
3env=QT_QPA_EGLFS_FORCE888=0
4env=QT_QUICK_CONTROLS_1_STYLE=Flat
5env=QT_QPA_EGLFS_INTEGRATION=none
6env=XDG_RUNTIME_DIR=/tmp
7env=QTWEBENGINE_DISABLE_SANDBOX=1
8base=linux
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb
new file mode 100644
index 0000000..3726482
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-demos.bb
@@ -0,0 +1,134 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Boot to Qt Demos"
31LICENSE = "BSD | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://about-b2qt/AboutBoot2Qt.qml;md5=b0a1a6eef4a172b0a8cb4dad9a167d91;beginline=1;endline=49"
33
34inherit qmake5
35
36QT_GIT_PROJECT=""
37
38SRC_URI = " \
39 ${QT_GIT}qt-apps/boot2qt-demos.git;branch=${BRANCH};name=demos \
40 ${QT_GIT}qt/qtcanvas3d.git;branch=${QT_BRANCH};name=qtcanvas3d;destsuffix=qtcanvas3d \
41 ${QT_GIT}qt/qtquickcontrols.git;branch=${QT_BRANCH};name=qtquickcontrols;destsuffix=qtquickcontrols \
42 ${QT_GIT}qt-apps/qtwebbrowser.git;branch=${BROWSER_BRANCH};name=qtwebbrowser;destsuffix=git/basicsuite/qtwebbrowser/tqtc-qtwebbrowser \
43 https://s3-eu-west-1.amazonaws.com/qt-files/examples/Videos/Qt_video_720p.webm;name=video1 \
44 https://s3-eu-west-1.amazonaws.com/qt-files/examples/Videos/Qt+World+Summit+2015+Recap.mp4;name=video2 \
45 "
46
47PV = "5.11.0+git${SRCPV}"
48
49BRANCH = "5.10"
50BROWSER_BRANCH = "dev"
51QT_BRANCH = "5.10"
52SRCREV_demos = "f9c7da64cea85d44998e62f4e0d3ec217a22f0d2"
53SRCREV_qtcanvas3d = "32404e27101c5ec81b4ab965faf38263429bbc5a"
54SRCREV_qtquickcontrols = "c6713e212ef0b97c45d6466b73220567e94a05f1"
55SRCREV_qtwebbrowser = "7c570ee4297946f3ed70565a630d690070533cbd"
56SRCREV_FORMAT = "demos_qtcanvas3d_qtquickcontrols_qtwebbrowser"
57
58SRC_URI[video1.md5sum] = "56de4dcfd5201952dce9af9c69fcec9b"
59SRC_URI[video1.sha256sum] = "809123419acac99353439e52c870e2e497dfa8f434ef0777e6c7303e6ad27f89"
60SRC_URI[video2.md5sum] = "e03422de1dba27189872e7d579e7da1b"
61SRC_URI[video2.sha256sum] = "651e0b4d2b3272dc10bfc9edba4f0c1a7084cd087c75e8a098f7ba3454c7e485"
62
63S = "${WORKDIR}/git/basicsuite"
64
65DEPENDS = "qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtgraphicaleffects qtsensors qtmultimedia qtcanvas3d \
66 ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
67
68do_install_append() {
69 # we only need plugins from the demos
70 rm -rf ${D}/data/user/camera
71 rm -rf ${D}/data/user/sensorexplorer
72 rm -rf ${D}/data/user/qtwebbrowser
73
74 # we need all qml and content files
75 cp -r ${S}/* ${D}/data/user/qt/
76
77 # but none of the source files
78 find ${D}/data/user/qt/ \( -name '*.cpp' -or -name '*.h' -or -name '*.pro' \) -delete
79 rm -rf ${D}/data/user/qt/qtwebbrowser/tqtc-qtwebbrowser
80 rm -rf ${D}/data/user/qt/qtwebbrowser/qmldir
81
82 if [ -d ${WORKDIR}/git/images ]; then
83 install -d 0755 ${D}/data/images
84 install -m 0644 ${WORKDIR}/git/images/* ${D}/data/images/
85 fi
86
87 install -d -m 0755 ${D}/data/videos
88 install -m 0644 ${WORKDIR}/Qt_video_720p.webm ${D}/data/videos
89 install -m 0644 ${WORKDIR}/Qt+World+Summit+2015+Recap.mp4 ${D}/data/videos
90
91 cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/*.qml ${D}/data/user/qt/canvas3d-planets
92 cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/*.js ${D}/data/user/qt/canvas3d-planets
93 cp -r ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/images ${D}/data/user/qt/canvas3d-planets
94 cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/controls/ControlEventSource.qml ${D}/data/user/qt/canvas3d-planets
95 cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/3rdparty/*.js ${D}/data/user/qt/canvas3d-planets
96
97 # get rid of qrc:/ prefixes and the custom slider
98 sed -i 's/qrc:\(\/\)\?//g' ${D}/data/user/qt/canvas3d-planets/*.qml
99 sed -i 's/qrc:\(\/\)\?//g' ${D}/data/user/qt/canvas3d-planets/*.js
100 sed -i 's/StyledSlider/Slider/g' ${D}/data/user/qt/canvas3d-planets/planets.qml
101 sed -i '/import QtCanvas3D/a import QtQuick.Controls 1.2' ${D}/data/user/qt/canvas3d-planets/planets.qml
102
103 # Qt Quick Extras
104 cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/dashboard/qml ${D}/data/user/qt/enterprise-dashboard/
105 cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/dashboard/images ${D}/data/user/qt/enterprise-dashboard/
106
107 cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/gallery/qml ${D}/data/user/qt/enterprise-gallery/
108 cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/gallery/images ${D}/data/user/qt/enterprise-gallery/
109 cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/gallery/fonts ${D}/data/user/qt/enterprise-gallery/
110
111 cp -r ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/flat/images ${D}/data/user/qt/enterprise-flat-controls/
112 cp ${WORKDIR}/qtquickcontrols/examples/quickcontrols/extras/flat/*.qml ${D}/data/user/qt/enterprise-flat-controls/
113
114 sed -i '/import QtQuick.Window/c\' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml
115 sed -i 's/Window /Rectangle /1' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml
116 sed -i 's/ApplicationWindow /Rectangle /1' ${D}/data/user/qt/enterprise-flat-controls/main.qml
117 sed -i '/title: "Qt Quick Extras Demo"/c\' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml
118 sed -i '/title: "Flat Example"/c\' ${D}/data/user/qt/enterprise-flat-controls/main.qml
119 sed -i 's/"Light Flat UI Demo"/"Qt Quick Controls"/1' ${D}/data/user/qt/enterprise-flat-controls/main.qml
120 sed -i '/{ name: "Exit", action: null }/c\' ${D}/data/user/qt/enterprise-flat-controls/main.qml
121
122 sed -i -e 's/qrc:/../g' ${D}/data/user/qt/enterprise-dashboard/qml/* ${D}/data/user/qt/enterprise-gallery/qml/*
123 sed -i 's/qrc:\///g' ${D}/data/user/qt/enterprise-flat-controls/Content.qml
124}
125
126FILES_${PN} += " \
127 /data/images/ \
128 /data/videos/ \
129 /data/user \
130 "
131
132FILES_${PN}-dbg += " \
133 /data/user/qt/qmlplugins/*/.debug/ \
134 "
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb
new file mode 100644
index 0000000..225079d
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher.bb
@@ -0,0 +1,65 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Boot to Qt Demo Launcher"
31LICENSE = "(BSD & GPL-3.0) | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504"
33
34inherit qmake5
35require recipes-qt/qt5/qt5-git.inc
36
37QT_GIT_PROJECT = "qt-apps"
38QT_MODULE = "boot2qt-launcher"
39
40SRC_URI += " \
41 file://b2qt-startup.sh \
42 file://qtlauncher.service \
43 file://b2qt.service \
44 "
45
46SRCREV = "8d7fe0e4b8852a16469a6d0fe910309e8964ab58"
47
48DEPENDS = "qtbase qtdeclarative \
49 ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
50
51do_install_append() {
52 install -m 0755 -d ${D}${sysconfdir}/init.d
53 install -m 0755 ${WORKDIR}/b2qt-startup.sh ${D}${sysconfdir}/init.d/
54
55 install -m 0755 -d ${D}${systemd_unitdir}/system
56 install -m 0644 ${WORKDIR}/qtlauncher.service ${D}${systemd_unitdir}/system/
57 install -m 0644 ${WORKDIR}/b2qt.service ${D}${systemd_unitdir}/system/
58}
59
60INITSCRIPT_NAME = "b2qt-startup.sh"
61INITSCRIPT_PARAMS = "defaults 30"
62
63SYSTEMD_SERVICE_${PN} = "qtlauncher.service b2qt.service"
64
65inherit update-rc.d systemd
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh
new file mode 100755
index 0000000..89e4bbb
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh
@@ -0,0 +1,49 @@
1#!/bin/sh
2############################################################################
3##
4## Copyright (C) 2016 The Qt Company Ltd.
5## Contact: https://www.qt.io/licensing/
6##
7## This file is part of the Boot to Qt meta layer.
8##
9## $QT_BEGIN_LICENSE:GPL$
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 https://www.qt.io/terms-conditions. For further
16## information use the contact form at https://www.qt.io/contact-us.
17##
18## GNU General Public License Usage
19## Alternatively, this file may be used under the terms of the GNU
20## General Public License version 3 or (at your option) any later version
21## approved by the KDE Free Qt Foundation. The licenses are as published by
22## the Free Software Foundation and appearing in the file LICENSE.GPL3
23## included in the packaging of this file. Please review the following
24## information to ensure the GNU General Public License requirements will
25## be met: https://www.gnu.org/licenses/gpl-3.0.html.
26##
27## $QT_END_LICENSE$
28##
29############################################################################
30
31case "$1" in
32start)
33 if [ -x /data/user/b2qt ]; then
34 APP="/data/user/b2qt"
35 elif [ -x /usr/bin/b2qt ]; then
36 APP="/usr/bin/b2qt"
37 else
38 APP="/usr/bin/qtlauncher --applications-root /data/user/qt"
39 fi
40 /usr/bin/appcontroller ${APP} &
41 ;;
42stop)
43 /usr/bin/appcontroller --stop
44 ;;
45*)
46 echo "Usage: $0 {start|stop}"
47 exit 1
48esac
49exit 0
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service
new file mode 100644
index 0000000..f941f91
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/b2qt.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=B2Qt user application
3After=systemd-user-sessions.service
4ConditionPathExists=/usr/bin/b2qt
5
6[Service]
7ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt
8
9[Install]
10WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service
new file mode 100644
index 0000000..cdf6480
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=B2Qt user application
3BindsTo=dev-fb0.device
4After=dev-fb0.device
5ConditionPathExists=/usr/bin/b2qt
6
7[Service]
8ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service
new file mode 100644
index 0000000..1094675
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/qtlauncher.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=B2Qt Launcher Demo
3BindsTo=dev-fb0.device
4After=dev-fb0.device
5ConditionPathExists=!/usr/bin/b2qt
6
7[Service]
8ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service
new file mode 100644
index 0000000..65fba92
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/b2qt.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=B2Qt user application
3After=multi-user.target
4ConditionPathExists=/usr/bin/b2qt
5
6[Service]
7ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt
8
9[Install]
10WantedBy=custom.target
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service
new file mode 100644
index 0000000..2b02c87
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/emulator/qtlauncher.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=B2Qt Launcher Demo
3After=multi-user.target
4
5ConditionPathExists=!/usr/bin/b2qt
6
7[Service]
8ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt
9
10[Install]
11WantedBy=custom.target
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service
new file mode 100644
index 0000000..7658ca8
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/b2qt-launcher/qtlauncher.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=B2Qt Launcher Demo
3After=systemd-user-sessions.service
4ConditionPathExists=!/usr/bin/b2qt
5
6[Service]
7ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt
8
9[Install]
10WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb b/meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb
new file mode 100644
index 0000000..3d9a196
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/democompositor_git.bb
@@ -0,0 +1,47 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Boot to Qt Wayland Demo Compositor"
31LICENSE = "BSD | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://main.cpp;md5=b0a1a6eef4a172b0a8cb4dad9a167d91;beginline=1;endline=49"
33
34inherit qmake5
35require recipes-qt/qt5/qt5-git.inc
36
37QT_GIT_PROJECT = "qt-apps"
38QT_MODULE = "boot2qt-demos"
39
40SRCREV = "b9585b440819e1444b20f30435f81c46801158c5"
41
42S = "${WORKDIR}/git/wayland/democompositor/"
43
44DEPENDS = "qtbase qtwayland"
45
46FILES_${PN} += "/data/user/democompositor"
47FILES_${PN}-dbg += "/data/user/democompositor/.debug"
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb
new file mode 100644
index 0000000..8057e19
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd.bb
@@ -0,0 +1,72 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt Debug Bridge Daemon"
31SECTION = "devel"
32LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1"
33LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504"
34
35inherit distro_features_check
36inherit qmake5
37require recipes-qt/qt5/qt5-git.inc
38
39QT_GIT_PROJECT = "qt-apps"
40QT_MODULE = "qdb"
41QT_MODULE_BRANCH = "5.9"
42
43SRC_URI += "file://b2qt-gadget-network.sh \
44 file://defaults \
45 file://qdbd.service \
46 file://qdbd-init.sh \
47 "
48
49SRCREV = "69f95b6a8d2ca0912a8d502a2b6871109725731e"
50PV = "1.1.0+git${SRCPV}"
51
52REQUIRED_DISTRO_FEATURES = "systemd"
53DEPENDS = "qtbase"
54RRECOMMENDS_${PN} += "kernel-module-usb-f-fs kernel-module-usb-f-rndis"
55
56EXTRA_QMAKEVARS_PRE = "CONFIG+=daemon_only"
57
58do_install_append() {
59 install -m 0755 ${WORKDIR}/b2qt-gadget-network.sh ${D}${bindir}/
60
61 install -m 0755 ${WORKDIR}/qdbd-init.sh ${D}${bindir}/
62
63 install -m 0755 -d ${D}${systemd_unitdir}/system
64 install -m 0644 ${WORKDIR}/qdbd.service ${D}${systemd_unitdir}/system/
65
66 install -m 0755 -d ${D}${sysconfdir}/default
67 install -m 0644 ${WORKDIR}/defaults ${D}${sysconfdir}/default/qdbd
68}
69
70SYSTEMD_SERVICE_${PN} = "qdbd.service"
71
72inherit systemd
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh
new file mode 100755
index 0000000..3161db7
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/b2qt-gadget-network.sh
@@ -0,0 +1,103 @@
1#!/bin/sh
2############################################################################
3##
4## Copyright (C) 2017 The Qt Company Ltd.
5## Contact: https://www.qt.io/licensing/
6##
7## This file is part of the Boot to Qt meta layer.
8##
9## $QT_BEGIN_LICENSE:GPL$
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 https://www.qt.io/terms-conditions. For further
16## information use the contact form at https://www.qt.io/contact-us.
17##
18## GNU General Public License Usage
19## Alternatively, this file may be used under the terms of the GNU
20## General Public License version 3 or (at your option) any later version
21## approved by the KDE Free Qt Foundation. The licenses are as published by
22## the Free Software Foundation and appearing in the file LICENSE.GPL3
23## included in the packaging of this file. Please review the following
24## information to ensure the GNU General Public License requirements will
25## be met: https://www.gnu.org/licenses/gpl-3.0.html.
26##
27## $QT_END_LICENSE$
28##
29############################################################################
30
31set -e
32
33NETWORK_UNIT=/usr/lib/systemd/network/usb-rndis.network
34
35usage() {
36 echo "Usage: $(basename $0) --reset"
37 echo " $(basename $0) --set <network>"
38 echo
39 echo "Network is given as the device IPv4 address followed by the prefix length."
40 echo "For example \"192.168.0.1/24\"."
41 exit 1
42}
43
44while test -n "$1"; do
45 case "$1" in
46 "help" | "--help" | "-h")
47 usage
48 exit 0
49 ;;
50 "--reset")
51 if [ -n "$COMMAND" ]; then
52 usage
53 exit 1
54 fi
55 COMMAND="reset"
56 ;;
57 "--set")
58 if [ -n "$COMMAND" ]; then
59 usage
60 exit 1
61 fi
62 COMMAND="set"
63 shift
64 NETWORK=$1
65 ;;
66 esac
67 shift
68done
69
70if [ -z "$COMMAND" ]; then
71 usage
72 exit 1
73fi
74
75case "$COMMAND" in
76 "set")
77 cat <<EOF > $NETWORK_UNIT
78# This file is automatically written by b2qt-gadget-network.sh
79[Match]
80Type=gadget
81
82[Network]
83Address=${NETWORK}
84DHCPServer=yes
85
86[DHCPServer]
87EmitDNS=no
88EmitRouter=no
89EOF
90 ;;
91 "reset")
92 cat <<EOF > $NETWORK_UNIT
93# This file is automatically written by b2qt-gadget-network.sh
94[Match]
95Type=gadget
96
97[Network]
98DHCPServer=no
99EOF
100 ;;
101esac
102
103systemctl restart systemd-networkd
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults
new file mode 100644
index 0000000..5ced90d
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/defaults
@@ -0,0 +1,8 @@
1VENDOR=0xdbdb
2PRODUCT=0x0001
3if [ -e /sys/class/net/eth0/address ]; then
4 SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address)
5else
6 SERIAL=$(hostname)-$(cat /etc/machine-id)
7fi
8export QT_HASH_SEED=0
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh
new file mode 100755
index 0000000..15981b0
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh
@@ -0,0 +1,120 @@
1#! /bin/sh
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:BSD$
9## You may use this file under the terms of the BSD license as follows:
10##
11## "Redistribution and use in source and binary forms, with or without
12## modification, are permitted provided that the following conditions are
13## met:
14## * Redistributions of source code must retain the above copyright
15## notice, this list of conditions and the following disclaimer.
16## * Redistributions in binary form must reproduce the above copyright
17## notice, this list of conditions and the following disclaimer in
18## the documentation and/or other materials provided with the
19## distribution.
20## * Neither the name of The Qt Company Ltd nor the names of its
21## contributors may be used to endorse or promote products derived
22## from this software without specific prior written permission.
23##
24##
25## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36##
37## $QT_END_LICENSE$
38###############################################################################
39MANUFACTURER="The Qt Company"
40PRODUCT_STRING="Boot2Qt Ethernet/RNDIS connection"
41
42DAEMON=/usr/bin/qdbd
43CONFIGFS_PATH=/sys/kernel/config
44
45GADGET_CONFIG=$CONFIGFS_PATH/usb_gadget/g1
46
47. /etc/default/qdbd
48
49initialize_gadget() {
50 # Initialize gadget with first UDC driver
51 for driverpath in /sys/class/udc/*; do
52 drivername=`basename $driverpath`
53 echo "$drivername" > $GADGET_CONFIG/UDC
54 break
55 done
56}
57
58disable_gadget() {
59 echo "" > $GADGET_CONFIG/UDC
60}
61
62case "$1" in
63start)
64 b2qt-gadget-network.sh --reset
65 modprobe libcomposite
66 sleep 1
67 # Gadget configuration
68 mkdir -p $GADGET_CONFIG
69 echo $VENDOR > $GADGET_CONFIG/idVendor
70 echo $PRODUCT > $GADGET_CONFIG/idProduct
71 mkdir -p $GADGET_CONFIG/strings/0x409
72 echo $MANUFACTURER > $GADGET_CONFIG/strings/0x409/manufacturer
73 echo $PRODUCT_STRING > $GADGET_CONFIG/strings/0x409/product
74 echo ${SERIAL:0:32} > $GADGET_CONFIG/strings/0x409/serialnumber
75 mkdir -p $GADGET_CONFIG/configs/c.1/strings/0x409
76 echo "USB Ethernet + QDB" > $GADGET_CONFIG/configs/c.1/strings/0x409/configuration
77 mkdir -p $GADGET_CONFIG/functions/rndis.usb0
78 mkdir -p $GADGET_CONFIG/functions/ffs.qdb
79 ln -sf $GADGET_CONFIG/functions/rndis.usb0 $GADGET_CONFIG/configs/c.1
80 ln -sf $GADGET_CONFIG/functions/ffs.qdb $GADGET_CONFIG/configs/c.1
81 # Function fs mountpoints
82 mkdir -p /dev/usb-ffs
83 chmod 770 /dev/usb-ffs
84 mkdir -p /dev/usb-ffs/qdb
85 chmod 770 /dev/usb-ffs/qdb
86 mount -t functionfs qdb /dev/usb-ffs/qdb -o uid=0,gid=0
87 shift
88 start-stop-daemon --start --quiet --exec $DAEMON -- $@ &
89 sleep 1
90 initialize_gadget
91 ;;
92stop)
93 disable_gadget
94 start-stop-daemon --stop --quiet --exec $DAEMON
95 sleep 1
96 umount /dev/usb-ffs/qdb
97 rm $GADGET_CONFIG/configs/c.1/rndis.usb0
98 rm $GADGET_CONFIG/configs/c.1/ffs.qdb
99 rmdir $GADGET_CONFIG/configs/c.1/strings/0x409
100 rmdir $GADGET_CONFIG/configs/c.1
101 rmdir $GADGET_CONFIG/functions/rndis.usb0
102 rmdir $GADGET_CONFIG/functions/ffs.qdb
103 rmdir $GADGET_CONFIG/strings/0x409
104 rmdir $GADGET_CONFIG
105 ;;
106restart)
107 disable_gadget
108 start-stop-daemon --stop --quiet --exec $DAEMON
109 b2qt-gadget-network.sh --reset
110 sleep 1
111 shift
112 start-stop-daemon --start --quiet --exec $DAEMON -- $@ &
113 sleep 1
114 initialize_gadget
115 ;;
116*)
117 echo "Usage: $0 {start|stop|restart}"
118 exit 1
119esac
120exit 0
diff --git a/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service
new file mode 100644
index 0000000..be8e701
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/b2qt-addons/qdbd/qdbd.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Qt Debug Bridge Daemon
3After=basic.target
4
5[Service]
6Type=forking
7ExecStart=/usr/bin/qdbd-init.sh start
8ExecStop=/usr/bin/qdbd-init.sh stop
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb b/meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb
new file mode 100644
index 0000000..5bc09c0
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/installer-framework-native_3.0.1.bb
@@ -0,0 +1,50 @@
1############################################################################
2##
3## Copyright (C) 2017 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt Installer Framework"
31LICENSE = "The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://${QT_LICENSE};md5=80e06902b5f0e94ad0a78ee4f7fcb74b"
33
34inherit bin_package native
35
36do_unpack[depends] += "p7zip-native:do_populate_sysroot"
37
38SRC_URI = "http://download.qt.io/development_releases/installer-framework/${PV}/installer-framework-build-stripped-${PV}-linux-x64.7z"
39
40SRC_URI[md5sum] = "68b7c1f761ca0dba18f1d165d66005d6"
41SRC_URI[sha256sum] = "c2eb769351025e0c7df2882116390fffaf958368f873a2abab99e37caee0a498"
42
43S = "${WORKDIR}/ifw-pkg"
44
45do_install() {
46 install -d ${D}${bindir}
47 install -m 0755 -t ${D}${bindir} ${S}/bin/*
48}
49
50INSANE_SKIP_${PN} += "already-stripped"
diff --git a/meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb b/meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb
new file mode 100644
index 0000000..7405424
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtdeviceutilities.bb
@@ -0,0 +1,44 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt Device Utilities"
31LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504"
33
34inherit qt5-module
35require recipes-qt/qt5/qt5-git.inc
36
37PACKAGECONFIG ??= ""
38PACKAGECONFIG[wpasupplicant] = "CONFIG+=wpasupplicant,,wpa-supplicant"
39
40EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}"
41
42SRCREV = "796fff1debaa161483515779bb68999948d48c59"
43
44DEPENDS = "qtbase qtdeclarative qtconnectivity"
diff --git a/meta-boot2qt/recipes-qt/qt5/qtglesstream.bb b/meta-boot2qt/recipes-qt/qt5/qtglesstream.bb
new file mode 100644
index 0000000..0f942e7
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtglesstream.bb
@@ -0,0 +1,63 @@
1############################################################################
2##
3## Copyright (C) 2017 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "QtGlesStream"
31LICENSE = "The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://qtglesstream.pro;md5=875f34471470b09977705aed7863e440"
33
34inherit qt5-module
35
36SRC_URI = " \
37 git://codereview.qt-project.org/qt/tqtc-qtglesstream;branch=${BRANCH};protocol=ssh \
38 "
39
40PV = "1.0.0"
41SRCREV = "37f98d4b7123378d1ade7beedf5c5150cd26e178"
42BRANCH = "dev"
43
44S = "${WORKDIR}/git"
45
46DEPENDS = "qtbase"
47
48do_install_append() {
49 install -m 0755 -d ${D}${includedir}/EGL
50 install -m 0755 ${S}/headers/EGL/* ${D}${includedir}/EGL
51
52 install -m 0755 -d ${D}${includedir}/GLES2
53 install -m 0755 ${S}/headers/GLES2/* ${D}${includedir}/GLES2
54
55 install -m 0755 -d ${D}${includedir}/GLES3
56 install -m 0755 ${S}/headers/GLES3/* ${D}${includedir}/GLES3
57
58 install -m 0755 -d ${D}${includedir}/KHR
59 install -m 0755 ${S}/headers/KHR/* ${D}${includedir}/KHR
60}
61
62# no not overwrite files from qtglesstream-dummy-client
63do_populate_sysroot[noexec] = "1"
diff --git a/meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb b/meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb
new file mode 100644
index 0000000..495598a
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtotaupdate.bb
@@ -0,0 +1,42 @@
1############################################################################
2##
3## Copyright (C) 2018 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "Qt OTA Update module"
31LICENSE = "GPL-3.0 | The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504"
33
34inherit qt5-module
35require recipes-qt/qt5/qt5-git.inc
36
37QT_MODULE_BRANCH = "master"
38
39SRCREV = "9a7eef1fec80e732451d501a658df9f8058a404d"
40
41RDEPENDS_${PN} = "dracut"
42DEPENDS = "qtbase qtdeclarative ostree"
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target b/meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target
new file mode 100644
index 0000000..05b2268
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/custom.target
@@ -0,0 +1,5 @@
1[Unit]
2Description=Custom Target
3Requires=multi-user.target
4After=multi-user.target
5AllowIsolate=yes
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator
new file mode 100644
index 0000000..aa4a718
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator
@@ -0,0 +1 @@
SIMULATOR_HOSTNAME=192.168.56.1
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh
new file mode 100644
index 0000000..c1a6954
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulator-hostname.sh
@@ -0,0 +1 @@
export SIMULATOR_HOSTNAME=192.168.56.1
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service
new file mode 100644
index 0000000..baf0296
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxy.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=QtSimulator Proxy Daemon
3After=multi-user.target
4
5[Service]
6Type=forking
7ExecStart=/usr/bin/emulatorproxyd
8EnvironmentFile=/etc/default/emulator
9
10[Install]
11WantedBy=custom.target
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh
new file mode 100755
index 0000000..d73f1e7
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator/emulatorproxyd.sh
@@ -0,0 +1,49 @@
1#!/bin/sh
2############################################################################
3##
4## Copyright (C) 2016 The Qt Company Ltd.
5## Contact: https://www.qt.io/licensing/
6##
7## This file is part of the Boot to Qt meta layer.
8##
9## $QT_BEGIN_LICENSE:GPL$
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 https://www.qt.io/terms-conditions. For further
16## information use the contact form at https://www.qt.io/contact-us.
17##
18## GNU General Public License Usage
19## Alternatively, this file may be used under the terms of the GNU
20## General Public License version 3 or (at your option) any later version
21## approved by the KDE Free Qt Foundation. The licenses are as published by
22## the Free Software Foundation and appearing in the file LICENSE.GPL3
23## included in the packaging of this file. Please review the following
24## information to ensure the GNU General Public License requirements will
25## be met: https://www.gnu.org/licenses/gpl-3.0.html.
26##
27## $QT_END_LICENSE$
28##
29############################################################################
30
31DAEMON=/usr/bin/emulatorproxyd
32
33case "$1" in
34start)
35 start-stop-daemon --start --quiet --exec $DAEMON &
36 ;;
37stop)
38 start-stop-daemon --stop --quiet --exec $DAEMON
39 ;;
40restart)
41 start-stop-daemon --stop --quiet --exec $DAEMON
42 sleep 1
43 start-stop-daemon --start --quiet --exec $DAEMON &
44 ;;
45*)
46 echo "Usage: $0 {start|stop|restart}"
47 exit 1
48esac
49exit 0
diff --git a/meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb b/meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb
new file mode 100644
index 0000000..c4c8d21
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/qt5/qtsimulator_1.0.bb
@@ -0,0 +1,74 @@
1############################################################################
2##
3## Copyright (C) 2017 The Qt Company Ltd.
4## Contact: https://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:GPL$
9## Commercial License Usage
10## Licensees holding valid commercial Qt licenses may use this file in
11## accordance with the commercial license agreement provided with the
12## Software or, alternatively, in accordance with the terms contained in
13## a written agreement between you and The Qt Company. For licensing terms
14## and conditions see https://www.qt.io/terms-conditions. For further
15## information use the contact form at https://www.qt.io/contact-us.
16##
17## GNU General Public License Usage
18## Alternatively, this file may be used under the terms of the GNU
19## General Public License version 3 or (at your option) any later version
20## approved by the KDE Free Qt Foundation. The licenses are as published by
21## the Free Software Foundation and appearing in the file LICENSE.GPL3
22## included in the packaging of this file. Please review the following
23## information to ensure the GNU General Public License requirements will
24## be met: https://www.gnu.org/licenses/gpl-3.0.html.
25##
26## $QT_END_LICENSE$
27##
28############################################################################
29
30DESCRIPTION = "QtSimulator"
31LICENSE = "The-Qt-Company-DCLA-2.1"
32LIC_FILES_CHKSUM = "file://src/simulator/simulatorglobal.h;md5=3daa1a609195439d0292259a74c7d615;beginline=1;endline=20"
33
34inherit qt5-module
35
36SRC_URI = " \
37 git://codereview.qt-project.org/tqtc-boot2qt/qtsimulator;branch=${BRANCH};protocol=ssh \
38 file://emulatorproxyd.sh \
39 file://emulatorproxy.service \
40 file://emulator-hostname.sh \
41 file://emulator \
42 file://custom.target \
43 "
44
45SRCREV = "f98633ebee7dbce79c00fbfec86537c6330e2b5f"
46BRANCH = "master"
47
48S = "${WORKDIR}/git"
49
50DEPENDS = "qtbase"
51RRECOMMENDS_${PN} += "${PN}-tools"
52
53# Proxy daemon for QtSimulator
54do_install_append() {
55 install -m 0755 -d ${D}${sysconfdir}/init.d
56 install -m 0755 ${WORKDIR}/emulatorproxyd.sh ${D}${sysconfdir}/init.d/
57
58 install -m 0755 -d ${D}${systemd_unitdir}/system
59 install -m 0644 ${WORKDIR}/emulatorproxy.service ${D}${systemd_unitdir}/system/
60 install -m 0644 ${WORKDIR}/custom.target ${D}${systemd_unitdir}/system/
61
62 install -m 0755 -d ${D}${sysconfdir}/profile.d
63 install -m 0644 ${WORKDIR}/emulator-hostname.sh ${D}${sysconfdir}/profile.d/
64
65 install -m 0755 -d ${D}${sysconfdir}/default
66 install -m 0644 ${WORKDIR}/emulator ${D}${sysconfdir}/default/
67}
68
69INITSCRIPT_NAME = "emulatorproxyd.sh"
70INITSCRIPT_PARAMS = "defaults 97 10"
71
72SYSTEMD_SERVICE_${PN} = "emulatorproxy.service custom.target"
73
74inherit update-rc.d systemd