Skip to contentSkip to conversation

ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

PATCH Ankur Tyagi 4 participants 11 messages Aug 10, 2017 – Aug 19, 2017

lore
Share & tools
lore
#0 lore raw
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +4 -3
index 60f63aa..593e405 100644
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux"
 
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev"
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so  ${libdir}/libpvrGBMWSEGL.so  ${libdir}/libpvrws_WAYLAND.so"
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so  ${libdir}/libpvrGBMWSEGL.so  ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
Signature · 1 line
2.7.4
#1 lore raw

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i | grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library: [libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library: [libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library: [libwayland-server.so.0]
Signature · 1 line
Denys
Quoted 38 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +4 -3
index 60f63aa..593e405 100644
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux"
 
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev omap5-sgx-ddk-um-linux-dev"
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so  ${libdir}/libpvrGBMWSEGL.so  ${libdir}/libpvrws_WAYLAND.so"
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so  ${libdir}/libpvrGBMWSEGL.so  ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
Signature · 7 lines
2.7.4

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

Old branch (daisy) was not having such dependency on wayland, may I know why it is now ?

regards
Ankur

Quoted 116 lines · Denys Dmytriyenko

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i |
grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]

--
Denys

Review

Quoted 6 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 4 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 67

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I haven't tried it myself.

Eric,

Since you've been playing with eglfs lately, can you please confirm/clarify whether SGX can work w/o Wayland?

Quoted 2 lines

Old branch (daisy) was not having such dependency on wayland, may I know why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

Signature · 1 line
Denys
Quoted 118 lines · Denys Dmytriyenko
Quoted 117 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i |
grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]

--
Denys

Review

Quoted 6 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 4 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 67

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#4 lore raw

Denys, Ankur,

Wasn't able to look at this one today.
I will come back to you on this either tomorrow or latest by Monday.

Regards
Karthik

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, 17 August, 2017 1:45 AM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I haven't tried it myself.

Eric,

Since you've been playing with eglfs lately, can you please confirm/clarify whether SGX can work w/o Wayland?

Quoted 2 lines

Old branch (daisy) was not having such dependency on wayland, may I know why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

Signature · 1 line
Denys
Quoted 118 lines · Denys Dmytriyenko
Quoted 117 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i |
grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]

--
Denys

Review

Quoted 6 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 4 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 67

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#5 lore raw
In reply to Denys Dmytriyenko

Hi, Denys:

Yes, we can make PLSDK image with Weston disabled by removing wayland from the DISTRO_FEATURES list. Conf/local.conf:
DISTRO_FEATURES_remove = "wayland"

Therefore QT will use eglfs as the default QPA.

However, some of the wayland related libraries and components are still present at the target file system. There is no need to update ti-sgx-ddk-um_1.14.3699939 recipe and SGX should work by using libpvrDRMWSEGL.so.

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, August 16, 2017 4:15 PM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I haven't tried it myself.

Eric,

Since you've been playing with eglfs lately, can you please confirm/clarify whether SGX can work w/o Wayland?

Quoted 2 lines

Old branch (daisy) was not having such dependency on wayland, may I know why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

Signature · 1 line
Denys
Quoted 118 lines · Denys Dmytriyenko
Quoted 117 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i |
grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]

--
Denys

Review

Quoted 6 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 4 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 67

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#6 lore raw

Thanks, Eric,

As I was suspecting, wayland libs are required to be present for SGX to work even in no-Wayland mode. Good thing OE detects those .so dependencies and automatically pulls them in for you.

Have you tried removing Wayland pieces from the rootfs after the fact? I'm guessing SGX would stop working due to dynamic linker/loader not being able to resolve all the dependencies hardcoded in .so...

Signature · 1 line
Denys
Quoted 179 lines · Eric

Hi, Denys:

Yes, we can make PLSDK image with Weston disabled by removing wayland from the DISTRO_FEATURES list.
Conf/local.conf:
DISTRO_FEATURES_remove = "wayland"

Therefore QT will use eglfs as the default QPA.

However, some of the wayland related libraries and components are still present at the target file system.
There is no need to update ti-sgx-ddk-um_1.14.3699939 recipe and SGX should work by using libpvrDRMWSEGL.so.

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, August 16, 2017 4:15 PM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I haven't tried it myself.

Eric,

Since you've been playing with eglfs lately, can you please confirm/clarify whether SGX can work w/o Wayland?

