Skip to contentSkip to conversation

ti-sgx-ddk-um: update SRCREV to pick up Mesa-based EGL/GLES libraries

PATCH In review Eric Ruei 5 participants 15 messages Oct 29, 2019 – Nov 4, 2019

lore
Share & tools
lore

Eric Ruei

author
#0 lore raw

PATCH 1/1 ti-sgx-ddk-um: update SRCREV to pick up Mesa-based EGL/GLES libraries

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +5 -3
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
 BRANCH = "ti-img-sgx/thud/${PV}"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
 
 TARGET_PRODUCT_omap-a15 = "jacinto6evm"
 TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
 
 do_install () {
     oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL
 
     chown -R root:root ${D}
 }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

Eric,

The new binaries are huge. The compressed package went from 900 KB to 8 MB in size and now both AM3 and AM4 won't fit into allocated rootfs size...

Quoted 46 lines
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +5 -3
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
 BRANCH = "ti-img-sgx/thud/${PV}"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
 
 TARGET_PRODUCT_omap-a15 = "jacinto6evm"
 TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
 
 do_install () {
     oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL
 
     chown -R root:root ${D}
 }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
 RDEPENDS_${PN} += "${PN}-plugins"
 
 ALLOW_EMPTY_${PN}-plugins = "1"
Signature · 7 lines
2.17.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 6 lines · Denys Dmytriyenko
Quoted 4 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

Quoted 6 lines

Eric,

The new binaries are huge. The compressed package went from 900 KB to 8 MB in size and now both AM3 and AM4 won't fit into allocated rootfs size...

Denys:

The Mesa-based GLES/EGL is much bigger. The major increase is caused by the new file pvr_dri.so (28M) under usr/lib/dri. The LibEGL related libraries are also increased from sub-200K to 1.1 M and there is another library libglapi.so (900k).

Eric

Quoted 46 lines
Quoted 46 lines
---
  recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---
  1 file changed, 5 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +5 -3
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
  BRANCH = "ti-img-sgx/thud/${PV}"
 
  SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
 
  TARGET_PRODUCT_omap-a15 = "jacinto6evm"
  TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
 
  do_install () {
      oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL
 
      chown -R root:root ${D}
  }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
  RDEPENDS_${PN} += "${PN}-plugins"
 
  ALLOW_EMPTY_${PN}-plugins = "1"
Signature · 7 lines
2.17.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#3 lore raw
In reply to Eric Ruei
Quoted 24 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
 BRANCH = "ti-img-sgx/thud/${PV}"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
 
 TARGET_PRODUCT_omap-a15 = "jacinto6evm"
 TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 7 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
 
 do_install () {
     oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

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

Quoted 10 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
     chown -R root:root ${D}
 }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
 RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin stuff, it can all be dropped.

Andrew

Quoted 3 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
 ALLOW_EMPTY_${PN}-plugins = "1"
 
#4 lore raw
Quoted 26 lines · Andrew F. Davis
Quoted 25 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
  recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---
  1 file changed, 5 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
  BRANCH = "ti-img-sgx/thud/${PV}"
 
  SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
 
  TARGET_PRODUCT_omap-a15 = "jacinto6evm"
  TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
 
Quoted 11 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 6 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
  do_install () {
      oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

There is another component provides GL header files.
Denys: how do we resolve this conflict?

Eric

Quoted 22 lines

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

Quoted 10 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
      chown -R root:root ${D}
  }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
  RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin stuff, it can all be dropped.

Andrew

Quoted 3 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
  ALLOW_EMPTY_${PN}-plugins = "1"
 
#5 lore raw
Quoted 39 lines · Eric
Quoted 21 lines · Andrew F. Davis
Quoted 20 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
  recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---

  1 file changed, 5 insertions(+), 3 deletions(-)
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

  BRANCH = "ti-img-sgx/thud/${PV}"
    SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"

Quoted 16 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 51

Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

    TARGET_PRODUCT_omap-a15 = "jacinto6evm"
  TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
     do_install () {
       oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

Quoted 3 lines

There is another component provides GL header files.
Denys: how do we resolve this conflict?

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

Andrew

Quoted 33 lines

Eric

Quoted 28 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
         chown -R root:root ${D}
   }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so" RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin stuff, it can all be dropped.

Andrew

Quoted 2 lines

    ALLOW_EMPTY_${PN}-plugins = "1"

#6 lore raw
Quoted 51 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick up Mesa-based EGL/GLES libraries

Quoted 12 lines · Eric
Quoted 11 lines · Andrew F. Davis
Quoted 10 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
  recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---

  1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

  BRANCH = "ti-img-sgx/thud/${PV}"
    SRC_URI =
