diff options
author | Alistair <alistair@alistair23.me> | 2020-10-21 19:45:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-22 12:56:52 +0100 |
commit | 082902a3e97020f0b02097feb3c2173c64a017bf (patch) | |
tree | 1093656c6a60ef4493cbff916e5b1d09c02c3862 /meta/recipes-graphics | |
parent | 0d835f8069a336fd6bab1058d4e605a81c844212 (diff) | |
download | openembedded-core-contrib-082902a3e97020f0b02097feb3c2173c64a017bf.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.
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-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 \ S = "${WORKDIR}" +PACKAGECONFIG ??= "" + +PACKAGECONFIG[no-idle-timeout] = ",," + DEFAULTBACKEND ??= "" DEFAULTBACKEND_qemuall ?= "fbdev" DEFAULTBACKEND_qemuarm64 = "drm" @@ -45,6 +49,10 @@ do_install() { if [ -n "${DEFAULTBACKEND}" ]; then sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini fi + + if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then + echo "idle-time=0" >> ${D}${sysconfdir}/xdg/weston/weston.ini + fi } inherit update-rc.d features_check systemd |