diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa-gl_20.0.2.bb')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-gl_20.0.2.bb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-gl_20.0.2.bb b/meta/recipes-graphics/mesa/mesa-gl_20.0.2.bb index d4b1c1c454..c7897cdaf3 100644 --- a/meta/recipes-graphics/mesa/mesa-gl_20.0.2.bb +++ b/meta/recipes-graphics/mesa/mesa-gl_20.0.2.bb | |||
@@ -6,5 +6,10 @@ PROVIDES = "virtual/libgl virtual/mesa" | |||
6 | 6 | ||
7 | S = "${WORKDIR}/mesa-${PV}" | 7 | S = "${WORKDIR}/mesa-${PV}" |
8 | 8 | ||
9 | PACKAGECONFIG ??= "opengl dri ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | 9 | # At least one DRI rendering engine is required to build mesa. |
10 | PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | 10 | # When no X11 is available, use osmesa for the rendering engine. |
11 | PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" | ||
12 | PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" | ||
13 | |||
14 | # When NOT using X11, we need to make sure we have swrast available. | ||
15 | DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" | ||