diff options
| -rw-r--r-- | meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb b/meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb index ebf83d1a1a..fe1d6075e2 100644 --- a/meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb +++ b/meta-oe/recipes-core/opencl/opencl-cts_2025.04.14.bb | |||
| @@ -18,6 +18,14 @@ SRCREV = "e96edaef8b582c2412a2aab4b82f5c88af88617d" | |||
| 18 | 18 | ||
| 19 | EXTRA_OECMAKE:append = " -DENABLE_WERROR=OFF -DCL_INCLUDE_DIR=${STAGING_INCDIR} -DCL_LIB_DIR=${STAGING_LIBDIR} -DOPENCL_LIBRARIES=OpenCL" | 19 | EXTRA_OECMAKE:append = " -DENABLE_WERROR=OFF -DCL_INCLUDE_DIR=${STAGING_INCDIR} -DCL_LIB_DIR=${STAGING_LIBDIR} -DOPENCL_LIBRARIES=OpenCL" |
| 20 | 20 | ||
| 21 | PACKAGECONFIG = " \ | ||
| 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl gles', '', d)} \ | ||
| 23 | ${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)} \ | ||
| 24 | " | ||
| 25 | PACKAGECONFIG[opengl] = "-DGL_IS_SUPPORTED=ON,-DGL_IS_SUPPORTED=OFF,virtual/libgl glew freeglut" | ||
| 26 | PACKAGECONFIG[gles] = "-DGLES_IS_SUPPORTED=ON,-DGLES_IS_SUPPORTED=OFF,virtual/egl virtual/libgles2" | ||
| 27 | PACKAGECONFIG[vulkan] = "-DVULKAN_IS_SUPPORTED=ON,-DVULKAN_IS_SUPPORTED=OFF,vulkan-headers glslang-native" | ||
| 28 | |||
| 21 | SECURITY_STRINGFORMAT:remove = "-Werror=format-security" | 29 | SECURITY_STRINGFORMAT:remove = "-Werror=format-security" |
| 22 | 30 | ||
| 23 | do_install() { | 31 | do_install() { |
| @@ -25,6 +33,7 @@ do_install() { | |||
| 25 | cp -r ${B}/test_conformance/* ${D}${bindir}/opencl_test_conformance | 33 | cp -r ${B}/test_conformance/* ${D}${bindir}/opencl_test_conformance |
| 26 | sed -i 's:/usr/bin/python:/usr/bin/python3:g' ${D}${bindir}/opencl_test_conformance/run_conformance.py | 34 | sed -i 's:/usr/bin/python:/usr/bin/python3:g' ${D}${bindir}/opencl_test_conformance/run_conformance.py |
| 27 | find "${D}${bindir}/opencl_test_conformance" -name cmake_install.cmake -type f -delete | 35 | find "${D}${bindir}/opencl_test_conformance" -name cmake_install.cmake -type f -delete |
| 36 | find "${D}${bindir}/opencl_test_conformance" -name libvulkan_wrapper.a -type f -delete | ||
| 28 | find "${D}${bindir}/opencl_test_conformance" -name CMakeFiles -type d -exec rm -rf "{}" \; -depth | 37 | find "${D}${bindir}/opencl_test_conformance" -name CMakeFiles -type d -exec rm -rf "{}" \; -depth |
| 29 | } | 38 | } |
| 30 | 39 | ||
