]> code.ossystems Code Review - openembedded-core.git/commitdiff
waffle: add opengl to REQUIRED_DISTRO_FEATURES
authorChristopher Larson <chris_larson@mentor.com>
Wed, 4 Jan 2017 22:57:50 +0000 (15:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Jan 2017 13:53:44 +0000 (13:53 +0000)
Multiple packageconfigs depend upon virtual/libgl, whose providers require the
opengl distro feature.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/waffle/waffle_1.5.2.bb

index f7db1bc9556f719ad8ad2dff1cdcb3fb4abfaafd..9d6b0e0e0d20d381c788ad01bce63f8618d0fe6f 100644 (file)
@@ -20,6 +20,9 @@ PACKAGECONFIG ??= "glx"
 # libx11 requires x11 in DISTRO_FEATURES.
 REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'glx', 'x11', '', d)}"
 
+# virtual/libgl requires opengl in DISTRO_FEATURES.
+REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('DEPENDS', 'virtual/libgl', 'opengl', '', d)}"
+
 # I say virtual/libgl, actually wants gl.pc
 PACKAGECONFIG[glx] = "-Dwaffle_has_glx=1,-Dwaffle_has_glx=0,virtual/libgl libx11"