Skip to contentSkip to conversation

weston-init: add use-pixman PACKAGECONFIG

PATCH New [email protected] 1 participant 1 message Mar 12, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: add use-pixman PACKAGECONFIG

From: Ming Liu <[email protected]>

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.

---
 meta/recipes-graphics/wayland/weston-init.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-graphics/wayland/weston-init.bb +5 -0
index 8e8c0454be..c34582137d 100644
@@ -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
 }
 
Signature · 1 line
2.25.1