diff options
author | Trevor Woerner <twoerner@gmail.com> | 2018-03-22 20:07:06 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-28 12:09:51 +0100 |
commit | 2b2a9149a61fe754ecbc33a15b8e1b5f68119063 (patch) | |
tree | 1c2b2934a80326a32e73fb315cb979fd26d2122f /meta/recipes-graphics/mesa/mesa.inc | |
parent | f2465cd3fb97cf6891e7538cb54c6829a7b353c5 (diff) | |
download | poky-2b2a9149a61fe754ecbc33a15b8e1b5f68119063.tar.gz |
mesa.inc: make PROVIDES conditional on PACKAGECONFIG
Mesa only PROVIDES these features if they are enabled via PACKAGECONFIG.
Therefore make the PROVIDES conditional depending on whether or not these
features have been enabled.
(From OE-Core rev: 8b1e57eb8c959c0f0a5d9a7e0c2e0811c515ea08)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 23ae651f7d..1a45601fdc 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -16,7 +16,12 @@ PE = "2" | |||
16 | 16 | ||
17 | DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native zlib chrpath-replacement-native" | 17 | DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native zlib chrpath-replacement-native" |
18 | EXTRANATIVEPATH += "chrpath-native" | 18 | EXTRANATIVEPATH += "chrpath-native" |
19 | PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa" | 19 | PROVIDES = " \ |
20 | ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'virtual/libgl', '', d)} \ | ||
21 | ${@bb.utils.contains('PACKAGECONFIG', 'gles', 'virtual/libgles1 virtual/libgles2', '', d)} \ | ||
22 | ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \ | ||
23 | virtual/mesa \ | ||
24 | " | ||
20 | 25 | ||
21 | inherit autotools pkgconfig python3native gettext distro_features_check | 26 | inherit autotools pkgconfig python3native gettext distro_features_check |
22 | 27 | ||