diff options
author | Alistair <alistair@alistair23.me> | 2020-10-21 19:45:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-26 22:08:35 +0000 |
commit | 2d800e8e32c66d5ad758bfcd24b8d7d5f5223996 (patch) | |
tree | a17d34456bd8415e282cd6be9ae6a82cbffff5c9 /meta/recipes-graphics/wayland | |
parent | 8c7cb2d1d2210e8c490b376d606ad3226440c786 (diff) | |
download | poky-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.bb | 8 |
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 | ||
16 | S = "${WORKDIR}" | 16 | S = "${WORKDIR}" |
17 | 17 | ||
18 | PACKAGECONFIG ??= "" | ||
19 | |||
20 | PACKAGECONFIG[no-idle-timeout] = ",," | ||
21 | |||
18 | DEFAULTBACKEND ??= "" | 22 | DEFAULTBACKEND ??= "" |
19 | DEFAULTBACKEND_qemuall ?= "fbdev" | 23 | DEFAULTBACKEND_qemuall ?= "fbdev" |
20 | DEFAULTBACKEND_qemuarm64 = "drm" | 24 | DEFAULTBACKEND_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 | ||
50 | inherit update-rc.d features_check systemd | 58 | inherit update-rc.d features_check systemd |