summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/include/imx-base.inc2
-rw-r--r--recipes-graphics/drm/libdrm_2.4.127.imx.bb (renamed from recipes-graphics/drm/libdrm_2.4.123.imx.bb)4
-rw-r--r--recipes-graphics/wayland/weston-init.bbappend44
-rw-r--r--recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini2
-rw-r--r--recipes-graphics/wayland/weston_10.0.5.imx.bb5
-rw-r--r--recipes-graphics/wayland/weston_14.0.2.imx.bb8
6 files changed, 57 insertions, 8 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index d709b3129..c5cde9d46 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -597,7 +597,7 @@ PREFERRED_VERSION_weston:mx7-nxp-bsp ??= "10.0.5.imx"
597PREFERRED_VERSION_weston:imx-mainline-bsp = "" 597PREFERRED_VERSION_weston:imx-mainline-bsp = ""
598 598
599# Use i.MX libdrm Version 599# Use i.MX libdrm Version
600PREFERRED_VERSION_libdrm:imx-nxp-bsp ??= "2.4.123.imx" 600PREFERRED_VERSION_libdrm:imx-nxp-bsp ??= "2.4.127.imx"
601 601
602PREFERRED_VERSION_glslang:imxvulkan ??= "1.3.275.0.imx" 602PREFERRED_VERSION_glslang:imxvulkan ??= "1.3.275.0.imx"
603PREFERRED_VERSION_spirv-headers:imxvulkan ??= "1.3.275.0.imx" 603PREFERRED_VERSION_spirv-headers:imxvulkan ??= "1.3.275.0.imx"
diff --git a/recipes-graphics/drm/libdrm_2.4.123.imx.bb b/recipes-graphics/drm/libdrm_2.4.127.imx.bb
index e4208cff3..198db014e 100644
--- a/recipes-graphics/drm/libdrm_2.4.123.imx.bb
+++ b/recipes-graphics/drm/libdrm_2.4.127.imx.bb
@@ -13,8 +13,8 @@ DEPENDS = "libpthread-stubs"
13 13
14SRC_URI = "${IMX_LIBDRM_SRC};branch=${SRCBRANCH}" 14SRC_URI = "${IMX_LIBDRM_SRC};branch=${SRCBRANCH}"
15IMX_LIBDRM_SRC ?= "git://github.com/nxp-imx/libdrm-imx.git;protocol=https" 15IMX_LIBDRM_SRC ?= "git://github.com/nxp-imx/libdrm-imx.git;protocol=https"
16SRCBRANCH = "libdrm-imx-2.4.123" 16SRCBRANCH = "libdrm-imx-2.4.127"
17SRCREV = "c7c4953161a0f8f2cc7bee70284bf3263c9cfcf5" 17SRCREV = "ef5d39b51d2acfa66e165db89ba32ae32d55def5"
18 18
19DEFAULT_PREFERENCE = "-1" 19DEFAULT_PREFERENCE = "-1"
20COMPATIBLE_MACHINE = "(imx-nxp-bsp)" 20COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
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 ?= ""
45PACKAGECONFIG_USE_G2D:mx8qxp-nxp-bsp ?= "" 45PACKAGECONFIG_USE_G2D:mx8qxp-nxp-bsp ?= ""
46PACKAGECONFIG_USE_G2D:mx8dx-nxp-bsp ?= "" 46PACKAGECONFIG_USE_G2D:mx8dx-nxp-bsp ?= ""
47PACKAGECONFIG_USE_G2D:mx93-nxp-bsp ?= "use-g2d" 47PACKAGECONFIG_USE_G2D:mx93-nxp-bsp ?= "use-g2d"
48PACKAGECONFIG_USE_G2D:mx943-nxp-bsp ?= "use-g2d"
48 49
49USE_G2D_VALUE = "true" 50USE_G2D_VALUE = "true"
50USE_G2D_VALUE:mx6-nxp-bsp = "1" 51USE_G2D_VALUE:mx6-nxp-bsp = "1"
@@ -57,6 +58,18 @@ PACKAGECONFIG[size] = ",,"
57PACKAGECONFIG[use-g2d] = ",," 58PACKAGECONFIG[use-g2d] = ",,"
58PACKAGECONFIG[xwayland] = ",," 59PACKAGECONFIG[xwayland] = ",,"
59 60
61update_file() {
62 sed -i -e "s,$1,$2," $3
63}
64
65insert_line_before() {
66 sed -i -e "/$1/i $2" $3
67}
68
69insert_line_after() {
70 sed -i -e "/$1/a $2" $3
71}
72
60do_install:append() { 73do_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
132do_install:append:mx6-nxp-bsp() {
133 update_file "--no-resizeable" "--no-clients-resize" ${D}${sysconfdir}/xdg/weston/weston.ini
134}
135
136do_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]
24command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize 24command=@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"
161DEFAULT_PREFERENCE = "-1" 161DEFAULT_PREFERENCE = "-1"
162 162
163SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" 163SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz"
164SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} " 164SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} "
165WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https"
165SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch \ 166SRC_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"
167SRCBRANCH = "weston-imx-10.0.5" 168SRCBRANCH = "weston-imx-10.0.5"
168SRCREV = "7129417ae04de57f9596ccf27f74ef967660a64f" 169SRCREV = "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
171REQUIRED_DISTRO_FEATURES = "opengl" 172REQUIRED_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}
163SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " 163SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} "
164WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" 164WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https"
165SRCBRANCH = "weston-imx-14.0.2" 165SRCBRANCH = "weston-imx-14.0.2"
166SRCREV = "c267ba8e6eed3a824e042a200bcc1b4c370ba88f" 166SRCREV = "be99fd1adad7e77c8c31926b09520ade5cdaca35"
167 167
168PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" 168PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}"
169PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" 169PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11"
170 170
171PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" 171PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D} ${PACKAGECONFIG_PIPEWIRE}"
172PACKAGECONFIG_G2D ??= "" 172PACKAGECONFIG_G2D ??= ""
173PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" 173PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d"
174PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" 174PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d"
175PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" 175PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d"
176 176
177PACKAGECONFIG_PIPEWIRE ??= ""
178PACKAGECONFIG_PIPEWIRE:mx8-nxp-bsp ??= "pipewire"
179PACKAGECONFIG_PIPEWIRE:mx9-nxp-bsp ??= "pipewire"
180
177# Weston with i.MX G2D renderer 181# Weston with i.MX G2D renderer
178PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" 182PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d"
179 183