From: Khem Raj Date: Mon, 7 Mar 2022 04:07:41 +0000 (-0800) Subject: kmscube: Fix build when x11 is absent in distro features X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2b3ee9ac02ebeaee20be3460010005a4697ab402;p=openembedded-core.git 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 --- 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)}" +