"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 18 lines
Quoted 17 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 51

Quoted 12 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

    TARGET_PRODUCT_omap-a15 = "jacinto6evm"
  TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
     do_install () {
       oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

Quoted 7 lines
Quoted 3 lines

There is another component provides GL header files.
Denys: how do we resolve this conflict?

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Gowtham

Quoted 36 lines
Quoted 25 lines
Quoted 25 lines
Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
         chown -R root:root ${D}
   }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so" RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin stuff, it can all be dropped.

Quoted 6 lines
Quoted 5 lines

Andrew

Quoted 2 lines

    ALLOW_EMPTY_${PN}-plugins = "1"

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

#7 lore raw
Quoted 56 lines · Gowtham
Quoted 56 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick up Mesa-based EGL/GLES libraries

Quoted 12 lines · Eric
Quoted 11 lines · Andrew F. Davis
Quoted 10 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
   recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8 +++++---
   1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
   BRANCH = "ti-img-sgx/thud/${PV}"
     SRC_URI =

"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 21 lines
Quoted 17 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 51

Quoted 12 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +4 -2
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
     TARGET_PRODUCT_omap-a15 = "jacinto6evm"
   TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
     do_install () {
       oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

There is another component provides GL header files.
Denys: how do we resolve this conflict?

Quoted 7 lines
Quoted 2 lines

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Gowtham

Andrew:

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

Eric

Quoted 36 lines
Quoted 36 lines
Quoted 25 lines
Quoted 25 lines
Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -1
         chown -R root:root ${D}
   }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
  RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin stuff, it can all be dropped.

Quoted 6 lines
Quoted 5 lines

Andrew

Quoted 2 lines

    ALLOW_EMPTY_${PN}-plugins = "1"

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

#8 lore raw
Quoted 66 lines · Eric
Quoted 65 lines · Gowtham
Quoted 55 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
   recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---

   1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

   BRANCH = "ti-img-sgx/thud/${PV}"
     SRC_URI =
"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 19 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

     TARGET_PRODUCT_omap-a15 = "jacinto6evm"
   TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
      do_install () {
        oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

Quoted 7 lines
Quoted 3 lines

There is another component provides GL header files.
Denys: how do we resolve this conflict?

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Quoted 8 lines
Quoted 2 lines

Gowtham

Andrew:

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Andrew

Quoted 42 lines

Eric

Quoted 37 lines
Quoted 37 lines
Quoted 32 lines
Quoted 31 lines
Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
          chown -R root:root ${D}
    }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so" RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin
stuff, it can all be dropped.

Andrew

Quoted 2 lines

     ALLOW_EMPTY_${PN}-plugins = "1"

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#9 lore raw
Quoted 72 lines · Andrew F. Davis
Quoted 71 lines · Eric
Quoted 60 lines · Gowtham
Quoted 60 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
   recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---

   1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

   BRANCH = "ti-img-sgx/thud/${PV}"
     SRC_URI =
"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 22 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

     TARGET_PRODUCT_omap-a15 = "jacinto6evm"
   TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
      do_install () {
        oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

There is another component provides GL header files.
Denys: how do we resolve this conflict?

Quoted 7 lines
Quoted 2 lines

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Gowtham

Andrew:

Quoted 8 lines
Quoted 3 lines

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Previously DDK only provided headers in these dirs: EGL, GLES, GLES2, KHR, gbm.

And OpenCL required GL headers, hence there was a "hacky" package created specifically for that:
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-extras/recipes-ti/ocl/ocl-gl-headers_git.bb;hb=HEAD

If DDK now properly provides GL headers, the other package can be dropped.

But the question remains - should DDK actually provide GL headers, even though it doesn't provide full support for it?

Signature · 1 line
Denys
Quoted 43 lines
Quoted 38 lines
Quoted 37 lines
Quoted 37 lines
Quoted 32 lines
Quoted 31 lines
Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
          chown -R root:root ${D}
    }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so" RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin
stuff, it can all be dropped.

Andrew

Quoted 2 lines

     ALLOW_EMPTY_${PN}-plugins = "1"

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#10 lore raw
Quoted 84 lines · Denys Dmytriyenko
Quoted 72 lines · Andrew F. Davis
Quoted 71 lines · Eric
Quoted 60 lines · Gowtham
Quoted 60 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
   recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---

   1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

   BRANCH = "ti-img-sgx/thud/${PV}"
     SRC_URI =
