From: Max Krummenacher Date: Sat, 26 Jun 2021 11:32:08 +0000 (+0200) Subject: xwayland: fix build against vivante provided opengl on 32bit i.MX X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=refs%2Fpull%2F817%2Fhead;p=meta-freescale.git xwayland: fix build against vivante provided opengl on 32bit i.MX With 'use-nxp-bsp' xwayland must not be configured to use glamour. Set the now available package configs accordingly. Prevents compile time errors like: | ../xwayland-21.1.1/hw/xwayland/xwayland-present.c:61:49: error: invalid application of 'sizeof' to incomplete type 'struct xwl_present_window' | 61 | xwl_present_window = calloc (1, sizeof (struct xwl_present_window)); ... | ../xwayland-21.1.1/hw/xwayland/xwayland-present.c:450:14: error: implicit declaration of function 'xwl_glamor_pixmap_get_wl_buffer' [-Werror=implicit-function-declaration] | 450 | buffer = xwl_glamor_pixmap_get_wl_buffer(pixmap); Signed-off-by: Max Krummenacher --- diff --git a/recipes-graphics/xwayland/xwayland_%.bbappend b/recipes-graphics/xwayland/xwayland_%.bbappend new file mode 100644 index 00000000..c26bb20d --- /dev/null +++ b/recipes-graphics/xwayland/xwayland_%.bbappend @@ -0,0 +1,4 @@ +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}"