Quoted 2 lines

Old branch (daisy) was not having such dependency on wayland, may I know why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

Signature · 1 line
Denys
Quoted 118 lines · Denys Dmytriyenko
Quoted 117 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i |
grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]

--
Denys

Review

Quoted 6 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 4 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 67

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#7 lore raw

Hi, Denys:

Yes and yes, we do need the wayland libraries to be present at the target file system because they are required by the SGX DDM UM binaries. The SGX DDK UM supports the following three (EGL) window systems and auto-detect which one should be used. libpvrDRMWSEGL.so: EGLFS (Raw)
libpvrGBMWSEGL.so: Wayland-Server, DRM owner such as kmscube, or QT QPA EGLFS_KMS.
libpvrws_WAYLAND.so: Wayland Client

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 17, 2017 12:14 PM
To: Ruei, Eric
Cc: Ankur Tyagi; [email protected]; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

Thanks, Eric,

As I was suspecting, wayland libs are required to be present for SGX to work even in no-Wayland mode. Good thing OE detects those .so dependencies and automatically pulls them in for you.

Have you tried removing Wayland pieces from the rootfs after the fact? I'm guessing SGX would stop working due to dynamic linker/loader not being able to resolve all the dependencies hardcoded in .so...

--
Denys

Quoted 179 lines · Eric

Hi, Denys:

Yes, we can make PLSDK image with Weston disabled by removing wayland from the DISTRO_FEATURES list.
Conf/local.conf:
DISTRO_FEATURES_remove = "wayland"

Therefore QT will use eglfs as the default QPA.

However, some of the wayland related libraries and components are still present at the target file system.
There is no need to update ti-sgx-ddk-um_1.14.3699939 recipe and SGX should work by using libpvrDRMWSEGL.so.

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, August 16, 2017 4:15 PM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I haven't tried it myself.

Eric,

Since you've been playing with eglfs lately, can you please confirm/clarify whether SGX can work w/o Wayland?

Quoted 2 lines

Old branch (daisy) was not having such dependency on wayland, may I know why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

Signature · 1 line
Denys
Quoted 118 lines · Denys Dmytriyenko
Quoted 117 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a $i |
grep wayland; done
libdbm.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11 wayland_drm_buffer_get
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
 0x00000001 (NEEDED)                     Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
 0x00000001 (NEEDED)                     Shared library:
[libwayland-server.so.0]

--
Denys

Review

Quoted 6 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 4 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi libdrm-omap"
 
 RPROVIDES_${PN} = "libegl libgles1 libgles2 omap5-sgx-ddk-um-linux"
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 67

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#8 lore raw

Thanks for the info Eric.

So when wayland is removed from DISTRO_FEATURES, QT uses eglfs QPA and SGX DDK UM uses
​
libpvrDRMWSEGL.so: EGLFS (Raw), then why hard coded dependency on wayland ?

Why to package libraries in target rootfs if they are not needed ?

regards
Ankur

Quoted 235 lines · Eric

Hi, Denys:

Yes and yes, we do need the wayland libraries to be present at the target file system because they are required by the SGX DDM UM binaries. The SGX DDK UM supports the following three (EGL) window systems and auto-detect which one should be used.
​​
libpvrDRMWSEGL.so: EGLFS (Raw)
libpvrGBMWSEGL.so: Wayland-Server, DRM owner such as kmscube, or QT QPA EGLFS_KMS.
libpvrws_WAYLAND.so: Wayland Client

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 17, 2017 12:14 PM
To: Ruei, Eric
Cc: Ankur Tyagi; [email protected]; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

Thanks, Eric,

As I was suspecting, wayland libs are required to be present for SGX to work even in no-Wayland mode. Good thing OE detects those .so dependencies and automatically pulls them in for you.

Have you tried removing Wayland pieces from the rootfs after the fact? I'm guessing SGX would stop working due to dynamic linker/loader not being able to resolve all the dependencies hardcoded in .so...

--
Denys

Quoted 3 lines · Eric

Hi, Denys:

Yes, we can make PLSDK image with Weston disabled by removing wayland

from

Quoted 9 lines

the DISTRO_FEATURES list.
Conf/local.conf:
DISTRO_FEATURES_remove = "wayland"

Therefore QT will use eglfs as the default QPA.

