diff options
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index efb12e573f..cb075a8b89 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -218,6 +218,9 @@ do_install_append () { | |||
218 | # RPROVIDEs/RCONFLICTs on the generic libgl name. | 218 | # RPROVIDEs/RCONFLICTs on the generic libgl name. |
219 | python __anonymous() { | 219 | python __anonymous() { |
220 | pkgconfig = (d.getVar('PACKAGECONFIG') or "").split() | 220 | pkgconfig = (d.getVar('PACKAGECONFIG') or "").split() |
221 | suffix = "" | ||
222 | if "-native" in d.getVar("PN"): | ||
223 | suffix = "-native" | ||
221 | for p in (("egl", "libegl", "libegl1"), | 224 | for p in (("egl", "libegl", "libegl1"), |
222 | ("dri", "libgl", "libgl1"), | 225 | ("dri", "libgl", "libgl1"), |
223 | ("gles", "libgles1", "libglesv1-cm1"), | 226 | ("gles", "libgles1", "libglesv1-cm1"), |
@@ -226,19 +229,19 @@ python __anonymous() { | |||
226 | if not p[0] in pkgconfig: | 229 | if not p[0] in pkgconfig: |
227 | continue | 230 | continue |
228 | mlprefix = d.getVar("MLPREFIX") | 231 | mlprefix = d.getVar("MLPREFIX") |
229 | fullp = mlprefix + p[1] + "-mesa" | 232 | fullp = mlprefix + p[1] + "-mesa" + suffix |
230 | mlprefix = d.getVar("MLPREFIX") | 233 | mlprefix = d.getVar("MLPREFIX") |
231 | pkgs = " ".join(mlprefix + x for x in p[1:]) | 234 | pkgs = " ".join(mlprefix + x + suffix for x in p[1:]) |
232 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | 235 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") |
233 | d.appendVar("RREPLACES_" + fullp, pkgs) | 236 | d.appendVar("RREPLACES_" + fullp, pkgs) |
234 | d.appendVar("RPROVIDES_" + fullp, pkgs) | 237 | d.appendVar("RPROVIDES_" + fullp, pkgs) |
235 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | 238 | d.appendVar("RCONFLICTS_" + fullp, pkgs) |
236 | 239 | ||
237 | d.appendVar("RRECOMMENDS_" + fullp, " ${MLPREFIX}mesa-megadriver") | 240 | d.appendVar("RRECOMMENDS_" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix) |
238 | 241 | ||
239 | # 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 |
240 | fullp += "-dev" | 243 | fullp = mlprefix + p[1] + "-mesa-dev" + suffix |
241 | pkgs = mlprefix + p[1] + "-dev" | 244 | pkgs = mlprefix + p[1] + "-dev" + suffix |
242 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | 245 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") |
243 | d.appendVar("RREPLACES_" + fullp, pkgs) | 246 | d.appendVar("RREPLACES_" + fullp, pkgs) |
244 | d.appendVar("RPROVIDES_" + fullp, pkgs) | 247 | d.appendVar("RPROVIDES_" + fullp, pkgs) |
@@ -272,6 +275,7 @@ python mesa_populate_packages() { | |||
272 | PACKAGESPLITFUNCS_prepend = "mesa_populate_packages " | 275 | PACKAGESPLITFUNCS_prepend = "mesa_populate_packages " |
273 | 276 | ||
274 | PACKAGES_DYNAMIC += "^mesa-driver-.*" | 277 | PACKAGES_DYNAMIC += "^mesa-driver-.*" |
278 | PACKAGES_DYNAMIC_class-native = "^mesa-driver-.*-native" | ||
275 | 279 | ||
276 | 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" |
277 | FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" | 281 | FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" |