summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 66ed649efe..0ce7e4d626 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -55,7 +55,7 @@ PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl"
55# "gbm" requires "dri", "opengl" 55# "gbm" requires "dri", "opengl"
56PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm" 56PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
57 57
58X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes" 58X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr"
59# "x11" requires "opengl" 59# "x11" requires "opengl"
60PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" 60PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}"
61PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" 61PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
@@ -104,7 +104,7 @@ GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600',
104GALLIUMDRIVERS_append = ",virgl" 104GALLIUMDRIVERS_append = ",virgl"
105 105
106# keep --with-gallium-drivers separate, because when only one of gallium versions is enabled, other 2 were adding --without-gallium-drivers 106# keep --with-gallium-drivers separate, because when only one of gallium versions is enabled, other 2 were adding --without-gallium-drivers
107PACKAGECONFIG[gallium] = "--enable-texture-float --with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers" 107PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers"
108MESA_LLVM_RELEASE ?= "8.0" 108MESA_LLVM_RELEASE ?= "8.0"
109PACKAGECONFIG[gallium-llvm] = "--enable-llvm --enable-llvm-shared-libs, --disable-llvm, llvm${MESA_LLVM_RELEASE} llvm-native \ 109PACKAGECONFIG[gallium-llvm] = "--enable-llvm --enable-llvm-shared-libs, --disable-llvm, llvm${MESA_LLVM_RELEASE} llvm-native \
110 ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" 110 ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}"
@@ -152,7 +152,6 @@ do_install_append () {
152 rm -f ${D}${libdir}/gbm/*.la 152 rm -f ${D}${libdir}/gbm/*.la
153 153
154 # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used 154 # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
155 rm -f ${D}${sysconfdir}/drirc
156 chrpath --delete ${D}${libdir}/dri/*_dri.so || true 155 chrpath --delete ${D}${libdir}/dri/*_dri.so || true
157 156
158 # libwayland-egl has been moved to wayland 1.15+ 157 # libwayland-egl has been moved to wayland 1.15+
@@ -219,8 +218,7 @@ PACKAGESPLITFUNCS_prepend = "mesa_populate_packages "
219 218
220PACKAGES_DYNAMIC += "^mesa-driver-.*" 219PACKAGES_DYNAMIC += "^mesa-driver-.*"
221 220
222FILES_${PN} += "${sysconfdir}/drirc" 221FILES_mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf"
223FILES_mesa-megadriver = "${libdir}/dri/*"
224FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" 222FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan"
225FILES_libegl-mesa = "${libdir}/libEGL.so.*" 223FILES_libegl-mesa = "${libdir}/libEGL.so.*"
226FILES_libgbm = "${libdir}/libgbm.so.*" 224FILES_libgbm = "${libdir}/libgbm.so.*"
@@ -243,3 +241,8 @@ FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}
243FILES_libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ 241FILES_libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \
244 ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ 242 ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \
245 ${libdir}/pkgconfig/xatracker.pc" 243 ${libdir}/pkgconfig/xatracker.pc"
244
245# Fix upgrade path from mesa to mesa-megadriver
246RREPLACES_mesa-megadriver = "mesa"
247RCONFLICTS_mesa-megadriver = "mesa"
248RPROVIDES_mesa-megadriver = "mesa"