summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-graphics/wayland/weston/xwayland.weston-start7
-rw-r--r--meta/recipes-graphics/wayland/weston_1.10.0.bb7
2 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-graphics/wayland/weston/xwayland.weston-start b/meta/recipes-graphics/wayland/weston/xwayland.weston-start
new file mode 100644
index 0000000000..b483c97cf1
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/xwayland.weston-start
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3if type Xwayland >/dev/null 2>/dev/null; then
4 mkdir -p /tmp/.X11-unix
5
6 add_weston_argument "--modules=xwayland.so"
7fi
diff --git a/meta/recipes-graphics/wayland/weston_1.10.0.bb b/meta/recipes-graphics/wayland/weston_1.10.0.bb
index c9168d7ab8..37a4839e0f 100644
--- a/meta/recipes-graphics/wayland/weston_1.10.0.bb
+++ b/meta/recipes-graphics/wayland/weston_1.10.0.bb
@@ -11,6 +11,7 @@ SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
11 file://make-libwebp-explicitly-configurable.patch \ 11 file://make-libwebp-explicitly-configurable.patch \
12 file://0001-make-error-portable.patch \ 12 file://0001-make-error-portable.patch \
13 file://0001-configure.ac-Fix-wayland-protocols-path.patch \ 13 file://0001-configure.ac-Fix-wayland-protocols-path.patch \
14 file://xwayland.weston-start \
14 file://make-weston-launch-exit-for-unrecognized-option.patch \ 15 file://make-weston-launch-exit-for-unrecognized-option.patch \
15 file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \ 16 file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \
16" 17"
@@ -92,7 +93,11 @@ do_install_append() {
92 93
93 install -d ${D}${datadir}/icons/hicolor/48x48/apps 94 install -d ${D}${datadir}/icons/hicolor/48x48/apps
94 install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps 95 install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps
95 fi 96 fi
97
98 if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
99 install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland
100 fi
96} 101}
97 102
98PACKAGE_BEFORE_PN += "${PN}-xwayland" 103PACKAGE_BEFORE_PN += "${PN}-xwayland"