Skip to contentSkip to conversation

kmscube: Fix build when x11 is absent in distro features

PATCH New Khem Raj 1 participant 1 message Mar 7, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 kmscube: Fix build when x11 is absent in distro features

distros might use openGL but not x11 ( e.g. EGL ), therefore fix build for such combination

---
 meta/recipes-graphics/kmscube/kmscube_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-graphics/kmscube/kmscube_git.bb +3 -0
index 68cbe8c9fbf..58ce26a3d51 100644
@@ -24,3 +24,6 @@ DEPENDS = "virtual/libgbm"
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
+
+CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
+
Signature · 1 line
2.35.1