From 7493b054f9c7e56f46ce804472f35f0a4dffbc72 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 6 Mar 2022 20:07:41 -0800 Subject: 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 (From OE-Core rev: 2b3ee9ac02ebeaee20be3460010005a4697ab402) 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)}" + -- cgit v1.2.3-54-g00ecf