summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-graphics/mesa
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/libglu_9.0.2.bb2
-rw-r--r--meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb2
-rw-r--r--meta/recipes-graphics/mesa/mesa-gl_21.1.5.bb2
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc142
-rw-r--r--meta/recipes-graphics/mesa/mesa_21.1.5.bb4
5 files changed, 76 insertions, 76 deletions
diff --git a/meta/recipes-graphics/mesa/libglu_9.0.2.bb b/meta/recipes-graphics/mesa/libglu_9.0.2.bb
index ae18f86532..64fa82e5a8 100644
--- a/meta/recipes-graphics/mesa/libglu_9.0.2.bb
+++ b/meta/recipes-graphics/mesa/libglu_9.0.2.bb
@@ -25,4 +25,4 @@ inherit autotools pkgconfig features_check
25REQUIRED_DISTRO_FEATURES = "x11 opengl" 25REQUIRED_DISTRO_FEATURES = "x11 opengl"
26 26
27# Remove the mesa-glu dependency in mesa-glu-dev, as mesa-glu is empty 27# Remove the mesa-glu dependency in mesa-glu-dev, as mesa-glu is empty
28RDEPENDS_${PN}-dev = "" 28RDEPENDS:${PN}-dev = ""
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb
index 38bdbded29..368af4e915 100644
--- a/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb
+++ b/meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb
@@ -49,7 +49,7 @@ PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew"
49PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" 49PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl"
50PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos" 50PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos"
51 51
52do_install_append() { 52do_install:append() {
53 # it can be completely empty when all PACKAGECONFIG options are disabled 53 # it can be completely empty when all PACKAGECONFIG options are disabled
54 rmdir --ignore-fail-on-non-empty ${D}${bindir} 54 rmdir --ignore-fail-on-non-empty ${D}${bindir}
55 55
diff --git a/meta/recipes-graphics/mesa/mesa-gl_21.1.5.bb b/meta/recipes-graphics/mesa/mesa-gl_21.1.5.bb
index dff79f0be0..142bb743b1 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_21.1.5.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_21.1.5.bb
@@ -9,7 +9,7 @@ S = "${WORKDIR}/mesa-${PV}"
9# At least one DRI rendering engine is required to build mesa. 9# At least one DRI rendering engine is required to build mesa.
10# When no X11 is available, use osmesa for the rendering engine. 10# When no X11 is available, use osmesa for the rendering engine.
11PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" 11PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"
12PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" 12PACKAGECONFIG:class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"
13 13
14# 21.0.0 version fails to build when any driver is enabled in DRIDRIVERS 14# 21.0.0 version fails to build when any driver is enabled in DRIDRIVERS
15# ./mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system 15# ./mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 85a352f736..c636313229 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -28,7 +28,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
28 28
29#because we cannot rely on the fact that all apps will use pkgconfig, 29#because we cannot rely on the fact that all apps will use pkgconfig,
30#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER 30#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
31do_install_append() { 31do_install:append() {
32 if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then 32 if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then
33 sed -i -e 's/^#elif defined(__unix__) && defined(EGL_NO_X11)$/#elif defined(__unix__) \&\& defined(EGL_NO_X11) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h 33 sed -i -e 's/^#elif defined(__unix__) && defined(EGL_NO_X11)$/#elif defined(__unix__) \&\& defined(EGL_NO_X11) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
34 fi 34 fi
@@ -48,7 +48,7 @@ inherit meson pkgconfig python3native gettext features_check
48 48
49BBCLASSEXTEND = "native nativesdk" 49BBCLASSEXTEND = "native nativesdk"
50 50
51ANY_OF_DISTRO_FEATURES_class-target = "opengl vulkan" 51ANY_OF_DISTRO_FEATURES:class-target = "opengl vulkan"
52 52
53PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" 53PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}"
54 54
@@ -82,16 +82,16 @@ EXTRA_OEMESON = " \
82def strip_comma(s): 82def strip_comma(s):
83 return s.strip(',') 83 return s.strip(',')
84 84
85PACKAGECONFIG_class-target ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \ 85PACKAGECONFIG:class-target ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \
86 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm dri gallium virgl', '', d)} \ 86 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm dri gallium virgl', '', d)} \
87 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)} \ 87 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)} \
88 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ 88 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \
89 elf-tls \ 89 elf-tls \
90 " 90 "
91PACKAGECONFIG_class-native ?= "gbm gallium egl opengl elf-tls x11" 91PACKAGECONFIG:class-native ?= "gbm gallium egl opengl elf-tls x11"
92PACKAGECONFIG_class-nativesdk ?= "gbm gallium egl opengl elf-tls x11" 92PACKAGECONFIG:class-nativesdk ?= "gbm gallium egl opengl elf-tls x11"
93 93
94PACKAGECONFIG_remove_libc-musl = "elf-tls" 94PACKAGECONFIG:remove:libc-musl = "elf-tls"
95 95
96# "gbm" requires "dri", "opengl" 96# "gbm" requires "dri", "opengl"
97PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" 97PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
@@ -110,9 +110,9 @@ PACKAGECONFIG[dri3] = "-Ddri3=enabled, -Ddri3=disabled, xorgproto libxshmfence"
110# Vulkan drivers need dri3 enabled 110# Vulkan drivers need dri3 enabled
111# amd could be enabled as well but requires gallium-llvm with llvm >= 3.9 111# amd could be enabled as well but requires gallium-llvm with llvm >= 3.9
112VULKAN_DRIVERS = "" 112VULKAN_DRIVERS = ""
113VULKAN_DRIVERS_append_x86_class-target = ",intel" 113VULKAN_DRIVERS:append:x86:class-target = ",intel"
114VULKAN_DRIVERS_append_x86-64_class-target = ",intel" 114VULKAN_DRIVERS:append:x86-64:class-target = ",intel"
115VULKAN_DRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" 115VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
116PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers=''," 116PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',"
117 117
118PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" 118PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false"
@@ -131,16 +131,16 @@ PACKAGECONFIG[v3d] = ""
131 131
132GALLIUMDRIVERS = "swrast" 132GALLIUMDRIVERS = "swrast"
133# gallium swrast was found to crash Xorg on startup in x32 qemu 133# gallium swrast was found to crash Xorg on startup in x32 qemu
134GALLIUMDRIVERS_x86-x32 = "" 134GALLIUMDRIVERS:x86-x32 = ""
135# Add crocus when 21.2 is out to the list below to support the full range of Intel GPUs 135# Add crocus when 21.2 is out to the list below to support the full range of Intel GPUs
136GALLIUMDRIVERS_append_x86_class-target = ",i915,iris" 136GALLIUMDRIVERS:append:x86:class-target = ",i915,iris"
137GALLIUMDRIVERS_append_x86-64_class-target = ",i915,iris" 137GALLIUMDRIVERS:append:x86-64:class-target = ",i915,iris"
138 138
139GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" 139GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}"
140GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" 140GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
141GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}" 141GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}"
142GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}" 142GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}"
143GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}" 143GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}"
144 144
145# radeonsi requires LLVM 145# radeonsi requires LLVM
146GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" 146GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}"
@@ -149,9 +149,9 @@ GALLIUMDRIVERS_LLVM = "r300,svga,nouveau${GALLIUMDRIVERS_RADEONSI}"
149PACKAGECONFIG[r600] = "" 149PACKAGECONFIG[r600] = ""
150PACKAGECONFIG[virgl] = "" 150PACKAGECONFIG[virgl] = ""
151 151
152GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" 152GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}"
153GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}" 153GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}"
154GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" 154GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}"
155 155
156PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" 156PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm"
157PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm${MESA_LLVM_RELEASE} llvm-native \ 157PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm${MESA_LLVM_RELEASE} llvm-native \
@@ -162,10 +162,10 @@ PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial"
162PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" 162PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau"
163 163
164PACKAGECONFIG[lima] = "" 164PACKAGECONFIG[lima] = ""
165GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" 165GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}"
166 166
167PACKAGECONFIG[panfrost] = "" 167PACKAGECONFIG[panfrost] = ""
168GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" 168GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}"
169 169
170PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false" 170PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false"
171 171
@@ -174,16 +174,16 @@ PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
174PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" 174PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors"
175 175
176# llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) 176# llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
177FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer" 177FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer"
178 178
179CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS" 179CFLAGS:append:armv5 = " -DMISSING_64BIT_ATOMICS"
180CFLAGS_append_armv6 = " -DMISSING_64BIT_ATOMICS" 180CFLAGS:append:armv6 = " -DMISSING_64BIT_ATOMICS"
181 181
182# Remove the mesa dependency on mesa-dev, as mesa is empty 182# Remove the mesa dependency on mesa-dev, as mesa is empty
183RDEPENDS_${PN}-dev = "" 183RDEPENDS:${PN}-dev = ""
184 184
185# Add dependency so that GLES3 header don't need to be added manually 185# Add dependency so that GLES3 header don't need to be added manually
186RDEPENDS_libgles2-mesa-dev += "libgles3-mesa-dev" 186RDEPENDS:libgles2-mesa-dev += "libgles3-mesa-dev"
187 187
188PACKAGES =+ "libegl-mesa libegl-mesa-dev \ 188PACKAGES =+ "libegl-mesa libegl-mesa-dev \
189 libosmesa libosmesa-dev \ 189 libosmesa libosmesa-dev \
@@ -198,7 +198,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
198 mesa-vdpau-drivers \ 198 mesa-vdpau-drivers \
199 " 199 "
200 200
201do_install_append () { 201do_install:append () {
202 # Drivers never need libtool .la files 202 # Drivers never need libtool .la files
203 rm -f ${D}${libdir}/dri/*.la 203 rm -f ${D}${libdir}/dri/*.la
204 rm -f ${D}${libdir}/egl/*.la 204 rm -f ${D}${libdir}/egl/*.la
@@ -232,28 +232,28 @@ python __anonymous() {
232 fullp = mlprefix + p[1] + "-mesa" + suffix 232 fullp = mlprefix + p[1] + "-mesa" + suffix
233 mlprefix = d.getVar("MLPREFIX") 233 mlprefix = d.getVar("MLPREFIX")
234 pkgs = " ".join(mlprefix + x + suffix for x in p[1:]) 234 pkgs = " ".join(mlprefix + x + suffix for x in p[1:])
235 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") 235 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
236 d.appendVar("RREPLACES_" + fullp, pkgs) 236 d.appendVar("RREPLACES:" + fullp, pkgs)
237 d.appendVar("RPROVIDES_" + fullp, pkgs) 237 d.appendVar("RPROVIDES:" + fullp, pkgs)
238 d.appendVar("RCONFLICTS_" + fullp, pkgs) 238 d.appendVar("RCONFLICTS:" + fullp, pkgs)
239 239
240 d.appendVar("RRECOMMENDS_" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix) 240 d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
241 241
242 # For -dev, the first element is both the Debian and original name 242 # For -dev, the first element is both the Debian and original name
243 fullp = mlprefix + p[1] + "-mesa-dev" + suffix 243 fullp = mlprefix + p[1] + "-mesa-dev" + suffix
244 pkgs = mlprefix + p[1] + "-dev" + suffix 244 pkgs = mlprefix + p[1] + "-dev" + suffix
245 d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") 245 d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
246 d.appendVar("RREPLACES_" + fullp, pkgs) 246 d.appendVar("RREPLACES:" + fullp, pkgs)
247 d.appendVar("RPROVIDES_" + fullp, pkgs) 247 d.appendVar("RPROVIDES:" + fullp, pkgs)
248 d.appendVar("RCONFLICTS_" + fullp, pkgs) 248 d.appendVar("RCONFLICTS:" + fullp, pkgs)
249} 249}
250 250
251python mesa_populate_packages() { 251python mesa_populate_packages() {
252 pkgs = ['mesa', 'mesa-dev', 'mesa-dbg'] 252 pkgs = ['mesa', 'mesa-dev', 'mesa-dbg']
253 for pkg in pkgs: 253 for pkg in pkgs:
254 d.setVar("RPROVIDES_%s" % pkg, pkg.replace("mesa", "mesa-dri", 1)) 254 d.setVar("RPROVIDES:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1))
255 d.setVar("RCONFLICTS_%s" % pkg, pkg.replace("mesa", "mesa-dri", 1)) 255 d.setVar("RCONFLICTS:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1))
256 d.setVar("RREPLACES_%s" % pkg, pkg.replace("mesa", "mesa-dri", 1)) 256 d.setVar("RREPLACES:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1))
257 257
258 import re 258 import re
259 dri_drivers_root = oe.path.join(d.getVar('PKGD'), d.getVar('libdir'), "dri") 259 dri_drivers_root = oe.path.join(d.getVar('PKGD'), d.getVar('libdir'), "dri")
@@ -264,45 +264,45 @@ python mesa_populate_packages() {
264 m = re.match(r'^(.*)_dri\.so$', p) 264 m = re.match(r'^(.*)_dri\.so$', p)
265 if m: 265 if m:
266 pkg_name = " ${MLPREFIX}mesa-driver-%s" % legitimize_package_name(m.group(1)) 266 pkg_name = " ${MLPREFIX}mesa-driver-%s" % legitimize_package_name(m.group(1))
267 d.appendVar("RPROVIDES_%s" % lib_name, pkg_name) 267 d.appendVar("RPROVIDES:%s" % lib_name, pkg_name)
268 d.appendVar("RCONFLICTS_%s" % lib_name, pkg_name) 268 d.appendVar("RCONFLICTS:%s" % lib_name, pkg_name)
269 d.appendVar("RREPLACES_%s" % lib_name, pkg_name) 269 d.appendVar("RREPLACES:%s" % lib_name, pkg_name)
270 270
271 pipe_drivers_root = os.path.join(d.getVar('libdir'), "gallium-pipe") 271 pipe_drivers_root = os.path.join(d.getVar('libdir'), "gallium-pipe")
272 do_split_packages(d, pipe_drivers_root, r'^pipe_(.*)\.so$', 'mesa-driver-pipe-%s', 'Mesa %s pipe driver', extra_depends='') 272 do_split_packages(d, pipe_drivers_root, r'^pipe_(.*)\.so$', 'mesa-driver-pipe-%s', 'Mesa %s pipe driver', extra_depends='')
273} 273}
274 274
275PACKAGESPLITFUNCS_prepend = "mesa_populate_packages " 275PACKAGESPLITFUNCS:prepend = "mesa_populate_packages "
276 276
277PACKAGES_DYNAMIC += "^mesa-driver-.*" 277PACKAGES_DYNAMIC += "^mesa-driver-.*"
278PACKAGES_DYNAMIC_class-native = "^mesa-driver-.*-native" 278PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native"
279 279
280FILES_mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf" 280FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf"
281FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" 281FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan"
282FILES_${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" 282FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*"
283FILES_libegl-mesa = "${libdir}/libEGL.so.*" 283FILES:libegl-mesa = "${libdir}/libEGL.so.*"
284FILES_libgbm = "${libdir}/libgbm.so.*" 284FILES:libgbm = "${libdir}/libgbm.so.*"
285FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*" 285FILES:libgles1-mesa = "${libdir}/libGLESv1*.so.*"
286FILES_libgles2-mesa = "${libdir}/libGLESv2.so.*" 286FILES:libgles2-mesa = "${libdir}/libGLESv2.so.*"
287FILES_libgl-mesa = "${libdir}/libGL.so.*" 287FILES:libgl-mesa = "${libdir}/libGL.so.*"
288FILES_libglapi = "${libdir}/libglapi.so.*" 288FILES:libglapi = "${libdir}/libglapi.so.*"
289FILES_libosmesa = "${libdir}/libOSMesa.so.*" 289FILES:libosmesa = "${libdir}/libOSMesa.so.*"
290FILES_libxatracker = "${libdir}/libxatracker.so.*" 290FILES:libxatracker = "${libdir}/libxatracker.so.*"
291 291
292FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan ${libdir}/vdpau/*.so" 292FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan ${libdir}/vdpau/*.so"
293FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" 293FILES:libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
294FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" 294FILES:libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h"
295FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" 295FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc"
296FILES_libglapi-dev = "${libdir}/libglapi.*" 296FILES:libglapi-dev = "${libdir}/libglapi.*"
297FILES_libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" 297FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc"
298FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" 298FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc"
299FILES_libgles3-mesa-dev = "${includedir}/GLES3" 299FILES:libgles3-mesa-dev = "${includedir}/GLES3"
300FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc" 300FILES:libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc"
301FILES_libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ 301FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \
302 ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ 302 ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \
303 ${libdir}/pkgconfig/xatracker.pc" 303 ${libdir}/pkgconfig/xatracker.pc"
304 304
305# Fix upgrade path from mesa to mesa-megadriver 305# Fix upgrade path from mesa to mesa-megadriver
306RREPLACES_mesa-megadriver = "mesa" 306RREPLACES:mesa-megadriver = "mesa"
307RCONFLICTS_mesa-megadriver = "mesa" 307RCONFLICTS:mesa-megadriver = "mesa"
308RPROVIDES_mesa-megadriver = "mesa" 308RPROVIDES:mesa-megadriver = "mesa"
diff --git a/meta/recipes-graphics/mesa/mesa_21.1.5.bb b/meta/recipes-graphics/mesa/mesa_21.1.5.bb
index 28abc91a87..3f62990b29 100644
--- a/meta/recipes-graphics/mesa/mesa_21.1.5.bb
+++ b/meta/recipes-graphics/mesa/mesa_21.1.5.bb
@@ -1,5 +1,5 @@
1require ${BPN}.inc 1require ${BPN}.inc
2 2
3DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965" 3DRIDRIVERS:append:x86:class-target = ",r100,r200,nouveau,i965"
4DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965" 4DRIDRIVERS:append:x86-64:class-target = ",r100,r200,nouveau,i965"
5 5