diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-07-10 14:54:08 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-11 15:57:08 +0100 |
commit | 6fd50a6392c02926310e3d06bff9ee147249a3bf (patch) | |
tree | d02189d4ee17cd574aa0db41abbf7e6bba5ac3e2 /meta | |
parent | 0a672a74085dc3e8a7949fae8d564bc6f7a70124 (diff) | |
download | poky-6fd50a6392c02926310e3d06bff9ee147249a3bf.tar.gz |
mesa: Split --with-platforms from egl PACKAGECONFIG
Mesa platforms no longer depend directly on egl. Current
implementation breaks without egl with x11 (which can happen with
mesa-gl).
Separate the platform selection. Make drm platform depend on gbm
PACKAGECONFIG by default.
(From OE-Core rev: 622d683273bab66f0b4dd385d083bff9fb7bb1de)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 59e8923f26..1b712a24ea 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -22,7 +22,12 @@ inherit autotools pkgconfig gettext distro_features_check | |||
22 | 22 | ||
23 | REQUIRED_DISTRO_FEATURES = "opengl" | 23 | REQUIRED_DISTRO_FEATURES = "opengl" |
24 | 24 | ||
25 | EXTRA_OECONF = "--enable-shared-glapi --with-llvm-prefix=${STAGING_BINDIR_NATIVE}" | 25 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)} \ |
26 | ${@bb.utils.contains('PACKAGECONFIG', 'gbm', 'drm', '', d)}" | ||
27 | |||
28 | EXTRA_OECONF = "--enable-shared-glapi \ | ||
29 | --with-llvm-prefix=${STAGING_BINDIR_NATIVE} \ | ||
30 | --with-platforms='${PLATFORMS}'" | ||
26 | 31 | ||
27 | PACKAGECONFIG ??= "gbm egl gles dri \ | 32 | PACKAGECONFIG ??= "gbm egl gles dri \ |
28 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 vulkan', d)} \ | 33 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11 vulkan', d)} \ |
@@ -47,10 +52,7 @@ PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=intel, --without-vulkan-drivers" | |||
47 | 52 | ||
48 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" | 53 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" |
49 | 54 | ||
50 | EGL_PLATFORMS = "drm" | 55 | PACKAGECONFIG[egl] = "--enable-egl, --disable-egl" |
51 | EGL_PLATFORMS .="${@bb.utils.contains('PACKAGECONFIG', 'x11', ',x11', '', d)}" | ||
52 | EGL_PLATFORMS .="${@bb.utils.contains('PACKAGECONFIG', 'wayland', ',wayland', '', d)}" | ||
53 | PACKAGECONFIG[egl] = "--enable-egl --with-platforms=${EGL_PLATFORMS}, --disable-egl --with-platforms=''" | ||
54 | 56 | ||
55 | PACKAGECONFIG[etnaviv] = "" | 57 | PACKAGECONFIG[etnaviv] = "" |
56 | PACKAGECONFIG[imx] = "" | 58 | PACKAGECONFIG[imx] = "" |