]> code.ossystems Code Review - openembedded-core.git/commitdiff
weston-init: add use-pixman PACKAGECONFIG
authorMing Liu <liu.ming50@gmail.com>
Sat, 12 Mar 2022 14:10:56 +0000 (15:10 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Mar 2022 12:22:43 +0000 (12:22 +0000)
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 <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/wayland/weston-init.bb

index 8e8c0454beabac69088ef6ac951907848c989608..c34582137dbe9ee7549d7614071b850a8081e152 100644 (file)
@@ -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
 }