diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 13 |
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" |
56 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm" | 56 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm" |
57 | 57 | ||
58 | X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes" | 58 | X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr" |
59 | # "x11" requires "opengl" | 59 | # "x11" requires "opengl" |
60 | PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" | 60 | PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" |
61 | PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" | 61 | PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" |
@@ -104,7 +104,7 @@ GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', | |||
104 | GALLIUMDRIVERS_append = ",virgl" | 104 | GALLIUMDRIVERS_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 |
107 | PACKAGECONFIG[gallium] = "--enable-texture-float --with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers" | 107 | PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --without-gallium-drivers" |
108 | MESA_LLVM_RELEASE ?= "8.0" | 108 | MESA_LLVM_RELEASE ?= "8.0" |
109 | PACKAGECONFIG[gallium-llvm] = "--enable-llvm --enable-llvm-shared-libs, --disable-llvm, llvm${MESA_LLVM_RELEASE} llvm-native \ | 109 | PACKAGECONFIG[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 | ||
220 | PACKAGES_DYNAMIC += "^mesa-driver-.*" | 219 | PACKAGES_DYNAMIC += "^mesa-driver-.*" |
221 | 220 | ||
222 | FILES_${PN} += "${sysconfdir}/drirc" | 221 | FILES_mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf" |
223 | FILES_mesa-megadriver = "${libdir}/dri/*" | ||
224 | FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" | 222 | FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" |
225 | FILES_libegl-mesa = "${libdir}/libEGL.so.*" | 223 | FILES_libegl-mesa = "${libdir}/libEGL.so.*" |
226 | FILES_libgbm = "${libdir}/libgbm.so.*" | 224 | FILES_libgbm = "${libdir}/libgbm.so.*" |
@@ -243,3 +241,8 @@ FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir} | |||
243 | FILES_libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ | 241 | FILES_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 | ||
246 | RREPLACES_mesa-megadriver = "mesa" | ||
247 | RCONFLICTS_mesa-megadriver = "mesa" | ||
248 | RPROVIDES_mesa-megadriver = "mesa" | ||