diff options
| author | Quentin Schulz <quentin.schulz@cherry.de> | 2025-09-04 16:03:32 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-11 11:31:56 +0100 |
| commit | 22138e0a2b3aa54da6843ca2546c446a22905dd6 (patch) | |
| tree | 4b55c5302422cefe170f4819439dcefff9e62b53 /meta | |
| parent | df8069cb4fc23633edf2d2d7860b581d7438224b (diff) | |
| download | poky-22138e0a2b3aa54da6843ca2546c446a22905dd6.tar.gz | |
mesa: move PACKAGECONFIG defaults to recipes
We're planning on reusing mesa.inc for a new mesa-tools-native recipe
which will require much less in terms of PACKAGECONFIG than the actual
mesa recipes.
It also doesn't make a lot of sense to have a default PACKAGECONFIG in
an include file inherited by multiple recipes (here mesa and mesa-gl)
which is highlighted by the fact that the only other recipe that
includes mesa.inc (mesa-gl) overrides PACKAGECONFIG (hence why mesa-gl
only gets a partial migration of PACKAGECONFIG defaults.
No intended change in behavior.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
(From OE-Core rev: 9f80d5bc49f46b371c62405ec3f974b4eee2caee)
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | ||
