diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-graphics/mesa | |
parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
download | poky-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.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos_8.4.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-gl_21.1.5.bb | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 142 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa_21.1.5.bb | 4 |
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 | |||
25 | REQUIRED_DISTRO_FEATURES = "x11 opengl" | 25 | REQUIRED_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 |
28 | RDEPENDS_${PN}-dev = "" | 28 | RDEPENDS:${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" | |||
49 | PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" | 49 | PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" |
50 | PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos" | 50 | PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos" |
51 | 51 | ||
52 | do_install_append() { | 52 | do_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. |
11 | PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" | 11 | PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" |
12 | PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" | 12 | PACKAGECONFIG: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 |
31 | do_install_append() { | 31 | do_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 | ||
49 | BBCLASSEXTEND = "native nativesdk" | 49 | BBCLASSEXTEND = "native nativesdk" |
50 | 50 | ||
51 | ANY_OF_DISTRO_FEATURES_class-target = "opengl vulkan" | 51 | ANY_OF_DISTRO_FEATURES:class-target = "opengl vulkan" |
52 | 52 | ||
53 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" | 53 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" |
54 | 54 | ||
@@ -82,16 +82,16 @@ EXTRA_OEMESON = " \ | |||
82 | def strip_comma(s): | 82 | def strip_comma(s): |
83 | return s.strip(',') | 83 | return s.strip(',') |
84 | 84 | ||
85 | PACKAGECONFIG_class-target ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \ | 85 | PACKAGECONFIG: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 | " |
91 | PACKAGECONFIG_class-native ?= "gbm gallium egl opengl elf-tls x11" | 91 | PACKAGECONFIG:class-native ?= "gbm gallium egl opengl elf-tls x11" |
92 | PACKAGECONFIG_class-nativesdk ?= "gbm gallium egl opengl elf-tls x11" | 92 | PACKAGECONFIG:class-nativesdk ?= "gbm gallium egl opengl elf-tls x11" |
93 | 93 | ||
94 | PACKAGECONFIG_remove_libc-musl = "elf-tls" | 94 | PACKAGECONFIG:remove:libc-musl = "elf-tls" |
95 | 95 | ||
96 | # "gbm" requires "dri", "opengl" | 96 | # "gbm" requires "dri", "opengl" |
97 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" | 97 | PACKAGECONFIG[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 |
112 | VULKAN_DRIVERS = "" | 112 | VULKAN_DRIVERS = "" |
113 | VULKAN_DRIVERS_append_x86_class-target = ",intel" | 113 | VULKAN_DRIVERS:append:x86:class-target = ",intel" |
114 | VULKAN_DRIVERS_append_x86-64_class-target = ",intel" | 114 | VULKAN_DRIVERS:append:x86-64:class-target = ",intel" |
115 | VULKAN_DRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | 115 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" |
116 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers=''," | 116 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers=''," |
117 | 117 | ||
118 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" | 118 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" |
@@ -131,16 +131,16 @@ PACKAGECONFIG[v3d] = "" | |||
131 | 131 | ||
132 | GALLIUMDRIVERS = "swrast" | 132 | GALLIUMDRIVERS = "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 |
134 | GALLIUMDRIVERS_x86-x32 = "" | 134 | GALLIUMDRIVERS: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 |
136 | GALLIUMDRIVERS_append_x86_class-target = ",i915,iris" | 136 | GALLIUMDRIVERS:append:x86:class-target = ",i915,iris" |
137 | GALLIUMDRIVERS_append_x86-64_class-target = ",i915,iris" | 137 | GALLIUMDRIVERS:append:x86-64:class-target = ",i915,iris" |
138 | 138 | ||
139 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" | 139 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" |
140 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | 140 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" |
141 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}" | 141 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}" |
142 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}" | 142 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}" |
143 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}" | 143 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}" |
144 | 144 | ||
145 | # radeonsi requires LLVM | 145 | # radeonsi requires LLVM |
146 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" | 146 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" |
@@ -149,9 +149,9 @@ GALLIUMDRIVERS_LLVM = "r300,svga,nouveau${GALLIUMDRIVERS_RADEONSI}" | |||
149 | PACKAGECONFIG[r600] = "" | 149 | PACKAGECONFIG[r600] = "" |
150 | PACKAGECONFIG[virgl] = "" | 150 | PACKAGECONFIG[virgl] = "" |
151 | 151 | ||
152 | GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" | 152 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',${GALLIUMDRIVERS_LLVM}', '', d)}" |
153 | GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}" | 153 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}" |
154 | GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" | 154 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" |
155 | 155 | ||
156 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" | 156 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" |
157 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm${MESA_LLVM_RELEASE} llvm-native \ | 157 | PACKAGECONFIG[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" | |||
162 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" | 162 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" |
163 | 163 | ||
164 | PACKAGECONFIG[lima] = "" | 164 | PACKAGECONFIG[lima] = "" |
165 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" | 165 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" |
166 | 166 | ||
167 | PACKAGECONFIG[panfrost] = "" | 167 | PACKAGECONFIG[panfrost] = "" |
168 | GALLIUMDRIVERS_append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" | 168 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" |
169 | 169 | ||
170 | PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false" | 170 | PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false" |
171 | 171 | ||
@@ -174,16 +174,16 @@ PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" | |||
174 | PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" | 174 | PACKAGECONFIG[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) |
177 | FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer" | 177 | FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer" |
178 | 178 | ||
179 | CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS" | 179 | CFLAGS:append:armv5 = " -DMISSING_64BIT_ATOMICS" |
180 | CFLAGS_append_armv6 = " -DMISSING_64BIT_ATOMICS" | 180 | CFLAGS: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 |
183 | RDEPENDS_${PN}-dev = "" | 183 | RDEPENDS:${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 |
186 | RDEPENDS_libgles2-mesa-dev += "libgles3-mesa-dev" | 186 | RDEPENDS:libgles2-mesa-dev += "libgles3-mesa-dev" |
187 | 187 | ||
188 | PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | 188 | PACKAGES =+ "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 | ||
201 | do_install_append () { | 201 | do_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 | ||
251 | python mesa_populate_packages() { | 251 | python 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 | ||
275 | PACKAGESPLITFUNCS_prepend = "mesa_populate_packages " | 275 | PACKAGESPLITFUNCS:prepend = "mesa_populate_packages " |
276 | 276 | ||
277 | PACKAGES_DYNAMIC += "^mesa-driver-.*" | 277 | PACKAGES_DYNAMIC += "^mesa-driver-.*" |
278 | PACKAGES_DYNAMIC_class-native = "^mesa-driver-.*-native" | 278 | PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native" |
279 | 279 | ||
280 | FILES_mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf" | 280 | FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf" |
281 | FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" | 281 | FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" |
282 | FILES_${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" | 282 | FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" |
283 | FILES_libegl-mesa = "${libdir}/libEGL.so.*" | 283 | FILES:libegl-mesa = "${libdir}/libEGL.so.*" |
284 | FILES_libgbm = "${libdir}/libgbm.so.*" | 284 | FILES:libgbm = "${libdir}/libgbm.so.*" |
285 | FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*" | 285 | FILES:libgles1-mesa = "${libdir}/libGLESv1*.so.*" |
286 | FILES_libgles2-mesa = "${libdir}/libGLESv2.so.*" | 286 | FILES:libgles2-mesa = "${libdir}/libGLESv2.so.*" |
287 | FILES_libgl-mesa = "${libdir}/libGL.so.*" | 287 | FILES:libgl-mesa = "${libdir}/libGL.so.*" |
288 | FILES_libglapi = "${libdir}/libglapi.so.*" | 288 | FILES:libglapi = "${libdir}/libglapi.so.*" |
289 | FILES_libosmesa = "${libdir}/libOSMesa.so.*" | 289 | FILES:libosmesa = "${libdir}/libOSMesa.so.*" |
290 | FILES_libxatracker = "${libdir}/libxatracker.so.*" | 290 | FILES:libxatracker = "${libdir}/libxatracker.so.*" |
291 | 291 | ||
292 | FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan ${libdir}/vdpau/*.so" | 292 | FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan ${libdir}/vdpau/*.so" |
293 | FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | 293 | FILES:libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" |
294 | FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | 294 | FILES:libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" |
295 | FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" | 295 | FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" |
296 | FILES_libglapi-dev = "${libdir}/libglapi.*" | 296 | FILES:libglapi-dev = "${libdir}/libglapi.*" |
297 | FILES_libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" | 297 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" |
298 | FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" | 298 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" |
299 | FILES_libgles3-mesa-dev = "${includedir}/GLES3" | 299 | FILES:libgles3-mesa-dev = "${includedir}/GLES3" |
300 | FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc" | 300 | FILES:libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc" |
301 | FILES_libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ | 301 | FILES: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 |
306 | RREPLACES_mesa-megadriver = "mesa" | 306 | RREPLACES:mesa-megadriver = "mesa" |
307 | RCONFLICTS_mesa-megadriver = "mesa" | 307 | RCONFLICTS:mesa-megadriver = "mesa" |
308 | RPROVIDES_mesa-megadriver = "mesa" | 308 | RPROVIDES: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 @@ | |||
1 | require ${BPN}.inc | 1 | require ${BPN}.inc |
2 | 2 | ||
3 | DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965" | 3 | DRIDRIVERS:append:x86:class-target = ",r100,r200,nouveau,i965" |
4 | DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965" | 4 | DRIDRIVERS:append:x86-64:class-target = ",r100,r200,nouveau,i965" |
5 | 5 | ||