However, some of the wayland related libraries and components are still present at the target file system.
There is no need to update ti-sgx-ddk-um_1.14.3699939 recipe and SGX

should

Quoted 7 lines

work by using libpvrDRMWSEGL.so.

Best regards,

Eric

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, August 16, 2017 4:15 PM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in

DISTRO_FEATURES

Quoted 11 lines

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I

haven't tried it myself.

Quoted 5 lines

Eric,

Since you've been playing with eglfs lately, can you please

confirm/clarify

Quoted 4 lines

whether SGX can work w/o Wayland?

Quoted 1 line

Old branch (daisy) was not having such dependency on wayland, may I

know

Quoted 17 lines
Quoted 1 line

why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

--
Denys

Quoted 1 line

On Sat, Aug 12, 2017 at 8:07 AM, Denys Dmytriyenko <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a

$i |

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

grep wayland; done
libdbm.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
0x00000001 (NEEDED) Shared library:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]

    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11

wayland_drm_buffer_get

Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11

wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
0x00000001 (NEEDED) Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
0x00000001 (NEEDED) Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

--
Denys

Quoted 3 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7

++++---

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

sgx-ddk-um_1.14.3699939.bb

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 37

Quoted 3 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi

libdrm-omap"

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 36

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 38

Quoted 2 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi

libdrm-omap"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 39

Quoted 2 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
 RPROVIDES_${PN} = "libegl libgles1 libgles2

omap5-sgx-ddk-um-linux"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 40

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so

${libdir}/libsrv_um.so

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so

${libdir}/libsrv_um.so

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#9 lore raw
Quoted 4 lines · Ankur Tyagi

Thanks for the info Eric.

So when wayland is removed from DISTRO_FEATURES, QT uses eglfs QPA and SGX DDK UM uses

As long as you have the required wayland libs present.

Quoted 1 line

libpvrDRMWSEGL.so: EGLFS (Raw), then why hard coded dependency on wayland ?

Ask Imagination.

Quoted 1 line

Why to package libraries in target rootfs if they are not needed ?

Because they are linked against and hence are needed to be present.

Signature · 1 line
Denys
Quoted 237 lines · Eric
Quoted 236 lines

Hi, Denys:

Yes and yes, we do need the wayland libraries to be present at the target file system because they are required by the SGX DDM UM binaries. The SGX DDK UM supports the following three (EGL) window systems and auto-detect which one should be used.
​​
libpvrDRMWSEGL.so: EGLFS (Raw)
libpvrGBMWSEGL.so: Wayland-Server, DRM owner such as kmscube, or QT QPA EGLFS_KMS.
libpvrws_WAYLAND.so: Wayland Client

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 17, 2017 12:14 PM
To: Ruei, Eric
Cc: Ankur Tyagi; [email protected]; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

Thanks, Eric,

As I was suspecting, wayland libs are required to be present for SGX to work even in no-Wayland mode. Good thing OE detects those .so dependencies and automatically pulls them in for you.

Have you tried removing Wayland pieces from the rootfs after the fact? I'm guessing SGX would stop working due to dynamic linker/loader not being able to resolve all the dependencies hardcoded in .so...

--
Denys

Quoted 3 lines · Eric

Hi, Denys:

Yes, we can make PLSDK image with Weston disabled by removing wayland

from

Quoted 9 lines

the DISTRO_FEATURES list.
Conf/local.conf:
DISTRO_FEATURES_remove = "wayland"

Therefore QT will use eglfs as the default QPA.

However, some of the wayland related libraries and components are still present at the target file system.
There is no need to update ti-sgx-ddk-um_1.14.3699939 recipe and SGX

should

Quoted 7 lines

work by using libpvrDRMWSEGL.so.

Best regards,

Eric

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, August 16, 2017 4:15 PM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in

DISTRO_FEATURES

Quoted 11 lines

+Eric and Karthik.

Quoted 5 lines · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would still be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I

haven't tried it myself.

Quoted 5 lines

Eric,

Since you've been playing with eglfs lately, can you please

confirm/clarify

Quoted 4 lines

whether SGX can work w/o Wayland?

Quoted 1 line

Old branch (daisy) was not having such dependency on wayland, may I

know

Quoted 17 lines
Quoted 1 line

why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We haven't supported X11 for years. The new SGX DDK binaries are mostly for Wayland graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

--
Denys

Quoted 1 line

