diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa-gl.bb | 5 | ||||
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa.bb | 12 | ||||
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 13 |
3 files changed, 17 insertions, 13 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-gl.bb b/meta/recipes-graphics/mesa/mesa-gl.bb index e11758767f..d27d606875 100644 --- a/meta/recipes-graphics/mesa/mesa-gl.bb +++ b/meta/recipes-graphics/mesa/mesa-gl.bb | |||
| @@ -10,3 +10,8 @@ TARGET_CFLAGS = "-I${STAGING_INCDIR}/drm" | |||
| 10 | 10 | ||
| 11 | # At least one DRI rendering engine is required to build mesa. | 11 | # At least one DRI rendering engine is required to build mesa. |
| 12 | PACKAGECONFIG = "opengl gallium ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" | 12 | PACKAGECONFIG = "opengl gallium ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" |
| 13 | |||
| 14 | PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 15 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 16 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 17 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd nouveau svga" | ||
diff --git a/meta/recipes-graphics/mesa/mesa.bb b/meta/recipes-graphics/mesa/mesa.bb index 96e8aa38d6..305b18070d 100644 --- a/meta/recipes-graphics/mesa/mesa.bb +++ b/meta/recipes-graphics/mesa/mesa.bb | |||
| @@ -1,2 +1,14 @@ | |||
| 1 | require ${BPN}.inc | 1 | require ${BPN}.inc |
| 2 | 2 | ||
| 3 | PACKAGECONFIG = " \ | ||
| 4 | gallium \ | ||
| 5 | video-codecs \ | ||
| 6 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland glvnd', d)} \ | ||
| 7 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ | ||
| 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ | ||
| 9 | " | ||
| 10 | |||
| 11 | PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 12 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 13 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 14 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd nouveau svga" | ||
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index a848a2ad8c..387f954789 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
| @@ -80,22 +80,9 @@ EXTRA_OEMESON = " \ | |||
| 80 | def strip_comma(s): | 80 | def strip_comma(s): |
| 81 | return s.strip(',') | 81 | return s.strip(',') |
| 82 | 82 | ||
| 83 | PACKAGECONFIG = " \ | ||
| 84 | gallium \ | ||
| 85 | video-codecs \ | ||
| 86 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland glvnd', d)} \ | ||
| 87 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ | ||
| 88 | ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ | ||
| 89 | " | ||
| 90 | |||
| 91 | # skip all Rust dependencies if we are not building OpenCL" | 83 | # skip all Rust dependencies if we are not building OpenCL" |
| 92 | INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}" | 84 | INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}" |
| 93 | 85 | ||
| 94 | PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 95 | PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 96 | PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd nouveau svga" | ||
| 97 | PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd nouveau svga" | ||
| 98 | |||
| 99 | # "gbm" requires "opengl" | 86 | # "gbm" requires "opengl" |
| 100 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" | 87 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" |
| 101 | 88 | ||
