From: Ming Liu Date: Sat, 12 Mar 2022 14:10:56 +0000 (+0100) Subject: weston-init: add use-pixman PACKAGECONFIG X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4840 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3dc3ee5e41caa1691ebdb1c6ed6e51077f9ce7a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git weston-init: add use-pixman PACKAGECONFIG Fbdev backend has been deprecated since weston 10.0.0, and it could be replaced by passing --use-pixman to drm backend, add a use-pixman PACKAGECONFIG for convenience. Signed-off-by: Ming Liu Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 8e8c0454bea..c34582137db 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -17,6 +17,7 @@ S = "${WORKDIR}" PACKAGECONFIG ??= "" PACKAGECONFIG[no-idle-timeout] = ",," +PACKAGECONFIG[use-pixman] = ",," DEFAULTBACKEND ??= "" DEFAULTBACKEND:qemuall ?= "drm" @@ -51,6 +52,10 @@ do_install() { sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini fi + if [ "${@bb.utils.contains('PACKAGECONFIG', 'use-pixman', 'yes', 'no', d)}" = "yes" ]; then + sed -i -e "/^\[core\]/a use-pixman=true" ${D}${sysconfdir}/xdg/weston/weston.ini + fi + install -dm 755 -o weston -g weston ${D}/home/weston }