Skip to contentSkip to conversation

packagegroups: opencl and vulkan utilities

PATCH In review [email protected] 2 participants 2 messages Feb 27, 2025 – Feb 28, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 packagegroups: opencl and vulkan utilities

From: Randolph Sapp <[email protected]>

Add package groups for OpenCL and Vulkan related utilities. Conditionally install them in tisdk-default-image if we enable the required distro features.

Currently these package groups consist of clinfo and vulkaninfo respectively. These are useful tools for checking device extension compatibility and ICD loader functionality.

---

v2: Remove LICENSE and PR. Add a SUMMARY.
v3: Remove PACKAGE_ARCH.

 .../recipes-core/images/tisdk-default-image.bb         |  2 ++
 .../packagegroups/packagegroup-arago-opencl.bb         | 10 ++++++++++
 .../packagegroups/packagegroup-arago-vulkan.bb         | 10 ++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-opencl.bb
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-vulkan.bb
meta-arago-distro/recipes-core/images/tisdk-default-image.bb +2 -0
index aace490b..bc067857 100644
@@ -17,6 +17,8 @@ IMAGE_INSTALL += "\
     ti-test-extras \
     ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics','',d)} \
     ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-gtk','',d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES','opencl','packagegroup-arago-opencl','',d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES','vulkan','packagegroup-arago-vulkan','',d)} \
     packagegroup-arago-tisdk-connectivity \
     packagegroup-arago-tisdk-crypto \
     packagegroup-arago-tisdk-multimedia \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-opencl.bb new file +10 -0
new file mode 100644
index 00000000..dd5b0f1e
@@ -0,0 +1,10 @@
+SUMMARY = "Useful OpenCL packages for Arago"
+DESCRIPTION = "Packages we recommend for working with OpenCL"
+
+inherit packagegroup features_check
+
+REQUIRED_DISTRO_FEATURES = "opencl"
+
+RDEPENDS:${PN} = "\
+    clinfo \
+"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-vulkan.bb new file +10 -0
new file mode 100644
index 00000000..c2e69921
@@ -0,0 +1,10 @@
+SUMMARY = "Useful Vulkan packages for Arago"
+DESCRIPTION = "Packages we recommend for working with Vulkan"
+
+inherit packagegroup features_check
+
+REQUIRED_DISTRO_FEATURES = "vulkan"
+
+RDEPENDS:${PN} = "\
+    vulkan-tools \
+"
Signature · 1 line
2.48.1
#1 lore raw
Quoted 11 lines · On Thu, Feb 27, 2025 at 04:50:01PM -0600, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Add package groups for OpenCL and Vulkan related utilities. Conditionally install them in tisdk-default-image if we enable the required distro features.

Currently these package groups consist of clinfo and vulkaninfo respectively. These are useful tools for checking device extension compatibility and ICD loader functionality.

LGTM.

Quoted 59 lines

---

v2: Remove LICENSE and PR. Add a SUMMARY.
v3: Remove PACKAGE_ARCH.

 .../recipes-core/images/tisdk-default-image.bb         |  2 ++
 .../packagegroups/packagegroup-arago-opencl.bb         | 10 ++++++++++
 .../packagegroups/packagegroup-arago-vulkan.bb         | 10 ++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-opencl.bb
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-vulkan.bb
meta-arago-distro/recipes-core/images/tisdk-default-image.bb +2 -0
index aace490b..bc067857 100644
@@ -17,6 +17,8 @@ IMAGE_INSTALL += "\
     ti-test-extras \
     ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics','',d)} \
     ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-gtk','',d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES','opencl','packagegroup-arago-opencl','',d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES','vulkan','packagegroup-arago-vulkan','',d)} \
     packagegroup-arago-tisdk-connectivity \
     packagegroup-arago-tisdk-crypto \
     packagegroup-arago-tisdk-multimedia \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-opencl.bb new file +10 -0
new file mode 100644
index 00000000..dd5b0f1e
@@ -0,0 +1,10 @@
+SUMMARY = "Useful OpenCL packages for Arago"
+DESCRIPTION = "Packages we recommend for working with OpenCL"
+
+inherit packagegroup features_check
+
+REQUIRED_DISTRO_FEATURES = "opencl"
+
+RDEPENDS:${PN} = "\
+    clinfo \
+"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-vulkan.bb new file +10 -0
new file mode 100644
index 00000000..c2e69921
@@ -0,0 +1,10 @@
+SUMMARY = "Useful Vulkan packages for Arago"
+DESCRIPTION = "Packages we recommend for working with Vulkan"
+
+inherit packagegroup features_check
+
+REQUIRED_DISTRO_FEATURES = "vulkan"
+
+RDEPENDS:${PN} = "\
+    vulkan-tools \
+"
Signature · 1 line
2.48.1