On Sat, Aug 12, 2017 at 8:07 AM, Denys Dmytriyenko <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i; arm-linux-gnueabihf-readelf -a

$i |

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

grep wayland; done
libdbm.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939
0x00000001 (NEEDED) Shared library:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]

    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11 wayland_drm_uninit
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11

wayland_drm_buffer_get

Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11 wayland_drm_init
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11

wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
0x00000001 (NEEDED) Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
0x00000001 (NEEDED) Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

--
Denys

Quoted 3 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7

++++---

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

sgx-ddk-um_1.14.3699939.bb

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 37

Quoted 3 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi

libdrm-omap"

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 36

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 38

Quoted 2 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi

libdrm-omap"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 39

Quoted 2 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
 RPROVIDES_${PN} = "libegl libgles1 libgles2

omap5-sgx-ddk-um-linux"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 40

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so

${libdir}/libsrv_um.so

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so

${libdir}/libsrv_um.so

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#10 lore raw

Fair enough.

If Imagination has decided for the hard coded dependency, then they are needed.

thanks
Ankur

Quoted 275 lines · Denys Dmytriyenko
Quoted 3 lines · Ankur Tyagi

Thanks for the info Eric.

So when wayland is removed from DISTRO_FEATURES, QT uses eglfs QPA and

SGX

Quoted 1 line

DDK UM uses

As long as you have the required wayland libs present.

Quoted 1 line

libpvrDRMWSEGL.so: EGLFS (Raw), then why hard coded dependency on

wayland ?

Ask Imagination.

Quoted 1 line

Why to package libraries in target rootfs if they are not needed ?

Because they are linked against and hence are needed to be present.

--
Denys

Quoted 5 lines · Eric
Quoted 4 lines

Hi, Denys:

Yes and yes, we do need the wayland libraries to be present at the

target

Quoted 21 lines
Quoted 21 lines

file system because they are required by the SGX DDM UM binaries. The SGX DDK UM supports the following three (EGL) window systems and auto-detect which one should be used.
​​
libpvrDRMWSEGL.so: EGLFS (Raw)
libpvrGBMWSEGL.so: Wayland-Server, DRM owner such as kmscube, or QT QPA EGLFS_KMS.
libpvrws_WAYLAND.so: Wayland Client

Best regards,

Eric

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 17, 2017 12:14 PM
To: Ruei, Eric
Cc: Ankur Tyagi; [email protected]; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland in DISTRO_FEATURES

Quoted 4 lines
Quoted 4 lines

Thanks, Eric,

As I was suspecting, wayland libs are required to be present for SGX to work even in no-Wayland mode. Good thing OE detects those .so

dependencies

Quoted 3 lines
Quoted 3 lines

and automatically pulls them in for you.

Have you tried removing Wayland pieces from the rootfs after the fact?

I'm

Quoted 1 line
Quoted 1 line

guessing SGX would stop working due to dynamic linker/loader not being

able

Quoted 10 lines
Quoted 10 lines

to resolve all the dependencies hardcoded in .so...

--
Denys

Quoted 3 lines · Eric

Hi, Denys:

Yes, we can make PLSDK image with Weston disabled by removing wayland

Quoted 8 lines
Quoted 8 lines

from

Quoted 7 lines

the DISTRO_FEATURES list.
Conf/local.conf:
DISTRO_FEATURES_remove = "wayland"

Therefore QT will use eglfs as the default QPA.

However, some of the wayland related libraries and components are

still

Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

present at the target file system.
There is no need to update ti-sgx-ddk-um_1.14.3699939 recipe and SGX

should

Quoted 7 lines

work by using libpvrDRMWSEGL.so.

Best regards,

Eric

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, August 16, 2017 4:15 PM
To: Ankur Tyagi
Cc: [email protected]; Ruei, Eric; R, Karthik
Subject: Re: [meta-ti] ti-sgx-ddk-um_1.14.3699939: check for wayland

in

Quoted 6 lines
Quoted 6 lines

DISTRO_FEATURES

Quoted 5 lines

+Eric and Karthik.

Quoted 1 line · Ankur Tyagi

So even if I added "wayland" in DISTRO_FEATURES_remove, it would

still

Quoted 13 lines
Quoted 13 lines
Quoted 6 lines
Quoted 4 lines

be packaged in resulting image.

I don't want to use x11, wayland and have also configured Qt to use eglfs qpa. But it seems wayland will be used anyhow. Am I correct ?

