ti-img-rouge-umlibs: housekeeping and version bump
v2 cover ti-img-rouge-umlibs: housekeeping and version bump
From: Randolph Sapp <[email protected]>
Well, I'm trying to be nice for those few that want a truly minimal yocto environment. Let's see how long it takes before I regret it.
Split all Khronos API libs into their own packages and adjust dependencies as necessary. Use mesa's fancy function to set some variables. We won't set the provides or conflicts args just yet. Software rendering is still nice to have as a fallback, but I'll drop it if anyone in the community wants it gone for minimal image reasons.
Also bump the umlib and km versions. Add some rough gem support for now. Should get some userspace applications like Chromium to start behaving a little better. This is still experimental, but I don't think it'll break anything that's already been working.
This version changes the libgles subdir to powervr-umlibs, keeping in line with the naming convention used by the kernel modules.
Randolph Sapp (2):
libgles: rename subdir to powervr-umlibs
ti-img-rogue-umlibs: bump version and explicitly package
.../ti-img-rogue-driver_23.1.6404501.bb | 2 +-
.../ti-img-rogue-umlibs_23.1.6404501.bb | 73 ------------
.../ti-img-rogue-umlibs_23.1.6404501.bb | 112 ++++++++++++++++++
.../ti-sgx-ddk-um/pvrsrvkm.rules | 0
.../ti-sgx-ddk-um_1.17.4948957.bb | 0
5 files changed, 113 insertions(+), 74 deletions(-)
delete mode 100644 meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb
create mode 100644 meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb
rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules (100%)
rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb (100%)Signature · 1 line
2.40.1
PATCH v2 1/2 libgles: rename subdir to powervr-umlibs
From: Randolph Sapp <[email protected]>
Move recipes to new subdir since we offer more than just libgles now. Reusing the naming convention of the subdirectory used for the km components for now.
---
.../ti-img-rogue-umlibs_23.1.6404501.bb | 0
.../{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules | 0
.../{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb | 0
3 files changed, 0 insertions(+), 0 deletions(-)
rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-img-rogue-umlibs_23.1.6404501.bb (100%)
rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules (100%)
rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb (100%)meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb renamed from meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb +0 -0
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um/pvrsrvkm.rules renamed from meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um/pvrsrvkm.rules +0 -0
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb renamed from meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0 -0
Signature · 1 line
2.40.1
Re: [meta-ti][master/kirkstone][PATCHv2 1/2] libgles: rename subdir to powervr-umlibs
Quoted 7 lines · On 5/30/23 4:58 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
Move recipes to new subdir since we offer more than just libgles now. Reusing the naming convention of the subdirectory used for the km components for now.
Signed-off-by Randolph Sapp <[email protected]>
Quoted 8 lines
--- .../ti-img-rogue-umlibs_23.1.6404501.bb | 0 .../{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules | 0 .../{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb | 0 3 files changed, 0 insertions(+), 0 deletions(-)rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-img-rogue-umlibs_23.1.6404501.bb (100%) rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules (100%) rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb (100%)
But these are not "powervr" cores anymore :) Oh well, better than "libgles"..
Quoted 13 lines
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb renamed from meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb +0
-0meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um/pvrsrvkm.rules renamed from meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um/pvrsrvkm.rules +0
-0meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb renamed from meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0
-0
Re: [meta-ti][master/kirkstone][PATCHv2 1/2] libgles: rename subdir to powervr-umlibs
Quoted 17 lines · Andrew Davis
Quoted 7 lines · On 5/30/23 4:58 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
Move recipes to new subdir since we offer more than just libgles now. Reusing the naming convention of the subdirectory used for the km components for now.
Signed-off-by Randolph Sapp <[email protected]>Quoted 8 lines
---
.../ti-img-rogue-umlibs_23.1.6404501.bb | 0 .../{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules | 0 .../{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb | 03 files changed, 0 insertions(+), 0 deletions(-)rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-img-rogue-umlibs_23.1.6404501.bb (100%) rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um/pvrsrvkm.rules (100%) rename meta-ti-bsp/recipes-graphics/{libgles => powervr-umlibs}/ti-sgx-ddk-um_1.17.4948957.bb (100%)
Quoted 4 lines
But these are not "powervr" cores anymore :) Oh well, better than "libgles"..
Acked-by Andrew Davis <[email protected]>
I mean, technically they still are considered part of the PowerVR series: https://en.wikipedia.org/wiki/PowerVR#Series5_(SGX)
IMG still refers to their cross core SDK as the PowerVR SDK, the DDK to build the UM components for SGX and rogue is still referred to as the PowerVR Graphics DDK, and the kernel module still say pvr, so it's not like this is a dead name.
Plus we can remind people of its legacy for the anniversary of GPU June: https://youtu.be/XmcZsQXOKEA
:)
Quoted 14 lines
Quoted 14 lines
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb renamed from meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb +0
-0meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um/pvrsrvkm.rules renamed from meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um/pvrsrvkm.rules +0
-0meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb renamed from meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +0
-0
PATCH v2 2/2 ti-img-rogue-umlibs: bump version and explicitly package
In reply to [email protected]From: Randolph Sapp <[email protected]>
Bump the version and explicitly package all Khronos APIs separately. This should be nice for those folks that want a headless opencl system for tinkering and such.
This version includes experimental GEM support (for applications like Chromium that like to poke at the render node) and a new Vulkan ICD loader interface for better support with the Vulkan ICD loaders present in Yocto.
This lifts a method from mesa used to force a common naming convention for Vulkan, OpenCL, and OpenGLES libs to make things a little easier to follow. Without it the target package names get scrambled based on the shared object name.
--- .../ti-img-rogue-driver_23.1.6404501.bb | 2 +- .../ti-img-rogue-umlibs_23.1.6404501.bb | 89 +++++++++++++------ 2 files changed, 65 insertions(+), 26 deletions(-)
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.1.6404501.bb +1 -1
@@ -22,7 +22,7 @@ SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https; S = "${WORKDIR}/git" -SRCREV = "93c66ec66136654849809132b86d3b880ee96ed6" +SRCREV = "ebddb087ef140ca83e4c30d66580b0bb33b003fd" TARGET_PRODUCT:j721e = "j721e_linux" TARGET_PRODUCT:j721s2 = "j721s2_linux"
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb +64 -25
123 lines not on this page · raw message
Signature · 1 line
2.40.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [EXTERNAL] [meta-ti][master/kirkstone][PATCHv2 2/2] ti-img-rogue-umlibs: bump version and explicitly package
Quoted 71 lines · Randolph Sapp via lists.yoctoproject.org
From: Randolph Sapp <[email protected]>
Bump the version and explicitly package all Khronos APIs separately. This should be nice for those folks that want a headless opencl system for tinkering and such.
This version includes experimental GEM support (for applications like Chromium that like to poke at the render node) and a new Vulkan ICD loader interface for better support with the Vulkan ICD loaders present in Yocto.
This lifts a method from mesa used to force a common naming convention for Vulkan, OpenCL, and OpenGLES libs to make things a little easier to follow. Without it the target package names get scrambled based on the shared object name.
Signed-off-by Randolph Sapp <[email protected]>--- .../ti-img-rogue-driver_23.1.6404501.bb | 2 +- .../ti-img-rogue-umlibs_23.1.6404501.bb | 89 +++++++++++++------ 2 files changed, 65 insertions(+), 26 deletions(-)meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.1.6404501.bb +1
-1@@ -22,7 +22,7 @@ SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https; S = "${WORKDIR}/git" -SRCREV = "93c66ec66136654849809132b86d3b880ee96ed6" +SRCREV = "ebddb087ef140ca83e4c30d66580b0bb33b003fd" TARGET_PRODUCT:j721e = "j721e_linux" TARGET_PRODUCT:j721s2 = "j721s2_linux"meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb +6
-6@@ -12,7 +12,7 @@ PR = "r2" BRANCH = "linuxws/kirkstone/k6.1/${PV}" SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}" -SRCREV = "452b0f50d2984171c81d5a0d3b22198177d919ad" +SRCREV = "bfacba50b004d0e93ee1f8b42d2217131453f5fd" S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}" TARGET_PRODUCT:j721e = "j721e_linux"@@ -22,52 +22,91 @@ TARGET_PRODUCT:am62xx = "am62_linux" PVR_BUILD = "release" PVR_WS = "lws-generic" -RDEPENDS:${PN} += "mesa-megadriver libdrm ti-img-rogue-driver" +RDEPENDS:${PN} = " \ + libdrm \ + ti-img-rogue-driver \ + ${PN}-firmware \ +" do_install:append() { if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then mv ${D}/lib/firmware ${D}${nonarch_base_libdir} rmdir ${D}/lib fi - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'false', 'true', d)}; then - rm -rf ${D}${libdir}/libVK_IMG.so* - fi - rm -rf "${D}/etc/init.d" } PACKAGES = " \
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb TARGET_PRODUCT:am62xx = "am62_linux" · line 47
Quoted 10 lines
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb +7
-1- ${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-vulkan", "", d)} \ + libgles1-rogue libgles1-rogue-dev \ + libgles2-rogue libgles2-rogue-dev \ + libgles3-rogue libgles3-rogue-dev \ + libvk-rogue libvk-rogue-dev \ + libopencl-rogue libopencl-rogue-dev \ + libopencl-rogue-tools \ ${PN}-tools \ ${PN}-firmware \ + ${PN}-dev \
Rats, I just realized I left this in. This will break the required devlink for libpvr_dri_support.so
Expect a v3.
Quoted 94 lines
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.1.6404501.bb +51
-19${PN} \ " -FILES:${PN}-vulkan = " \ - ${datadir}/vulkan \ - ${libdir}/libVK_IMG.so* \ -" -RDEPENDS:${PN}-vulkan += " \ - mesa-vulkan-drivers \ - libdrm \ - ti-img-rogue-driver \ - libx11-xcb \ - wayland \ -" -INSANE_SKIP:${PN}-vulkan += " \ - already-stripped \ - dev-so \ -" +# Inject variables so that packages don't get Debian-renamed (which would +# remove the -rogue suffix), but don't RPROVIDEs/RCONFLICTs on the generic +# libgl name to prevent colliding with swrast libs +python __anonymous() { + suffix = "" + if "-native" in d.getVar("PN"): + suffix = "-native" + for p in (("vulkan", "libvk",), + ("gles", "libgles1", "libglesv1-cm1"), + ("gles", "libgles2", "libglesv2-2"), + ("gles", "libgles3",), + ("opencl", "libopencl",)): + mlprefix = d.getVar("MLPREFIX") + fullp = mlprefix + p[1] + "-rogue" + suffix + mlprefix = d.getVar("MLPREFIX") + pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) + d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") + d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}ti-img-rogue-umlibs" + suffix) + + # For -dev, the first element is both the Debian and original name + fullp = mlprefix + p[1] + "-rogue-dev" + suffix + pkgs = " " + mlprefix + p[1] + "-dev" + suffix + d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") +} + +# gles specific shared objects +FILES:libgles1-rogue = "${libdir}/libGLESv1*.so.*" +FILES:libgles1-rogue-dev = "${libdir}/libGLESv1*.so" +FILES:libgles2-rogue = "${libdir}/libGLESv2*.so.*" +FILES:libgles2-rogue-dev = "${libdir}/libGLESv2*.so" +RDEPENDS:libgles1-rogue += "mesa-megadriver" +RDEPENDS:libgles2-rogue += "mesa-megadriver" +RDEPENDS:libgles3-rogue-dev += "libgles2-rogue-dev" + +# vulkan specific shared objects and configs +FILES:libvk-rogue = "${libdir}/libVK_IMG.so.* ${datadir}/vulkan" +FILES:libvk-rogue-dev = "${libdir}/libVK_IMG.so" +RDEPENDS:libvk-rogue += "vulkan-loader libx11-xcb wayland libdrm" + +# opencl specific shared objects and configs +FILES:libopencl-rogue = "${libdir}/libPVROCL.so.* ${sysconfdir}/OpenCL" +FILES:libopencl-rogue-dev = "${libdir}/libPVROCL.so" +RDEPENDS:libopencl-rogue += "opencl-icd-loader" +RRECOMMENDS:libopencl-rogue += "libopencl-rogue-tools" +FILES:libopencl-rogue-tools += "${bindir}/ocl*" +# optional tools and tests FILES:${PN}-tools = "${bindir}/" -RDEPENDS:${PN}-tools = "python3-core" +RDEPENDS:${PN}-tools = "python3-core ${PN}" +# required firmware FILES:${PN}-firmware = "${base_libdir}/firmware/*" INSANE_SKIP:${PN}-firmware += "arch" RRECOMMENDS:${PN} += " \ - ${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-vulkan", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "libgles1-rogue libgles2-rogue", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "vulkan x11 wayland", "libvk-rogue", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "opencl", "libopencl-rogue", "", d)} \ ${PN}-tools \ " -RDEPENDS:${PN} += " ${PN}-firmware" INSANE_SKIP:${PN} += "already-stripped dev-so" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#16641): https://lists.yoctoproject.org/g/meta-ti/message/16641
Mute This Topic: https://lists.yoctoproject.org/mt/99230102/7094281
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-