[meta-freescale] [PATCH] weston: install weston.ini to disable idle timeout

Gary Bisson gary.bisson at boundarydevices.com
Wed Sep 12 12:54:36 PDT 2018


In order to get the same behavior as meta-fsl-bsp-release (see
weston_4.0.0.bbappend).

Signed-off-by: Gary Bisson <gary.bisson at boundarydevices.com>
---
Hi,

This proved to be better not to have the display going to sleep all the
time. Also having the same behavior as NXP BSP to that regard makes
sense.

Let me know if you have any remark about it.

Regards,
Gary
---
 recipes-graphics/wayland/weston_4.0.0.imx.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-graphics/wayland/weston_4.0.0.imx.bb b/recipes-graphics/wayland/weston_4.0.0.imx.bb
index 7a2aab60..372a0be3 100644
--- a/recipes-graphics/wayland/weston_4.0.0.imx.bb
+++ b/recipes-graphics/wayland/weston_4.0.0.imx.bb
@@ -109,12 +109,16 @@ do_install_append() {
 	if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
 		install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland
 	fi
+
+	# install default weston.ini
+	install -d ${D}${sysconfdir}/xdg/weston
+	install -m 0644 ${B}/weston.ini ${D}${sysconfdir}/xdg/weston
 }
 
 PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \
              libweston-${WESTON_MAJOR_VERSION} ${PN}-examples"
 
-FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir}"
+FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir} ${sysconfdir}/xdg/weston"
 
 FILES_libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so"
 SUMMARY_libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'."
-- 
2.18.0



More information about the meta-freescale mailing list