diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init.bb')
-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 |