diff options
Diffstat (limited to 'meta/recipes-graphics')
-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] = "" |