I suspect it will try to link/load the needed wayland libs, but I

haven't tried it myself.

Quoted 5 lines

Eric,

Since you've been playing with eglfs lately, can you please

confirm/clarify

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

whether SGX can work w/o Wayland?

Quoted 1 line

Old branch (daisy) was not having such dependency on wayland, may I

know

Quoted 3 lines
Quoted 1 line

why it is now ?

The old 3D Graphics SDK supported 2 modes - X11 and raw FB. We

haven't

Quoted 1 line
Quoted 1 line
Quoted 1 line

supported X11 for years. The new SGX DDK binaries are mostly for

Wayland

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

graphics stack, as far as I know, since that's what we support on our platforms.

Karthik,

Anything you want to add or clarify here?

--
Denys

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

On Sat, Aug 12, 2017 at 8:07 AM, Denys Dmytriyenko <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

No, it's not an optional dependency, unfortunately:

$ for i in lib*.so.*.*.*; do echo $i;

arm-linux-gnueabihf-readelf -a

Quoted 15 lines
Quoted 15 lines

$i |

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

grep wayland; done
libdbm.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libGLES_CM.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libGLESv2.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libglslcompiler.so.1.14.3699939

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libIMGegl.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]

    23: 0000f715     4 FUNC    GLOBAL DEFAULT   11
wayland_drm_buffer_get_fo
    39: 0000f6f9    26 FUNC    GLOBAL DEFAULT   11

wayland_drm_uninit

Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
    91: 0000f66d    56 FUNC    GLOBAL DEFAULT   11

wayland_drm_buffer_get

Quoted 1 line
Quoted 1 line
Quoted 1 line
   119: 0000f6a5    84 FUNC    GLOBAL DEFAULT   11

wayland_drm_init

Quoted 75 lines
Quoted 75 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
   123: 0000f719     4 FUNC    GLOBAL DEFAULT   11

wayland_drm_buffer_get_bu
libpvr2d.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvrDRMWSEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvrGBMWSEGL.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libPVRScopeServices.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libpvr_wlegl.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
0x00000001 (NEEDED) Shared library:
[libwayland-client.so.0]
libpvrws_WAYLAND.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
0x00000001 (NEEDED) Shared library:
[libwayland-client.so.0]
libsrv_init.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libsrv_um.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]
libusc.so.1.14.3699939
0x00000001 (NEEDED) Shared library:
[libwayland-server.so.0]

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

--
Denys

Quoted 3 lines · Ankur Tyagi
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 7

++++---

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 4 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

sgx-ddk-um_1.14.3699939.bb

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 35

Quoted 6 lines

index 60f63aa..593e405 100644

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
@@ -34,8 +34,9 @@ inherit update-rc.d
 PR = "r26"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2

omap5-sgx-ddk-um-linux"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 37

Quoted 3 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -2
-DEPENDS += "libdrm udev libgbm wayland libffi"
-RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi

libdrm-omap"

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 36

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland',

'wayland', '', d)}"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 38

Quoted 2 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +2 -0
+DEPENDS += "libdrm udev libgbm ${WAYLAND} libffi"
+RDEPENDS_${PN} += "libdrm libudev libgbm ${WAYLAND} libffi

libdrm-omap"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 39

Quoted 2 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
 RPROVIDES_${PN} = "libegl libgles1 libgles2

omap5-sgx-ddk-um-linux"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb inherit update-rc.d · line 40

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -0
 RPROVIDES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev

omap5-sgx-ddk-um-linux-dev"

recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb FILES_${PN} += "${includedir}/*" · line 66

Quoted 5 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
@@ -63,7 +64,7 @@ FILES_${PN} +=  "${includedir}/*"
 FILES_${PN} +=  "${sysconfdir}/*"
 
 PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = "${libdir}/libsrv_init.so

${libdir}/libsrv_um.so

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${libdir}/libpvrws_WAYLAND.so"

Quoted 1 line
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +1 -0
+FILES_${PN}-plugins = "${libdir}/libsrv_init.so

${libdir}/libsrv_um.so

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

${libdir}/libglslcompiler.so ${libdir}/libPVRScopeServices.so ${libdir}/libGLESv2.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrGBMWSEGL.so ${@bb.utils.contains('DISTRO_

FEATURES',

Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

'wayland', '${libdir}/libpvrws_WAYLAND.so', '', d)}"

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +0 -1
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti