Skip to contentSkip to conversation

opencl-headers: Install development files

PATCH New Peter Kjellerstedt 1 participant 2 messages Mar 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 opencl-headers: Install development files

This installs cmake and pkgconfig files so that other recipes can find the header files.

---
 .../recipes-core/opencl/opencl-headers_2024.05.08.bb   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb +4 -6
index 01e83c812c..8663b818e3 100644
@@ -8,12 +8,10 @@ S = "${WORKDIR}/git"
 SRCREV = "8275634cf9ec31b6484c2e6be756237cb583999d"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https"
 
-do_configure[noexec] = "1"
-do_compile[noexec] = "1"
+inherit cmake
+
+EXTRA_OECMAKE = "-DBUILD_TESTING=OFF"
+
 ALLOW_EMPTY:${PN} = "1"
 
-do_install () {
-	install -d ${D}${includedir}/CL/
-	install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
-}
 BBCLASSEXTEND = "native nativesdk"
#1 lore raw

PATCH 2/2 opencl-clhpp: Update to 2024.05.08

---
 ...opencl-clhpp_git.bb => opencl-clhpp_2024.05.08.bb} | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
 rename meta-oe/recipes-core/opencl/{opencl-clhpp_git.bb => opencl-clhpp_2024.05.08.bb} (81%)
meta-oe/recipes-core/opencl/opencl-clhpp_2024.05.08.bb renamed from meta-oe/recipes-core/opencl/opencl-clhpp_git.bb +6 -5
similarity index 81%
rename from meta-oe/recipes-core/opencl/opencl-clhpp_git.bb
rename to meta-oe/recipes-core/opencl/opencl-clhpp_2024.05.08.bb
index 23007d7cca..25e7fd633f 100644
@@ -1,13 +1,14 @@
 SUMMARY  = "OpenCL API C++ bindings"
 DESCRIPTION = "OpenCL API C++ bindings from Khronos"
 
-SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main"
-
 LICENSE  = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-PV = "2.0.16+git"
-SRCREV = "1df82b9749739f2681081092ae163bb0f0d40f66"
+DEPENDS = "opencl-headers"
+
+SRCREV = "0bdbbfe5ecda42cff50c96cc5e33527f42fcbd45"
+
+SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https;branch=main"
 
 S = "${WORKDIR}/git"
 
@@ -16,7 +17,7 @@ inherit cmake
 EXTRA_OECMAKE = " \
                   -DBUILD_DOCS=OFF \
                   -DBUILD_EXAMPLES=OFF \
-                  -DBUILD_TESTS=OFF \
+                  -DBUILD_TESTING=OFF \
                   "
 
 # Headers only so PN is empty