diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2026-03-30 16:16:42 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2026-03-30 17:46:11 +0800 |
| commit | cb69e1cb878abefc284939308f1d31c8ed20000b (patch) | |
| tree | ed43924a56e65ac5f18889822b997fedc73c587a /recipes-graphics/wayland | |
| parent | eec2bbe04d46ea0261aff3e6dfc6be2144fb03c0 (diff) | |
| download | meta-freescale-cb69e1cb878abefc284939308f1d31c8ed20000b.tar.gz | |
weston: Upgrade to latest commit
- Enable pipewire backend for weston 14
- weston-init: Fix arg rename --no-clients-resize -> --no-resizeable,
The command line argument --no-clients-resize is renamed for Weston 14
to --no-resizeable.
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
Diffstat (limited to 'recipes-graphics/wayland')
4 files changed, 54 insertions, 5 deletions
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 27a5b947b..dadf0e95d 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
| @@ -45,6 +45,7 @@ PACKAGECONFIG_USE_G2D:mx8qm-nxp-bsp ?= "" | |||
| 45 | PACKAGECONFIG_USE_G2D:mx8qxp-nxp-bsp ?= "" | 45 | PACKAGECONFIG_USE_G2D:mx8qxp-nxp-bsp ?= "" |
| 46 | PACKAGECONFIG_USE_G2D:mx8dx-nxp-bsp ?= "" | 46 | PACKAGECONFIG_USE_G2D:mx8dx-nxp-bsp ?= "" |
| 47 | PACKAGECONFIG_USE_G2D:mx93-nxp-bsp ?= "use-g2d" | 47 | PACKAGECONFIG_USE_G2D:mx93-nxp-bsp ?= "use-g2d" |
| 48 | PACKAGECONFIG_USE_G2D:mx943-nxp-bsp ?= "use-g2d" | ||
| 48 | 49 | ||
| 49 | USE_G2D_VALUE = "true" | 50 | USE_G2D_VALUE = "true" |
| 50 | USE_G2D_VALUE:mx6-nxp-bsp = "1" | 51 | USE_G2D_VALUE:mx6-nxp-bsp = "1" |
| @@ -57,6 +58,18 @@ PACKAGECONFIG[size] = ",," | |||
| 57 | PACKAGECONFIG[use-g2d] = ",," | 58 | PACKAGECONFIG[use-g2d] = ",," |
| 58 | PACKAGECONFIG[xwayland] = ",," | 59 | PACKAGECONFIG[xwayland] = ",," |
| 59 | 60 | ||
| 61 | update_file() { | ||
| 62 | sed -i -e "s,$1,$2," $3 | ||
| 63 | } | ||
| 64 | |||
| 65 | insert_line_before() { | ||
| 66 | sed -i -e "/$1/i $2" $3 | ||
| 67 | } | ||
| 68 | |||
| 69 | insert_line_after() { | ||
| 70 | sed -i -e "/$1/a $2" $3 | ||
| 71 | } | ||
| 72 | |||
| 60 | do_install:append() { | 73 | do_install:append() { |
| 61 | # Replace the template variables | 74 | # Replace the template variables |
| 62 | sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini | 75 | sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini |
| @@ -91,4 +104,35 @@ do_install:append() { | |||
| 91 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "no" ]; then | 104 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "no" ]; then |
| 92 | sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini | 105 | sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini |
| 93 | fi | 106 | fi |
| 107 | |||
| 108 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 109 | # Add weston.log back, used by NXP for testing | ||
| 110 | update_file "ExecStart=/usr/bin/weston " "ExecStart=/usr/bin/weston --log=\$\{XDG_RUNTIME_DIR\}/weston.log " ${D}${systemd_system_unitdir}/weston.service | ||
| 111 | |||
| 112 | # FIXME: weston should be run as weston, not as root | ||
| 113 | update_file "User=weston" "User=root" ${D}${systemd_system_unitdir}/weston.service | ||
| 114 | update_file "Group=weston" "Group=root" ${D}${systemd_system_unitdir}/weston.service | ||
| 115 | |||
| 116 | # FIXME: Upstream this change | ||
| 117 | insert_line_before "ExecStart=" "ExecStartPre=+chvt 7" ${D}${systemd_system_unitdir}/weston.service | ||
| 118 | |||
| 119 | # FIXME: fix the underlying problem and drop this workaround | ||
| 120 | insert_line_after "ExecStart=" "Restart=on-failure" ${D}${systemd_system_unitdir}/weston.service | ||
| 121 | else | ||
| 122 | # Install weston-socket.sh for sysvinit as well | ||
| 123 | install -D -p -m0644 ${WORKDIR}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh | ||
| 124 | fi | ||
| 125 | |||
| 126 | # Include commented gbm-format | ||
| 127 | if ! [ "${@bb.utils.contains('PACKAGECONFIG', 'gbm-format', 'yes', 'no', d)}" = "yes" ]; then | ||
| 128 | sed -i -e "/^\[core\]/a #gbm-format=${GBM_FORMAT_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 129 | fi | ||
| 130 | } | ||
| 131 | |||
| 132 | do_install:append:mx6-nxp-bsp() { | ||
| 133 | update_file "--no-resizeable" "--no-clients-resize" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 134 | } | ||
| 135 | |||
| 136 | do_install:append:mx7-nxp-bsp() { | ||
| 137 | update_file "--no-resizeable" "--no-clients-resize" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 94 | } | 138 | } |
diff --git a/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini b/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini index 19e6ad244..d865ef773 100644 --- a/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini +++ b/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini | |||
| @@ -21,5 +21,5 @@ touchscreen_calibrator=true | |||
| 21 | #transform=rotate-90 | 21 | #transform=rotate-90 |
| 22 | 22 | ||
| 23 | [screen-share] | 23 | [screen-share] |
| 24 | command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize | 24 | command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-resizeable |
| 25 | #start-on-startup=true | 25 | #start-on-startup=true |
diff --git a/recipes-graphics/wayland/weston_10.0.5.imx.bb b/recipes-graphics/wayland/weston_10.0.5.imx.bb index 4d7d99130..991650fb9 100644 --- a/recipes-graphics/wayland/weston_10.0.5.imx.bb +++ b/recipes-graphics/wayland/weston_10.0.5.imx.bb | |||
| @@ -161,11 +161,12 @@ LIC_FILES_CHKSUM:append = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" | |||
| 161 | DEFAULT_PREFERENCE = "-1" | 161 | DEFAULT_PREFERENCE = "-1" |
| 162 | 162 | ||
| 163 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" | 163 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" |
| 164 | SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} " | 164 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " |
| 165 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" | ||
| 165 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch \ | 166 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch \ |
| 166 | file://0001-g2d-renderer.c-Include-sys-stat.h.patch" | 167 | file://0001-g2d-renderer.c-Include-sys-stat.h.patch" |
| 167 | SRCBRANCH = "weston-imx-10.0.5" | 168 | SRCBRANCH = "weston-imx-10.0.5" |
| 168 | SRCREV = "7129417ae04de57f9596ccf27f74ef967660a64f" | 169 | SRCREV = "5223a3c86177709d25f86a96622c0829da955a0e" |
| 169 | 170 | ||
| 170 | # Disable OpenGL for parts with GPU support for 2D but not 3D | 171 | # Disable OpenGL for parts with GPU support for 2D but not 3D |
| 171 | REQUIRED_DISTRO_FEATURES = "opengl" | 172 | REQUIRED_DISTRO_FEATURES = "opengl" |
diff --git a/recipes-graphics/wayland/weston_14.0.2.imx.bb b/recipes-graphics/wayland/weston_14.0.2.imx.bb index 299796f3b..2c0b13d41 100644 --- a/recipes-graphics/wayland/weston_14.0.2.imx.bb +++ b/recipes-graphics/wayland/weston_14.0.2.imx.bb | |||
| @@ -163,17 +163,21 @@ SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV} | |||
| 163 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " | 163 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " |
| 164 | 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" |
| 165 | SRCBRANCH = "weston-imx-14.0.2" | 165 | SRCBRANCH = "weston-imx-14.0.2" |
| 166 | SRCREV = "c267ba8e6eed3a824e042a200bcc1b4c370ba88f" | 166 | SRCREV = "be99fd1adad7e77c8c31926b09520ade5cdaca35" |
| 167 | 167 | ||
| 168 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" | 168 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" |
| 169 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | 169 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" |
| 170 | 170 | ||
| 171 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" | 171 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D} ${PACKAGECONFIG_PIPEWIRE}" |
| 172 | PACKAGECONFIG_G2D ??= "" | 172 | PACKAGECONFIG_G2D ??= "" |
| 173 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" | 173 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" |
| 174 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" | 174 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" |
| 175 | PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" | 175 | PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" |
| 176 | 176 | ||
| 177 | PACKAGECONFIG_PIPEWIRE ??= "" | ||
| 178 | PACKAGECONFIG_PIPEWIRE:mx8-nxp-bsp ??= "pipewire" | ||
| 179 | PACKAGECONFIG_PIPEWIRE:mx9-nxp-bsp ??= "pipewire" | ||
| 180 | |||
| 177 | # Weston with i.MX G2D renderer | 181 | # Weston with i.MX G2D renderer |
| 178 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" | 182 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" |
| 179 | 183 | ||
