Skip to content
Snippets Groups Projects
Commit 300a9420 authored by Samuli Piippo's avatar Samuli Piippo Committed by Jędrzej Nowacki
Browse files

beaglebone: start qtlauncher only after /dev/fb0 exists


Beaglebone creates /dev/fb0 late in the boot process, which causes
Qt applications to crash if started too early. Make systemd notice
fb0 creation and bind application startup to it.

Change-Id: I0207fb64ec981eaeadbe497de5a9bdc941b6e31d
Reviewed-by: default avatarRisto Avila <risto.avila@qt.io>
Reviewed-by: default avatarTeemu Holappa <teemu.holappa@theqtcompany.com>
parent 923819e5
No related branches found
No related tags found
No related merge requests found
KERNEL=="fb0", TAG+="systemd"
############################################################################
##
## Copyright (C) 2016 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of the Boot to Qt meta layer.
##
## $QT_BEGIN_LICENSE:GPL$
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this file in
## accordance with the commercial license agreement provided with the
## Software or, alternatively, in accordance with the terms contained in
## a written agreement between you and The Qt Company. For licensing terms
## and conditions see https://www.qt.io/terms-conditions. For further
## information use the contact form at https://www.qt.io/contact-us.
##
## GNU General Public License Usage
## Alternatively, this file may be used under the terms of the GNU
## General Public License version 3 or (at your option) any later version
## approved by the KDE Free Qt Foundation. The licenses are as published by
## the Free Software Foundation and appearing in the file LICENSE.GPL3
## included in the packaging of this file. Please review the following
## information to ensure the GNU General Public License requirements will
## be met: https://www.gnu.org/licenses/gpl-3.0.html.
##
## $QT_END_LICENSE$
##
############################################################################
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
SRC_URI += "file://99-fb.rules"
do_install_append() {
install -d ${D}${base_libdir}/udev/rules.d
install -m 0644 ${WORKDIR}/99-fb.rules ${D}${base_libdir}/udev/rules.d
}
FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules"
[Unit]
Description=B2Qt user application
BindsTo=dev-fb0.device
After=dev-fb0.device
ConditionPathExists=/usr/bin/b2qt
[Service]
ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt
[Install]
WantedBy=multi-user.target
[Unit]
Description=B2Qt Launcher Demo
BindsTo=dev-fb0.device
After=dev-fb0.device
ConditionPathExists=!/usr/bin/b2qt
[Service]
ExecStart=-/usr/bin/appcontroller /usr/bin/qtlauncher --applications-root /data/user/qt
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment