diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-09-29 05:40:24 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-09-28 23:16:44 -0700 |
commit | f71c0f655affaa91330ffee2b712bb7cff989846 (patch) | |
tree | 15e87c4dc1c203c6aa8d22a6aea795f9f8fe0c97 | |
parent | 596e74fc68bc7412e031a4060c511dbae7fcadd3 (diff) | |
download | meta-openembedded-master.tar.gz |
Follow DISTRO_FEATURES and build optional GL, GL ES and Vulkan
interoperability tests.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-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 | ||