mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user