diff options
Diffstat (limited to 'recipes-graphics/wayland')
-rw-r--r-- | recipes-graphics/wayland/wayland-protocols_1.41.imx.bb (renamed from recipes-graphics/wayland/wayland-protocols_1.32.imx.bb) | 12 | ||||
-rw-r--r-- | recipes-graphics/wayland/weston_10.0.5.imx.bb | 9 | ||||
-rw-r--r-- | recipes-graphics/wayland/weston_14.0.2.imx.bb (renamed from recipes-graphics/wayland/weston_12.0.4.imx.bb) | 43 |
3 files changed, 26 insertions, 38 deletions
diff --git a/recipes-graphics/wayland/wayland-protocols_1.32.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.41.imx.bb index 131f227de..3350a4795 100644 --- a/recipes-graphics/wayland/wayland-protocols_1.32.imx.bb +++ b/recipes-graphics/wayland/wayland-protocols_1.41.imx.bb | |||
@@ -11,12 +11,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c7b12b6702da38ca028ace54aae3d484 \ | |||
11 | 11 | ||
12 | SRC_URI = "${WAYLAND_PROTOCOLS_SRC};branch=${SRCBRANCH}" | 12 | SRC_URI = "${WAYLAND_PROTOCOLS_SRC};branch=${SRCBRANCH}" |
13 | WAYLAND_PROTOCOLS_SRC ?= "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https" | 13 | WAYLAND_PROTOCOLS_SRC ?= "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https" |
14 | SRCBRANCH = "wayland-protocols-imx-${@oe.utils.trim_version("${PV}", 2)}" | 14 | SRCBRANCH = "wayland-protocols-imx-1.41" |
15 | SRCREV = "7ece577d467f8afb2f5a2f7fff3761a1e0ee9dad" | 15 | SRCREV = "7213a4e09837c77112bce2d241491600e00dd095" |
16 | 16 | ||
17 | S = "${WORKDIR}/git" | 17 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/tags" |
18 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>.+)" | ||
18 | 19 | ||
19 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | 20 | DEPENDS += "wayland-native" |
20 | 21 | ||
21 | # NOTE: For i.MX drop allarch since the recipe is SOCARCH | 22 | # NOTE: For i.MX drop allarch since the recipe is SOCARCH |
22 | #inherit meson pkgconfig allarch | 23 | #inherit meson pkgconfig allarch |
@@ -24,9 +25,6 @@ inherit meson pkgconfig | |||
24 | 25 | ||
25 | EXTRA_OEMESON += "-Dtests=false" | 26 | EXTRA_OEMESON += "-Dtests=false" |
26 | 27 | ||
27 | PACKAGES = "${PN}" | ||
28 | FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" | ||
29 | |||
30 | BBCLASSEXTEND = "native nativesdk" | 28 | BBCLASSEXTEND = "native nativesdk" |
31 | 29 | ||
32 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 30 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-graphics/wayland/weston_10.0.5.imx.bb b/recipes-graphics/wayland/weston_10.0.5.imx.bb index df2898f0a..4d7d99130 100644 --- a/recipes-graphics/wayland/weston_10.0.5.imx.bb +++ b/recipes-graphics/wayland/weston_10.0.5.imx.bb | |||
@@ -68,7 +68,7 @@ PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false" | |||
68 | # Weston on framebuffer | 68 | # Weston on framebuffer |
69 | PACKAGECONFIG[fbdev] = "-Ddeprecated-backend-fbdev=true,-Ddeprecated-backend-fbdev=false,udev mtdev" | 69 | PACKAGECONFIG[fbdev] = "-Ddeprecated-backend-fbdev=true,-Ddeprecated-backend-fbdev=false,udev mtdev" |
70 | # Weston on RDP | 70 | # Weston on RDP |
71 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp" | 71 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp,freerdp" |
72 | # weston-launch | 72 | # weston-launch |
73 | PACKAGECONFIG[launch] = "-Ddeprecated-weston-launch=true,-Ddeprecated-weston-launch=false,drm" | 73 | PACKAGECONFIG[launch] = "-Ddeprecated-weston-launch=true,-Ddeprecated-weston-launch=false,drm" |
74 | # VA-API desktop recorder | 74 | # VA-API desktop recorder |
@@ -144,7 +144,7 @@ RDEPENDS:${PN}-xwayland += "xwayland" | |||
144 | 144 | ||
145 | RDEPENDS:${PN} += "xkeyboard-config" | 145 | RDEPENDS:${PN} += "xkeyboard-config" |
146 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" | 146 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" |
147 | RRECOMMENDS:${PN}-dev += "wayland-protocols" | 147 | RDEPENDS:${PN}-dev += "wayland-protocols-dev" |
148 | 148 | ||
149 | USERADD_PACKAGES = "${PN}" | 149 | USERADD_PACKAGES = "${PN}" |
150 | GROUPADD_PARAM:${PN} = "--system weston-launch" | 150 | GROUPADD_PARAM:${PN} = "--system weston-launch" |
@@ -165,8 +165,7 @@ SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch | |||
165 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch \ | 165 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch \ |
166 | file://0001-g2d-renderer.c-Include-sys-stat.h.patch" | 166 | file://0001-g2d-renderer.c-Include-sys-stat.h.patch" |
167 | SRCBRANCH = "weston-imx-10.0.5" | 167 | SRCBRANCH = "weston-imx-10.0.5" |
168 | SRCREV = "0cc822a1e5a8faea6835a4e9259887d8792b86b4" | 168 | SRCREV = "7129417ae04de57f9596ccf27f74ef967660a64f" |
169 | S = "${WORKDIR}/git" | ||
170 | 169 | ||
171 | # Disable OpenGL for parts with GPU support for 2D but not 3D | 170 | # Disable OpenGL for parts with GPU support for 2D but not 3D |
172 | REQUIRED_DISTRO_FEATURES = "opengl" | 171 | REQUIRED_DISTRO_FEATURES = "opengl" |
@@ -206,6 +205,6 @@ EXTRA_OEMESON += "-Ddeprecated-wl-shell=true" | |||
206 | LDFLAGS:append:imxgpu:libc-musl = " -Wl,--allow-shlib-undefined" | 205 | LDFLAGS:append:imxgpu:libc-musl = " -Wl,--allow-shlib-undefined" |
207 | 206 | ||
208 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 207 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
209 | COMPATIBLE_MACHINE = "(imxfbdev|imxgpu)" | 208 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
210 | 209 | ||
211 | ########### End of i.MX overrides ######### | 210 | ########### End of i.MX overrides ######### |
diff --git a/recipes-graphics/wayland/weston_12.0.4.imx.bb b/recipes-graphics/wayland/weston_14.0.2.imx.bb index 87593e4bd..c4f938e5a 100644 --- a/recipes-graphics/wayland/weston_12.0.4.imx.bb +++ b/recipes-graphics/wayland/weston_14.0.2.imx.bb | |||
@@ -3,7 +3,7 @@ | |||
3 | # recipe. The second section customizes the recipe for i.MX. | 3 | # recipe. The second section customizes the recipe for i.MX. |
4 | 4 | ||
5 | ########### OE-core copy ################## | 5 | ########### OE-core copy ################## |
6 | # Upstream hash: 92a460b55e7290ec0006365219189761f7226f7c | 6 | # Upstream hash: 8996690a79ac42a1dee6d041eeb1c1fe29fdac84 |
7 | 7 | ||
8 | SUMMARY = "Weston, a Wayland compositor" | 8 | SUMMARY = "Weston, a Wayland compositor" |
9 | DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" | 9 | DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" |
@@ -18,13 +18,12 @@ SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downlo | |||
18 | file://weston.desktop \ | 18 | file://weston.desktop \ |
19 | file://xwayland.weston-start \ | 19 | file://xwayland.weston-start \ |
20 | file://systemd-notify.weston-start \ | 20 | file://systemd-notify.weston-start \ |
21 | file://0001-libweston-tools-Include-libgen.h-for-basename-signat.patch \ | ||
22 | " | 21 | " |
23 | 22 | ||
24 | SRC_URI[sha256sum] = "eb686a7cf00992a23b17f192fca9a887313e92c346ee35d8575196983d656b4a" | 23 | SRC_URI[sha256sum] = "a8150505b126a59df781fe8c30c8e6f87da7013e179039eb844a5bbbcc7c79b3" |
25 | 24 | ||
26 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | 25 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/weston/-/tags" |
27 | UPSTREAM_CHECK_REGEX = "weston-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | 26 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" |
28 | 27 | ||
29 | inherit meson pkgconfig useradd | 28 | inherit meson pkgconfig useradd |
30 | 29 | ||
@@ -33,19 +32,18 @@ inherit meson pkgconfig useradd | |||
33 | require ${THISDIR}/required-distro-features.inc | 32 | require ${THISDIR}/required-distro-features.inc |
34 | 33 | ||
35 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" | 34 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" |
36 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | 35 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native libdisplay-info" |
37 | 36 | ||
38 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" | 37 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" |
39 | 38 | ||
40 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | 39 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" |
41 | 40 | ||
42 | EXTRA_OEMESON += "-Dpipewire=false" | 41 | EXTRA_OEMESON += "-Dpipewire=false -Dtests=false" |
43 | 42 | ||
44 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland egl clients', '', d)} \ | 43 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland egl clients', '', d)} \ |
45 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ | 44 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ |
46 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \ | 45 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \ |
47 | ${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'headless', d)} \ | 46 | ${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'headless', d)} \ |
48 | launcher-libseat \ | ||
49 | image-jpeg \ | 47 | image-jpeg \ |
50 | screenshare \ | 48 | screenshare \ |
51 | shell-desktop \ | 49 | shell-desktop \ |
@@ -61,7 +59,7 @@ SIMPLECLIENTS ?= "all" | |||
61 | # Compositor choices | 59 | # Compositor choices |
62 | # | 60 | # |
63 | # Weston on KMS | 61 | # Weston on KMS |
64 | PACKAGECONFIG[kms] = "-Dbackend-drm=true,-Dbackend-drm=false,drm udev virtual/egl virtual/libgles2 virtual/libgbm mtdev" | 62 | PACKAGECONFIG[kms] = "-Dbackend-drm=true,-Dbackend-drm=false,drm udev seatd virtual/egl virtual/libgles2 virtual/libgbm mtdev" |
65 | # Weston on Wayland (nested Weston) | 63 | # Weston on Wayland (nested Weston) |
66 | PACKAGECONFIG[wayland] = "-Dbackend-wayland=true,-Dbackend-wayland=false,virtual/egl virtual/libgles2" | 64 | PACKAGECONFIG[wayland] = "-Dbackend-wayland=true,-Dbackend-wayland=false,virtual/egl virtual/libgles2" |
67 | # Weston on X11 | 65 | # Weston on X11 |
@@ -69,7 +67,7 @@ PACKAGECONFIG[x11] = "-Dbackend-x11=true,-Dbackend-x11=false,virtual/libx11 libx | |||
69 | # Headless Weston | 67 | # Headless Weston |
70 | PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false" | 68 | PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false" |
71 | # Weston on RDP | 69 | # Weston on RDP |
72 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp" | 70 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp,freerdp" |
73 | # VA-API desktop recorder | 71 | # VA-API desktop recorder |
74 | PACKAGECONFIG[vaapi] = "-Dbackend-drm-screencast-vaapi=true,-Dbackend-drm-screencast-vaapi=false,libva" | 72 | PACKAGECONFIG[vaapi] = "-Dbackend-drm-screencast-vaapi=true,-Dbackend-drm-screencast-vaapi=false,libva" |
75 | # Weston with EGL support | 73 | # Weston with EGL support |
@@ -81,9 +79,7 @@ PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp" | |||
81 | # Weston with systemd support | 79 | # Weston with systemd support |
82 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd dbus" | 80 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd dbus" |
83 | # Weston with Xwayland support (requires X11 and Wayland) | 81 | # Weston with Xwayland support (requires X11 and Wayland) |
84 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcb libxcursor xcb-util-cursor xwayland" | 82 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcb libxcursor xwayland" |
85 | # colord CMS support | ||
86 | PACKAGECONFIG[colord] = "-Ddeprecated-color-management-colord=true,-Ddeprecated-color-management-colord=false,colord" | ||
87 | # Clients support | 83 | # Clients support |
88 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLECLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" | 84 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLECLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" |
89 | # Virtual remote output with GStreamer on DRM backend | 85 | # Virtual remote output with GStreamer on DRM backend |
@@ -100,10 +96,6 @@ PACKAGECONFIG[shell-ivi] = "-Dshell-ivi=true,-Dshell-ivi=false" | |||
100 | PACKAGECONFIG[shell-kiosk] = "-Dshell-kiosk=true,-Dshell-kiosk=false" | 96 | PACKAGECONFIG[shell-kiosk] = "-Dshell-kiosk=true,-Dshell-kiosk=false" |
101 | # JPEG image loading support | 97 | # JPEG image loading support |
102 | PACKAGECONFIG[image-jpeg] = "-Dimage-jpeg=true,-Dimage-jpeg=false, jpeg" | 98 | PACKAGECONFIG[image-jpeg] = "-Dimage-jpeg=true,-Dimage-jpeg=false, jpeg" |
103 | # support libseat based launch | ||
104 | PACKAGECONFIG[launcher-libseat] = "-Dlauncher-libseat=true,-Dlauncher-libseat=false,seatd" | ||
105 | # deprecated and superseded by libseat launcher | ||
106 | PACKAGECONFIG[launcher-logind] = "-Ddeprecated-launcher-logind=true,-Ddeprecated-launcher-logind=false," | ||
107 | # screencasting via PipeWire | 99 | # screencasting via PipeWire |
108 | PACKAGECONFIG[pipewire] = "-Dbackend-pipewire=true,-Dbackend-pipewire=false,pipewire" | 100 | PACKAGECONFIG[pipewire] = "-Dbackend-pipewire=true,-Dbackend-pipewire=false,pipewire" |
109 | # VNC remote screensharing | 101 | # VNC remote screensharing |
@@ -152,7 +144,7 @@ RDEPENDS:${PN}-xwayland += "xwayland" | |||
152 | 144 | ||
153 | RDEPENDS:${PN} += "xkeyboard-config" | 145 | RDEPENDS:${PN} += "xkeyboard-config" |
154 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" | 146 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" |
155 | RRECOMMENDS:${PN}-dev += "wayland-protocols" | 147 | RDEPENDS:${PN}-dev += "wayland-protocols-dev" |
156 | 148 | ||
157 | USERADD_PACKAGES = "${PN}" | 149 | USERADD_PACKAGES = "${PN}" |
158 | GROUPADD_PARAM:${PN} = "--system weston-launch" | 150 | GROUPADD_PARAM:${PN} = "--system weston-launch" |
@@ -170,18 +162,17 @@ DEFAULT_PREFERENCE = "-1" | |||
170 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" | 162 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" |
171 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " | 163 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " |
172 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" | 164 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" |
173 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch" | 165 | SRCBRANCH = "weston-imx-14.0.2" |
174 | SRCBRANCH = "weston-imx-12.0.4" | 166 | SRCREV = "c267ba8e6eed3a824e042a200bcc1b4c370ba88f" |
175 | SRCREV = "461c49d20677cfd36d01a95dafbd9eedf2a4b09c" | ||
176 | S = "${WORKDIR}/git" | ||
177 | 167 | ||
178 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | ||
179 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" | 168 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" |
169 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | ||
180 | 170 | ||
181 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" | 171 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" |
182 | PACKAGECONFIG_G2D ??= "" | 172 | PACKAGECONFIG_G2D ??= "" |
183 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" | 173 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" |
184 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" | 174 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" |
175 | PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" | ||
185 | 176 | ||
186 | # Weston with i.MX G2D renderer | 177 | # Weston with i.MX G2D renderer |
187 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" | 178 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" |