summaryrefslogtreecommitdiffstats
path: root/meta-boot2qt/recipes-qt/boot2qt-addons
diff options
context:
space:
mode:
Diffstat (limited to 'meta-boot2qt/recipes-qt/boot2qt-addons')
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/appcontroller.conf7
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/colibri-vf/appcontroller.conf9
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/emulator/appcontroller.conf10
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/mx6/appcontroller.conf10
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/mx7/appcontroller.conf9
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/rpi/appcontroller.conf7
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/tegra-t18x/appcontroller.conf8
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/ti33x/appcontroller.conf8
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller_git.bb55
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-demos_git.bb134
-rwxr-xr-xmeta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh49
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt.service10
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/beaglebone/b2qt.service11
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/beaglebone/qtlauncher.service11
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/emulator/b2qt.service10
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/emulator/qtlauncher.service11
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/qtlauncher.service10
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher_git.bb64
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/democompositor_git.bb47
-rwxr-xr-xmeta-boot2qt/recipes-qt/boot2qt-addons/qdb/b2qt-gadget-network.sh103
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/qdb/defaults8
-rwxr-xr-xmeta-boot2qt/recipes-qt/boot2qt-addons/qdb/qdbd-init.sh120
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/qdb/qdbd.service11
-rw-r--r--meta-boot2qt/recipes-qt/boot2qt-addons/qdb_git.bb71
24 files changed, 793 insertions, 0 deletions
diff --git a/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/appcontroller.conf
new file mode 100644
index 0000000..1ef3732
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/colibri-vf/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/colibri-vf/appcontroller.conf
new file mode 100644
index 0000000..4fa1931
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/emulator/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/emulator/appcontroller.conf
new file mode 100644
index 0000000..2bc6eca
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/mx6/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/mx6/appcontroller.conf
new file mode 100644
index 0000000..4e3415f
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/mx7/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/mx7/appcontroller.conf
new file mode 100644
index 0000000..b27315e
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/rpi/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/rpi/appcontroller.conf
new file mode 100644
index 0000000..0915343
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/tegra-t18x/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/tegra-t18x/appcontroller.conf
new file mode 100644
index 0000000..21bb44c
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller/ti33x/appcontroller.conf b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller/ti33x/appcontroller.conf
new file mode 100644
index 0000000..37284de
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-appcontroller_git.bb b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller_git.bb
new file mode 100644
index 0000000..82f02be
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-appcontroller_git.bb
@@ -0,0 +1,55 @@
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
37QT_GIT_PROJECT = "qt-apps"
38
39SRC_URI += "file://appcontroller.conf"
40
41SRCREV = "5ab7fdbf0845c40418272bafa565295511055d3b"
42
43DEPENDS = "qtbase"
44
45do_configure_append() {
46 sed -i -e '/^platform=/d' ${WORKDIR}/appcontroller.conf
47 echo platform=${MACHINE} >> ${WORKDIR}/appcontroller.conf
48}
49
50do_install_append() {
51 install -m 0755 -d ${D}${sysconfdir}
52 install -m 0755 ${WORKDIR}/appcontroller.conf ${D}${sysconfdir}/
53}
54
55FILES_${PN} += "${sysconfdir}/appcontroller.conf"
diff --git a/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-demos_git.bb b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-demos_git.bb
new file mode 100644
index 0000000..3726482
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-demos_git.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/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh
new file mode 100755
index 0000000..89e4bbb
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher/b2qt.service b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt.service
new file mode 100644
index 0000000..f941f91
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher/beaglebone/b2qt.service b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/beaglebone/b2qt.service
new file mode 100644
index 0000000..cdf6480
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher/beaglebone/qtlauncher.service b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/beaglebone/qtlauncher.service
new file mode 100644
index 0000000..1094675
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher/emulator/b2qt.service b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/emulator/b2qt.service
new file mode 100644
index 0000000..65fba92
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher/emulator/qtlauncher.service b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/emulator/qtlauncher.service
new file mode 100644
index 0000000..2b02c87
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher/qtlauncher.service b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/qtlauncher.service
new file mode 100644
index 0000000..7658ca8
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-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/boot2qt-addons/boot2qt-launcher_git.bb b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher_git.bb
new file mode 100644
index 0000000..e77d7b2
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher_git.bb
@@ -0,0 +1,64 @@
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"
38
39SRC_URI += " \
40 file://b2qt-startup.sh \
41 file://qtlauncher.service \
42 file://b2qt.service \
43 "
44
45SRCREV = "8d7fe0e4b8852a16469a6d0fe910309e8964ab58"
46
47DEPENDS = "qtbase qtdeclarative \
48 ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
49
50do_install_append() {
51 install -m 0755 -d ${D}${sysconfdir}/init.d
52 install -m 0755 ${WORKDIR}/b2qt-startup.sh ${D}${sysconfdir}/init.d/
53
54 install -m 0755 -d ${D}${systemd_unitdir}/system
55 install -m 0644 ${WORKDIR}/qtlauncher.service ${D}${systemd_unitdir}/system/
56 install -m 0644 ${WORKDIR}/b2qt.service ${D}${systemd_unitdir}/system/
57}
58
59INITSCRIPT_NAME = "b2qt-startup.sh"
60INITSCRIPT_PARAMS = "defaults 30"
61
62SYSTEMD_SERVICE_${PN} = "qtlauncher.service b2qt.service"
63
64inherit update-rc.d systemd
diff --git a/meta-boot2qt/recipes-qt/boot2qt-addons/democompositor_git.bb b/meta-boot2qt/recipes-qt/boot2qt-addons/democompositor_git.bb
new file mode 100644
index 0000000..3d9a196
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-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/boot2qt-addons/qdb/b2qt-gadget-network.sh b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/b2qt-gadget-network.sh
new file mode 100755
index 0000000..3161db7
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/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/boot2qt-addons/qdb/defaults b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/defaults
new file mode 100644
index 0000000..5ced90d
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/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/boot2qt-addons/qdb/qdbd-init.sh b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/qdbd-init.sh
new file mode 100755
index 0000000..15981b0
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/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/boot2qt-addons/qdb/qdbd.service b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/qdbd.service
new file mode 100644
index 0000000..be8e701
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb/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/boot2qt-addons/qdb_git.bb b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb_git.bb
new file mode 100644
index 0000000..5615473
--- /dev/null
+++ b/meta-boot2qt/recipes-qt/boot2qt-addons/qdb_git.bb
@@ -0,0 +1,71 @@
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_BRANCH = "5.9"
41
42SRC_URI += "file://b2qt-gadget-network.sh \
43 file://defaults \
44 file://qdbd.service \
45 file://qdbd-init.sh \
46 "
47
48SRCREV = "69f95b6a8d2ca0912a8d502a2b6871109725731e"
49PV = "1.1.0+git${SRCPV}"
50
51REQUIRED_DISTRO_FEATURES = "systemd"
52DEPENDS = "qtbase"
53RRECOMMENDS_${PN} += "kernel-module-usb-f-fs kernel-module-usb-f-rndis"
54
55EXTRA_QMAKEVARS_PRE = "CONFIG+=daemon_only"
56
57do_install_append() {
58 install -m 0755 ${WORKDIR}/b2qt-gadget-network.sh ${D}${bindir}/
59
60 install -m 0755 ${WORKDIR}/qdbd-init.sh ${D}${bindir}/
61
62 install -m 0755 -d ${D}${systemd_unitdir}/system
63 install -m 0644 ${WORKDIR}/qdbd.service ${D}${systemd_unitdir}/system/
64
65 install -m 0755 -d ${D}${sysconfdir}/default
66 install -m 0644 ${WORKDIR}/defaults ${D}${sysconfdir}/default/qdbd
67}
68
69SYSTEMD_SERVICE_${PN} = "qdbd.service"
70
71inherit systemd