From f435f166dc49ffde75fe648cf83c4288b1607f6a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 6 Mar 2022 20:07:41 -0800 Subject: [PATCH] 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 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-graphics/kmscube/kmscube_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-graphics/kmscube/kmscube_git.bb b/meta/recipes-graphics/kmscube/kmscube_git.bb index 68cbe8c9fb..58ce26a3d5 100644 --- a/meta/recipes-graphics/kmscube/kmscube_git.bb +++ b/meta/recipes-graphics/kmscube/kmscube_git.bb @@ -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)}" + -- 2.40.1