diff options
Diffstat (limited to 'poky/meta/recipes-graphics/wayland/weston-init.bb')
-rw-r--r-- | poky/meta/recipes-graphics/wayland/weston-init.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/poky/meta/recipes-graphics/wayland/weston-init.bb b/poky/meta/recipes-graphics/wayland/weston-init.bb index 07cec75fb..b7a99be64 100644 --- a/poky/meta/recipes-graphics/wayland/weston-init.bb +++ b/poky/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 |