From: Changqing Li Date: Mon, 29 Apr 2019 07:37:56 +0000 (+0800) Subject: waffle: supprt build waffle without x11 X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~14647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37dc4ad4a87fb9042dc3e9bb389cedc8b5acadf7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git waffle: supprt build waffle without x11 respect DISTRO_FEATURES to make waffle support different platform, gbm platform is supported by default. [YOCTO #6077] Signed-off-by: Changqing Li Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-graphics/waffle/waffle_1.5.2.bb b/meta/recipes-graphics/waffle/waffle_1.5.2.bb index 43c3edc05ac..31572f25f7d 100644 --- a/meta/recipes-graphics/waffle/waffle_1.5.2.bb +++ b/meta/recipes-graphics/waffle/waffle_1.5.2.bb @@ -15,10 +15,9 @@ inherit cmake distro_features_check lib_package # This should be overridden per-machine to reflect the capabilities of the GL # stack. -PACKAGECONFIG ??= "glx" - -# libx11 requires x11 in DISTRO_FEATURES. -REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'glx', 'x11', '', d)}" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11-egl', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ + gbm" # virtual/libgl requires opengl in DISTRO_FEATURES. REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('DEPENDS', 'virtual/${MLPREFIX}libgl', 'opengl', '', d)}"