"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 22 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

     TARGET_PRODUCT_omap-a15 = "jacinto6evm"
   TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
      do_install () {
        oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

There is another component provides GL header files.
Denys: how do we resolve this conflict?

Quoted 7 lines
Quoted 2 lines

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Gowtham

Andrew:

Quoted 8 lines
Quoted 3 lines

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Previously DDK only provided headers in these dirs: EGL, GLES, GLES2, KHR, gbm.

Quoted 9 lines

And OpenCL required GL headers, hence there was a "hacky" package created specifically for that:
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-extras/recipes-ti/ocl/ocl-gl-headers_git.bb;hb=HEAD

If DDK now properly provides GL headers, the other package can be dropped.

But the question remains - should DDK actually provide GL headers, even though it doesn't provide full support for it?

The GL headers are the stock headers provided by Kronos that every GL implementation should provide, they often contain definitions for unsupported features (even the GLES folders have unsupported extension definitions). The exact set of usable features can be determined at runtime using various provided methods.

Basically it is up to the EGL layer to report back what the underlying implementation supports, it should not be based on the content/age of the headers at compile time. Without these headers valid/usable programs may not compile on our platform.

Andrew

#11 lore raw
In reply to Denys Dmytriyenko

Hi, guys:

Is there anything that we do regarding the large package size (1M to 8M)?

Best regards,

Eric

Quoted 93 lines · Denys Dmytriyenko
Quoted 72 lines · Andrew F. Davis
Quoted 71 lines · Eric
Quoted 60 lines · Gowtham
Quoted 60 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
    recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---
    1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
    BRANCH = "ti-img-sgx/thud/${PV}"
      SRC_URI =

"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 22 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +4 -2
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
      TARGET_PRODUCT_omap-a15 = "jacinto6evm"
    TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
      do_install () {
        oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

There is another component provides GL header files.
Denys: how do we resolve this conflict?

Quoted 7 lines
Quoted 2 lines

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Gowtham

Andrew:

Quoted 8 lines
Quoted 3 lines

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Previously DDK only provided headers in these dirs: EGL, GLES, GLES2, KHR, gbm.

And OpenCL required GL headers, hence there was a "hacky" package created specifically for that:
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-extras/recipes-ti/ocl/ocl-gl-headers_git.bb;hb=HEAD

If DDK now properly provides GL headers, the other package can be dropped.

But the question remains - should DDK actually provide GL headers, even though it doesn't provide full support for it?

#12 lore raw
Quoted 3 lines · Eric

Hi, guys:

Is there anything that we do regarding the large package size (1M to 8M)?

All the standard libs in /usr/lib get stripped properly.
But there's a new /usr/lib/dri/pvr_dri.so that is 28 MB even stripped. Is it supposed to be this large?

Signature · 1 line
Denys
Quoted 99 lines

Best regards,

Eric

Quoted 93 lines · Denys Dmytriyenko
Quoted 72 lines · Andrew F. Davis
Quoted 71 lines · Eric
Quoted 60 lines · Gowtham
Quoted 60 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
   recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---

   1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

   BRANCH = "ti-img-sgx/thud/${PV}"
     SRC_URI =
"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 22 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

     TARGET_PRODUCT_omap-a15 = "jacinto6evm"
   TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
      do_install () {
        oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

There is another component provides GL header files.
Denys: how do we resolve this conflict?

Quoted 7 lines
Quoted 2 lines

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Gowtham

Andrew:

Quoted 8 lines
Quoted 3 lines

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Previously DDK only provided headers in these dirs: EGL, GLES, GLES2, KHR, gbm.

And OpenCL required GL headers, hence there was a "hacky" package created specifically for that:
http://arago-project.org/git/?p=meta-arago.git;a=blob;f=meta-arago-extras/recipes-ti/ocl/ocl-gl-headers_git.bb;hb=HEAD

If DDK now properly provides GL headers, the other package can be dropped.

But the question remains - should DDK actually provide GL headers, even though it doesn't provide full support for it?

#13 lore raw
In reply to Andrew F. Davis

Hi, Andrew, Gowtham and Denys:

What is our conclusion (solution) for the package size increment?

Best regards,

Eric

Quoted 126 lines · Andrew F. Davis
Quoted 66 lines · Eric
Quoted 65 lines · Gowtham
Quoted 55 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
    recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---
    1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"
    BRANCH = "ti-img-sgx/thud/${PV}"
      SRC_URI =

"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 19 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +4 -2
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"
      TARGET_PRODUCT_omap-a15 = "jacinto6evm"
    TARGET_PRODUCT_ti33x = "ti335x"
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
      do_install () {
        oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

Quoted 7 lines
Quoted 3 lines

There is another component provides GL header files.
Denys: how do we resolve this conflict?

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Quoted 8 lines
Quoted 2 lines

Gowtham

Andrew:

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Andrew

Quoted 42 lines

Eric

Quoted 37 lines
Quoted 37 lines
Quoted 32 lines
Quoted 31 lines
Quoted 11 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -1
          chown -R root:root ${D}
    }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so"
   RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin
stuff, it can all be dropped.

Andrew

Quoted 2 lines

     ALLOW_EMPTY_${PN}-plugins = "1"

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#14 lore raw
Quoted 4 lines · Eric

Hi, Andrew, Gowtham and Denys:

What is our conclusion (solution) for the package size increment?

As said, the Mesa part is a debug build (this is intentional, we really do want all the symbols and debug strings while enabling this new feature, or any issues will be much harder to solve). If we do this for another cycle then I can do a release build then. But the hopeful plan is to have Mesa built as its own recipe (mesa-pvr) which will mean this wont be a problem next time (2020lts).

Andrew

Quoted 133 lines

Best regards,

Eric

Quoted 127 lines · Andrew F. Davis
Quoted 66 lines · Eric
Quoted 65 lines · Gowtham
Quoted 55 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Davis, Andrew
Sent: Wednesday, October 30, 2019 8:36 AM
To: Ruei, Eric; Ruei, Eric; [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] ti-sgx-ddk-um: update SRCREV to pick
up Mesa-based EGL/GLES libraries

Quoted 14 lines · Eric
Quoted 13 lines · Andrew F. Davis
Quoted 12 lines · Eric Ruei

This is the initial step toward Mesa-based EGL/GLES libraries which support all the required EGL 1.5 extensions. We plan to provide a Mesa-pvr recipe to build Mesa from source and SGX/DDK patches where ti-sgx-ddk-um shall provide the EGL/GLES plugins only at the next step.

---
    recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 8
+++++---

    1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
index 7a6f013e..3991d917 100644
@@ -11,7 +11,7 @@ PR = "r34"

    BRANCH = "ti-img-sgx/thud/${PV}"
      SRC_URI =
"git://git.ti.com/graphics/omap5-sgx-ddk-um-

linux.git;protocol=git;branch=${BRANCH}"

Quoted 19 lines
Quoted 18 lines

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb S = "${WORKDIR}/git" · line 52

Quoted 13 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +1 -1
-SRCREV = "87d7e5c1e4db1bab048939c9719059d549c1e8dd"
+SRCREV = "2a2e5bb090ced870d73ed4edbc54793e952cc6d8"

      TARGET_PRODUCT_omap-a15 = "jacinto6evm"
    TARGET_PRODUCT_ti33x = "ti335x"

recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -1
@@ -47,7 +47,9 @@ S = "${WORKDIR}/git"
       do_install () {
         oe_runmake install DESTDIR=${D}
 TARGET_PRODUCT=${TARGET_PRODUCT}
-    ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+    ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
+
+    rm -rf ${D}${includedir}/GL

Why remove this?

Quoted 7 lines
Quoted 3 lines

There is another component provides GL header files.
Denys: how do we resolve this conflict?

The DSP OpenCL implementation? That package needs fixed, not this one, the OpenGL implementation (this driver) should provide the GL headers.

We don't support desktop GL, they shouldn't come from this package.

Quoted 8 lines
Quoted 2 lines

Gowtham

Andrew:

Do you agree? I can keep the line here tentatively until GL is removed from the package itself.

I still believe we should be shipping the GL headers in this package. But I won't object to removing the headers temporarily using this recipe until the conflicting ones can be removed from the OpenCL package.

Andrew

Quoted 43 lines

Eric

Quoted 38 lines
Quoted 38 lines
Quoted 27 lines
Quoted 27 lines
Quoted 12 lines
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
           chown -R root:root ${D}
     }
@@ -58,7 +60,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}/libEGL.so ${libdir}/libGLES_CM.so ${libdir}/libpvrDRMWSEGL.so  ${libdir}/libpvrGBMWSEGL.so

Quoted 8 lines

${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}/libEGL.so ${libdir}/libGLESv1_CM.so ${libdir}/libGLES_CM.so ${libdir}/libGLESv1_PVR_MESA.so ${libdir}/libGLESv2_PVR_MESA.so" RDEPENDS_${PN} += "${PN}-plugins"

The newer binaries after the DDK commit "um: Attempt to load shared object with version extension automatically" do not need all this plugin
stuff, it can all be dropped.

Quoted 6 lines
Quoted 5 lines

Andrew

Quoted 2 lines

      ALLOW_EMPTY_${PN}-plugins = "1"

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