diff options
author | Ming Liu <liu.ming50@gmail.com> | 2023-06-06 13:11:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-09 13:55:21 +0100 |
commit | 7e2199be524e4dd7783c54157d8b4bf9f57664b3 (patch) | |
tree | 663d11f80fc6d876f047638010fbf0c6f7771668 | |
parent | 0f9d412d421aab7cf7f09333d8d48e3d739052d4 (diff) | |
download | poky-7e2199be524e4dd7783c54157d8b4bf9f57664b3.tar.gz |
weston-init: introduce xwayland PACKAGECONFIG
Some BSPs dont support xwayland in weston, this is easier for them to
control that.
(From OE-Core rev: b2b40d3470a4a75a18d1cc7a948eec73d84a883b)
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 77dda03cf5..a7adce7fda 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb | |||
@@ -14,10 +14,11 @@ SRC_URI = "file://init \ | |||
14 | 14 | ||
15 | S = "${WORKDIR}" | 15 | S = "${WORKDIR}" |
16 | 16 | ||
17 | PACKAGECONFIG ??= "" | 17 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}" |
18 | PACKAGECONFIG:append:qemuriscv64 = " use-pixman" | 18 | PACKAGECONFIG:append:qemuriscv64 = " use-pixman" |
19 | PACKAGECONFIG:append:qemuppc64 = " use-pixman" | 19 | PACKAGECONFIG:append:qemuppc64 = " use-pixman" |
20 | 20 | ||
21 | PACKAGECONFIG[xwayland] = ",," | ||
21 | PACKAGECONFIG[no-idle-timeout] = ",," | 22 | PACKAGECONFIG[no-idle-timeout] = ",," |
22 | PACKAGECONFIG[use-pixman] = ",," | 23 | PACKAGECONFIG[use-pixman] = ",," |
23 | 24 | ||
@@ -50,7 +51,7 @@ do_install() { | |||
50 | sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini | 51 | sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini |
51 | fi | 52 | fi |
52 | 53 | ||
53 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'yes', 'no', d)}" = "yes" ]; then | 54 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then |
54 | sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini | 55 | sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini |
55 | fi | 56 | fi |
56 | 57 | ||