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/weston-init.bbappend | |
| 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/weston-init.bbappend')
| -rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 44 |
1 files changed, 44 insertions, 0 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 | } |
