summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland
diff options
context:
space:
mode:
authorAlistair <alistair@alistair23.me>2020-10-21 19:45:49 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-26 22:08:35 +0000
commit2d800e8e32c66d5ad758bfcd24b8d7d5f5223996 (patch)
treea17d34456bd8415e282cd6be9ae6a82cbffff5c9 /meta/recipes-graphics/wayland
parent8c7cb2d1d2210e8c490b376d606ad3226440c786 (diff)
downloadpoky-2d800e8e32c66d5ad758bfcd24b8d7d5f5223996.tar.gz
weston-init: Allow setting idle time to 0
Add a PACKAGECONFIG that can be used to set the idle-time to 0. This is useful for always on machine (such as kiosks) and for debugging. (From OE-Core rev: 082902a3e97020f0b02097feb3c2173c64a017bf) Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-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