]> code.ossystems Code Review - meta-freescale.git/commitdiff
xserver-xorg: Remove dri and glx for i.MX DRM
authorTom Hochstein <tom.hochstein@nxp.com>
Mon, 29 Mar 2021 22:11:02 +0000 (17:11 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 13 Apr 2021 20:30:43 +0000 (17:30 -0300)
The removal of swrast support from mesa also removes dri support from
mesa for i.MX with DRM, so disable dri.

glx support depends on dri, so disable glx.

xwayland breaks without glx, so backport a patch that fixes the break.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/xorg-xserver/xserver-xorg/0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch [new file with mode: 0644]
recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend

diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch
new file mode 100644 (file)
index 0000000..48f271a
--- /dev/null
@@ -0,0 +1,44 @@
+From 836f93de99b35050d78d61d3654f7c5655184144 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 19 Apr 2019 10:19:50 +0200
+Subject: [PATCH] hw/xwayland/Makefile.am: fix build without glx
+
+Commit d8ec33fe0542141aed1d9016d2ecaf52da944b4b added libglxvnd.la to
+Xwayland_LDFLAGS but GLX can be disabled through --disable-glx.
+In this case, build fails on:
+
+make[3]: *** No rule to make target '../../glx/libglxvnd.la', needed by 'Xwayland'.  Stop.
+make[3]: *** Waiting for unfinished jobs....
+
+Fixes:
+ - http://autobuild.buildroot.org/results/397f8098c57fc6c88aa12dc8d35ebb1b933d52ef
+
+Upstream-Status: Backport [836f93de99b35050d78d61d3654f7c5655184144]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ hw/xwayland/Makefile.am | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/hw/xwayland/Makefile.am b/hw/xwayland/Makefile.am
+index bc1cb8506..502879e2a 100644
+--- a/hw/xwayland/Makefile.am
++++ b/hw/xwayland/Makefile.am
+@@ -21,10 +21,14 @@ Xwayland_SOURCES =                         \
+       $(top_srcdir)/Xi/stubs.c                \
+       $(top_srcdir)/mi/miinitext.c
++if GLX
++GLXVND_LIB = $(top_builddir)/glx/libglxvnd.la
++endif
++
+ Xwayland_LDADD =                              \
+       $(glamor_lib)                           \
+       $(XWAYLAND_LIBS)                        \
+-      $(top_builddir)/glx/libglxvnd.la        \
++      $(GLXVND_LIB)                           \
+       $(XWAYLAND_SYS_LIBS)                    \
+       $(top_builddir)/Xext/libXvidmode.la     \
+       $(XSERVER_SYS_LIBS)
+-- 
+2.17.1
+
index 84b69075bd568fa70609e62b2d750c16aa8edd2b..9eb149f04bab76732db375b12284eeeb04f8772a 100644 (file)
@@ -1,8 +1,12 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
+SRC_URI_append_imxgpu = " \
+    file://0003-Remove-check-for-useSIGIO-option.patch \
+    file://0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch \
+"
+
 IMX_OPENGL_PKGCONFIGS_REMOVE        = ""
 IMX_OPENGL_PKGCONFIGS_REMOVE_imxgpu = "glamor"
 OPENGL_PKGCONFIGS_remove_mx6        = "${IMX_OPENGL_PKGCONFIGS_REMOVE}"
 OPENGL_PKGCONFIGS_remove_mx7        = "${IMX_OPENGL_PKGCONFIGS_REMOVE}"
 OPENGL_PKGCONFIGS_remove_mx8        = "${IMX_OPENGL_PKGCONFIGS_REMOVE}"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
-SRC_URI_append_imxgpu2d = " file://0003-Remove-check-for-useSIGIO-option.patch"
+OPENGL_PKGCONFIGS_remove_imxdrm     = "dri glx"