Skip to contentSkip to conversation

fsl-gpu-sdk: Use wayland backend whenever it is availiable

PATCH Superseded Tom Hochstein 2 participants 13 messages Nov 16, 2015 – Nov 17, 2015

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/7 fsl-gpu-sdk: Use wayland backend whenever it is availiable

From: Neena Busireddy <[email protected]>

When X11 and Wayland DISTRO_FEATURES are available, fsl-gpu-sdk ought to use Wayland.

Wayland backend is preferred as in this case we will be using X11 on top of Wayland (XWayland).

---
 recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb +3 -2
index 01d2103..f794375 100644
@@ -22,8 +22,9 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 SRC_URI[md5sum] = "8f656b8a3a7b7390f434ec1cebf66334"
 SRC_URI[sha256sum] = "eccfd6f412c256e92e61d811cbe607e77bdfd13e268f4840b819e32dcd92921e"
 
-BACKEND = "${@base_contains('DISTRO_FEATURES', 'x11', 'X11', \
-                    base_contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}"
+BACKEND = "${@base_contains('DISTRO_FEATURES', 'wayland', 'Wayland', \
+                base_contains('DISTRO_FEATURES', 'x11', 'X11', 'FB', d), d)}"
+
 do_compile () {
     export FSL_GRAPHICS_SDK=${S}
     export FSL_PLATFORM_NAME=Yocto
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 2/7 packagegroup-fsl-tools-gpu-external: Use wayland packages for xwayland backend

From: Neena Busireddy <[email protected]>

Install wayland packages when both X11 and wayland DISTRO_FEATURES are availiable as we will be using x11 on top of wayland (XWayland).

- Add mesa-demos package for wayland backend.

---
 .../packagegroups/packagegroup-fsl-tools-gpu-external.bb      | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
recipes-fsl/packagegroups/packagegroup-fsl-tools-gpu-external.bb +6 -5
index dc425cc..aa61cff 100644
@@ -29,14 +29,15 @@ SOC_GPU_TOOLS_FB_mx6dl = "eglinfo-fb"
 SOC_GPU_TOOLS_FB_mx6sx = "eglinfo-fb"
 
 SOC_GPU_TOOLS_WAYLAND = ""
-SOC_GPU_TOOLS_WAYLAND_mx6q  = "glmark2"
-SOC_GPU_TOOLS_WAYLAND_mx6dl = "glmark2"
-SOC_GPU_TOOLS_WAYLAND_mx6sx = "glmark2"
+SOC_GPU_TOOLS_WAYLAND_mx6q  = "glmark2 mesa-demos"
+SOC_GPU_TOOLS_WAYLAND_mx6dl = "glmark2 mesa-demos"
+SOC_GPU_TOOLS_WAYLAND_mx6sx = "glmark2 mesa-demos"
+SOC_GPU_TOOLS_WAYLAND_mx6sl = "mesa-demos"
 
 RDEPENDS_${PN} = " \
     opencv-apps \
     opencv-samples \
-    ${@base_contains("DISTRO_FEATURES", "x11", "${SOC_GPU_TOOLS_X11}", \
-        base_contains("DISTRO_FEATURES", "wayland", "${SOC_GPU_TOOLS_WAYLAND}", \
+    ${@base_contains('DISTRO_FEATURES', "wayland", "${SOC_GPU_TOOLS_WAYLAND}", \
+        base_contains("DISTRO_FEATURES", "x11", "${SOC_GPU_TOOLS_X11}", \
                  "${SOC_GPU_TOOLS_FB}", d), d)} \
 "
Signature · 1 line
2.1.4
#2 lore raw

PATCH v2 3/7 packagegroup-fsl-tools-gpu: Do no add xserver-xorg-extension-viv-autohdmi for xwayland

In reply to Tom Hochstein

From: Neena Busireddy <[email protected]>

When both x11 and wayland DISTRO_FEATURES are availiable, install wayland packages as we will be using x11 on top of wayland (xwayland).

xserver-xorg-extension-viv-autohdmi is a x11 package and do not install it for xwayland.

---
 recipes-fsl/packagegroups/packagegroup-fsl-tools-gpu.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-fsl/packagegroups/packagegroup-fsl-tools-gpu.bb +2 -2
index 71df6e0..c4912e3 100644
@@ -20,7 +20,7 @@ SOC_TOOLS_GPU_IMX6QDLSX = " \
     imx-gpu-viv-tools \
     imx-gpu-viv-tools-apitrace \
     ${@base_contains('DISTRO_FEATURES', 'x11', \
-                     'xserver-xorg-extension-viv-autohdmi', '', d)} \
+           base_contains('DISTRO_FEATURES', 'wayland', '', 'xserver-xorg-extension-viv-autohdmi', d), '', d)} \
 "
 SOC_TOOLS_GPU_mx6q  = "${SOC_TOOLS_GPU_IMX6QDLSX}"
 SOC_TOOLS_GPU_mx6dl = "${SOC_TOOLS_GPU_IMX6QDLSX}"
@@ -33,7 +33,7 @@ SOC_TOOLS_GPU_mx6sl = " \
     imx-gpu-viv-g2d \
     imx-gpu-viv-tools \
     ${@base_contains('DISTRO_FEATURES', 'x11', \
-                     'xserver-xorg-extension-viv-autohdmi', '', d)} \
+           base_contains('DISTRO_FEATURES', 'wayland', '', 'xserver-xorg-extension-viv-autohdmi', d), '', d)} \
 "
 
 RDEPENDS_${PN} = " \
Signature · 1 line
2.1.4
#3 lore raw

PATCH v2 4/7 fsl-image-machine-test: Install weston-init for xwayland backend

In reply to Tom Hochstein

From: Neena Busireddy <[email protected]>

Install wayland packages when both X11 and Wayland DISTRO_FEATURES are availiable as we will be using x11 on top of wayland(xwayland)

---
 recipes-fsl/images/fsl-image-machine-test.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-fsl/images/fsl-image-machine-test.bb +1 -3
index 3d8ea12..54abdb4 100644
@@ -20,7 +20,5 @@ CORE_IMAGE_EXTRA_INSTALL += " \
     packagegroup-fsl-tools-gpu-external \
     packagegroup-fsl-tools-testapps \
     packagegroup-fsl-tools-benchmark \
-    ${@base_contains('DISTRO_FEATURES', 'x11', '', \
-                      base_contains('DISTRO_FEATURES', 'wayland', 'weston-init', \
-                                    '', d), d)} \
+    ${@base_contains('DISTRO_FEATURES', 'wayland', 'weston-init', '', d)} \
 "
Signature · 1 line
2.1.4
#4 lore raw

PATCH v2 5/7 packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

In reply to Tom Hochstein

From: Neena Busireddy <[email protected]>

Do not install x11 display server packages when both x11 and wayland DISTRO_FEATURES are availiable.
Wayland backend is preferred as we run x11 on top of wayland (xwayland).

---
 recipes-fsl/packagegroups/packagegroup-core-x11-xserver.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 recipes-fsl/packagegroups/packagegroup-core-x11-xserver.bbappend
recipes-fsl/packagegroups/packagegroup-core-x11-xserver.bbappend new file +7 -0
new file mode 100644
index 0000000..02054e7
@@ -0,0 +1,7 @@
+
+XWAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', \
+               'xf86-video-fbdev xf86-video-imxfb-vivante xf86-input-evdev', '', d)}"
+
+RDEPENDS_${PN}_remove = "\
+    ${XWAYLAND} \
+    "
Signature · 1 line
2.1.4
#5 lore raw

Re: [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

Quoted 8 lines · Tom Hochstein

From: Neena Busireddy <[email protected]>

Do not install x11 display server packages when both x11 and wayland DISTRO_FEATURES are availiable.
Wayland backend is preferred as we run x11 on top of wayland (xwayland).

Nack! We cannot remove those packages as we are forcing the XWayland to be used for other BSPs. Please do not change the installed packages that way.

Which video driver is used when using XWayland?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#6 lore raw

Re: [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

XWayland does not use a video driver.

Tom

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Monday, November 16, 2015 12:24 PM
To: Hochstein Tom-R60874 <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

Quoted 8 lines · Tom Hochstein

From: Neena Busireddy <[email protected]>

Do not install x11 display server packages when both x11 and wayland DISTRO_FEATURES are availiable.
Wayland backend is preferred as we run x11 on top of wayland (xwayland).

Nack! We cannot remove those packages as we are forcing the XWayland to be used for other BSPs. Please do not change the installed packages that way.

Which video driver is used when using XWayland?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#7 lore raw

Re: [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

Quoted 1 line · Tom Hochstein

XWayland does not use a video driver.

Great but how does generic distros (Fedora, Debian, ...) are solving this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#8 lore raw

Re: [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

The distros don't require it. For more info:

http://cgit.freedesktop.org/xorg/xserver/commit/?id=6e539d8817f738289dc2dea13d0720116287ab9d

Tom

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Tuesday, November 17, 2015 4:27 AM
To: Hochstein Tom-R60874 <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

Quoted 1 line · Tom Hochstein

XWayland does not use a video driver.

Great but how does generic distros (Fedora, Debian, ...) are solving this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#9 lore raw

Re: [meta-fsl-demos][PATCH v2 5/7] packagegroup-core-x11-xserver: Remove x11 display server packages for xwayland

Quoted 3 lines · Tom Hochstein

The distros don't require it. For more info:

http://cgit.freedesktop.org/xorg/xserver/commit/?id=6e539d8817f738289dc2dea13d0720116287ab9d

Great but how is this managed from the init system point of view? This is what we need to figure to continue the integration.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#10 lore raw

PATCH v2 1/1 packagegroup-core-x11-sato: Remove matchbox packages for xwayland.

In reply to Tom Hochstein

From: Neena Busireddy <[email protected]>

Do not install x11 packages when both x11 and wayland DISTRO_FEATURES are availiable. Wayland backend is preferred as we are using X11 on top of Wayland (XWayland).

---
 recipes-fsl/packagegroups/packagegroup-core-x11-sato.bbappend | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-fsl/packagegroups/packagegroup-core-x11-sato.bbappend
recipes-fsl/packagegroups/packagegroup-core-x11-sato.bbappend new file +8 -0
new file mode 100644
index 0000000..a6e8954
@@ -0,0 +1,8 @@
+
+
+matchbox-base = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', ' \
+                                         matchbox-desktop matchbox-session-sato  matchbox-keyboard matchbox-keyboard-applet matchbox-keyboard-im matchbox-config-gtk', '', d)}"
+matchbox-apps = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'matchbox-terminal', '', d)}"
+
+RDEPENDS_${PN}-base_remove = "${matchbox-base}"
+RDEPENDS_${PN}-apps_remove = "${matchbox-apps}"
Signature · 1 line
2.1.4
#11 lore raw

PATCH v2 6/7 packagegroup-core-x11-base: Remove matchbox packages for xwayland

In reply to Tom Hochstein

From: Neena Busireddy <[email protected]>

Do not install x11 packages when both x11 and wayland DISTRO_FEATURES are availiable. Wayland backend is preferred as we will be using X11 on top of Wayland (XWayland).

---
 recipes-fsl/packagegroups/packagegroup-core-x11-base.bbappend | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-fsl/packagegroups/packagegroup-core-x11-base.bbappend
recipes-fsl/packagegroups/packagegroup-core-x11-base.bbappend new file +5 -0
new file mode 100644
index 0000000..adcf4b7
@@ -0,0 +1,5 @@
+
+# Remove matchbox for xwayland
+matchbox = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'matchbox-terminal matchbox-wm', '', d)}"
+
+RDEPENDS_${PN}_remove = "${matchbox}"
Signature · 1 line
2.1.4
#12 lore raw

PATCH v2 7/7 packagegroup-core-x11-sato: Remove matchbox packages for xwayland.

In reply to Tom Hochstein

From: Neena Busireddy <[email protected]>

Do not install x11 packages when both x11 and wayland DISTRO_FEATURES are availiable. Wayland backend is preferred as we are using X11 on top of Wayland (XWayland).

---
 recipes-fsl/packagegroups/packagegroup-core-x11-sato.bbappend | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-fsl/packagegroups/packagegroup-core-x11-sato.bbappend
recipes-fsl/packagegroups/packagegroup-core-x11-sato.bbappend new file +8 -0
new file mode 100644
index 0000000..a6e8954
@@ -0,0 +1,8 @@
+
+
+matchbox-base = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', ' \
+                                         matchbox-desktop matchbox-session-sato  matchbox-keyboard matchbox-keyboard-applet matchbox-keyboard-im matchbox-config-gtk', '', d)}"
+matchbox-apps = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'matchbox-terminal', '', d)}"
+
+RDEPENDS_${PN}-base_remove = "${matchbox-base}"
+RDEPENDS_${PN}-apps_remove = "${matchbox-apps}"
Signature · 1 line
2.1.4