summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/wayland/weston-init.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
index 07cec75fb3..b7a99be646 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -15,6 +15,10 @@ SRC_URI = "file://init \
15 15
16S = "${WORKDIR}" 16S = "${WORKDIR}"
17 17
18PACKAGECONFIG ??= ""
19
20PACKAGECONFIG[no-idle-timeout] = ",,"
21
18DEFAULTBACKEND ??= "" 22DEFAULTBACKEND ??= ""
19DEFAULTBACKEND_qemuall ?= "fbdev" 23DEFAULTBACKEND_qemuall ?= "fbdev"
20DEFAULTBACKEND_qemuarm64 = "drm" 24DEFAULTBACKEND_qemuarm64 = "drm"
@@ -45,6 +49,10 @@ do_install() {
45 if [ -n "${DEFAULTBACKEND}" ]; then 49 if [ -n "${DEFAULTBACKEND}" ]; then
46 sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini 50 sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
47 fi 51 fi
52
53 if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then
54 echo "idle-time=0" >> ${D}${sysconfdir}/xdg/weston/weston.ini
55 fi
48} 56}
49 57
50inherit update-rc.d features_check systemd 58inherit update-rc.d features_check systemd