diff mbox series

[meta-arago,scarthgap,v3,1/3] opencl-headers: Use Cmake class

Message ID 20250908185600.152317-2-a-christidis@ti.com
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series opencl-clhpp: v2.0.16 -> v2024.05.08 | expand

Commit Message

Antonios Christidis Sept. 8, 2025, 6:55 p.m. UTC
From: Antonios Christidis <a-christidis@ti.com>

In the meta-oe recipe, where the bbappend links from, the recipe does
not use cmake. It explicitly disabled do_configure and do_compile
tasks. While setting up a custom do_install task.

Since cmake support exists, use it. It will automatically
configure, build and install the header files, as well as cmake files.

Such cmake files are a dependency, for the c++ opencl headers.

Signed-off-by: Antonios Christidis <a-christidis@ti.com>
---
v3:
- Changed the subject tag from master to scarthgap
- Simplified subject 

v2:
- Implemented the changes in a yocto compliant way, not by creating a new recipe outright

 .../recipes-extended/opencl/opencl_headers-ti.inc | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
diff mbox series

Patch

diff --git a/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc b/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc
index 4dff02d9..48335204 100644
--- a/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc
+++ b/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc
@@ -1 +1,16 @@ 
+inherit cmake
+
 SRCREV = "8275634cf9ec31b6484c2e6be756237cb583999d"
+
+EXTRA_OECMAKE = "-DBUILD_TESTING=OFF"
+
+python() {
+    # Delete the noexec flags for the following tasks.
+    # Ensuring the tasks run.
+    d.delVarFlag("do_configure", "noexec")
+    d.delVarFlag("do_compile", "noexec")
+}
+
+do_install() {
+	cmake_do_install
+}