Skip to content

Commit 6466508

Browse files
Bassem Nomanykraj
Bassem Nomany
authored andcommitted
mesa: update to 24.3.1
Upgrade to latest official mesa release. Fixes DRM DSI linking to missing and non exisiting library drm-rp1-dsi_dri.so on mesa 24.0.7 from poky scarthgap and styhead. #1389 Signed-off-by: Bassem Nomany <bassem.nomany@id8-engineering.io>
1 parent c153c69 commit 6466508

File tree

2 files changed

+57
-5
lines changed

2 files changed

+57
-5
lines changed

recipes-graphics/mesa/mesa_%.bbappend

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1-
# DRI3 note:
2-
# With oe-core commit 8509e2e1a87578882b71948ccef3b50ccf1228b3 dri3 is set
3-
# as default. To state out clearly that Raspi needs dri3 and to avoid surprises
4-
# in case oe-core changes this default, we set dri3 explicitly.
5-
PACKAGECONFIG:append:rpi = " gallium vc4 v3d kmsro ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'vulkan broadcom', '', d)}"
1+
PACKAGECONFIG:append:rpi = " gallium gallium-llvm vc4 v3d ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'vulkan broadcom', '', d)}"
62
DRIDRIVERS:class-target:rpi = ""
3+
4+
# Remove unused patches
5+
SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
6+
file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
7+
"
8+
9+
SRC_URI[sha256sum] = "9c795900449ce5bc7c526ba0ab3532a22c3c951cab7e0dd9de5fcac41b0843af"
10+
PV = "24.3.1"
11+
12+
# -Dglvnd is deprecated from true/false to enabled/disabled
13+
PACKAGECONFIG[glvnd] = "-Dglvnd=enabled, -Dglvnd=disabled, libglvnd"
14+
15+
# DRI3 note:
16+
# DRI3 Build option is removed from meson.
17+
PACKAGECONFIG:remove = "dri3"
18+
unset PACKAGECONFIG[dri3]
19+
20+
DEPENDS += " wayland-protocols llvm python3-pyyaml python3-pyyaml-native"
21+
22+
RDEPENDS:libgl-mesa += " llvm wayland-protocols"
23+
24+
FILES:libgbm += " ${libdir}/gbm/dri_gbm*.so"
25+
26+
FILES:libgl-mesa += " ${libdir}/libgallium*.so"
27+
28+
FILES:libgbm-dev += " ${includedir}/gbm.h"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
SUMMARY = "Collection of additional Wayland protocols"
2+
DESCRIPTION = "Wayland protocols that add functionality not \
3+
available in the Wayland core protocol. Such protocols either add \
4+
completely new functionality, or extend the functionality of some other \
5+
protocol either in Wayland core, or some other protocol in \
6+
wayland-protocols."
7+
HOMEPAGE = "http://wayland.freedesktop.org"
8+
LICENSE = "MIT"
9+
LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \
10+
file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53"
11+
12+
SRC_URI = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/${PV}/downloads/wayland-protocols-${PV}.tar.xz"
13+
SRC_URI[sha256sum] = "ff17292c05159d2b20ce6cacfe42d7e31a28198fa1429a769b03af7c38581dbe"
14+
15+
UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/tags"
16+
UPSTREAM_CHECK_REGEX = "releases/(?P<pver>.+)"
17+
18+
inherit meson pkgconfig allarch
19+
20+
DEPENDS += " wayland-native"
21+
22+
EXTRA_OEMESON += "-Dtests=false"
23+
24+
PACKAGES = "${PN}"
25+
FILES:${PN} += " \
26+
${datadir}/pkgconfig/wayland-protocols.pc \
27+
${includedir} \
28+
"
29+
30+
BBCLASSEXTEND = "native nativesdk"

0 commit comments

Comments
 (0)