waffle: add opengl to REQUIRED_DISTRO_FEATURES

Multiple packageconfigs depend upon virtual/libgl, whose providers require the
opengl distro feature.

(From OE-Core rev: 930c5a17b543bef9d5c2efe71680f82993d77269)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson 2017-01-04 15:57:50 -07:00 committed by Richard Purdie
parent e30f5002c4
commit 99ae8c0919
1 changed files with 3 additions and 0 deletions

View 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"