Skip to contentSkip to conversation

piglit: enable OpenCL support if distro has enabled it

PATCH New Dmitry Baryshkov 1 participant 1 message Oct 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 piglit: enable OpenCL support if distro has enabled it

Enable 'opencl' PACKAGECONFIG if it is also set in DISTRO_FEATURES.

---
 meta/recipes-graphics/piglit/piglit_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/piglit/piglit_git.bb +1 -1
index 63c0cf1ac0bb..060e287f267e 100644
@@ -38,7 +38,7 @@ do_compile[dirs] =+ "${B}/temp/"
 
 PACKAGECONFIG ??= " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 glx', '', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'opencl wayland', d)} \
 "
 PACKAGECONFIG[freeglut] = "-DPIGLIT_USE_GLUT=1,-DPIGLIT_USE_GLUT=0,freeglut,"
 PACKAGECONFIG[glx] = "-DPIGLIT_BUILD_GLX_TESTS=ON,-DPIGLIT_BUILD_GLX_TESTS=OFF"
Signature · 1 line
2.47.3