[meta-freescale] [PATCH 09/14] weston: Use compiler settings provided by IMX-GPU driver pkg-config

Tom Hochstein tom.hochstein at nxp.com
Thu Dec 8 06:36:18 PST 2016


Hi Fabio,

Thanks for the info. I’m working on a fix.

Tom

From: Fabio Berton [mailto:fabio.berton at ossystems.com.br]
Sent: Wednesday, December 07, 2016 7:31 AM
To: Tom Hochstein <tom.hochstein at nxp.com>
Cc: meta-freescale at yoctoproject.org
Subject: Re: [meta-freescale] [PATCH 09/14] weston: Use compiler settings provided by IMX-GPU driver pkg-config

Hi Tom!
With this commit, weston fails to compile when using fslc-wayland distro.

| In file included from ../weston-1.11.1/src/g2d-renderer.c:41:0:
| /home/berton/src/fslc/fsl-community-bsp-master/build/tmp/sysroots/imx6slevk/usr/include/HAL/gc_hal_eglplatform.h:208:2: error: #error "Platform not recognized"
|  #error "Platform not recognized"
|   ^~~~~


On Fri, Nov 18, 2016 at 11:11 PM, Tom Hochstein <tom.hochstein at nxp.com<mailto:tom.hochstein at nxp.com>> wrote:
The IMX-GPU driver now provides compiler settings through pkg-config,
so don't set them explicitly. The package had to be patched to
link the compositor to egl.

Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com<mailto:tom.hochstein at nxp.com>>
---
 .../weston/0016-Link-compositor-to-egl.patch       | 12 +++++++++++
 recipes-graphics/wayland/weston_%.bbappend         | 23 +---------------------
 2 files changed, 13 insertions(+), 22 deletions(-)
 create mode 100644 recipes-graphics/wayland/weston/0016-Link-compositor-to-egl.patch

diff --git a/recipes-graphics/wayland/weston/0016-Link-compositor-to-egl.patch b/recipes-graphics/wayland/weston/0016-Link-compositor-to-egl.patch
new file mode 100644
index 0000000..3cad74f
--- /dev/null
+++ b/recipes-graphics/wayland/weston/0016-Link-compositor-to-egl.patch
@@ -0,0 +1,12 @@
+Index: weston-1.11.1/configure.ac<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfigure.ac&data=01%7C01%7Ctom.hochstein%40nxp.com%7C2c49f2ceb3614844b4a108d41ea55dac%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=HKZbBp9v4NkhnqNCT%2Fs6ctp4o33NUIIhujkXkyqUL60%3D&reserved=0>
+===================================================================
+--- weston-1.11.1.orig/configure.ac<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfigure.ac&data=01%7C01%7Ctom.hochstein%40nxp.com%7C2c49f2ceb3614844b4a108d41ea55dac%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=HKZbBp9v4NkhnqNCT%2Fs6ctp4o33NUIIhujkXkyqUL60%3D&reserved=0>    2016-11-08 17:26:14.266564760 -0600
++++ weston-1.11.1/configure.ac<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfigure.ac&data=01%7C01%7Ctom.hochstein%40nxp.com%7C2c49f2ceb3614844b4a108d41ea55dac%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=HKZbBp9v4NkhnqNCT%2Fs6ctp4o33NUIIhujkXkyqUL60%3D&reserved=0> 2016-11-09 19:38:58.000000000 -0600
+@@ -93,6 +93,7 @@
+       PKG_CHECK_MODULES(EGL, [egl glesv2])
+         PKG_CHECK_MODULES([EGL_TESTS], [egl glesv2 wayland-client wayland-egl])
+       PKG_CHECK_MODULES([GL_RENDERER], [libdrm])
++      COMPOSITOR_MODULES="$COMPOSITOR_MODULES egl"
+ fi
+
+ AC_ARG_ENABLE(xkbcommon,
diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index 366398f..dbe87f1 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -14,6 +14,7 @@ SRC_URI_append_imxgpu2d = " \
     file://0013-MGS-1945-Use-common-API-to-support-G2d-compositor.patch<file:///\\0013-MGS-1945-Use-common-API-to-support-G2d-compositor.patch>    \
     file://0014-MGS-1987-Get-stride-from-the-FB-buffe.patch<file:///\\0014-MGS-1987-Get-stride-from-the-FB-buffe.patch>                \
     file://0015-MGS-2221-imx-171-Fix-weston-build-failed.patch<file:///\\0015-MGS-2221-imx-171-Fix-weston-build-failed.patch>             \
+    file://0016-Link-compositor-to-egl.patch<file:///\\0016-Link-compositor-to-egl.patch>                               \
 "

 PACKAGECONFIG_IMX_TO_APPEND = ""
@@ -37,25 +38,3 @@ EXTRA_OECONF_IMX_imxpxp   = "${EXTRA_OECONF_IMX_COMMON}"
 EXTRA_OECONF_IMX_imxgpu2d = "${EXTRA_OECONF_IMX_COMMON}"

 EXTRA_OECONF_append = " ${EXTRA_OECONF_IMX}"
-
-# Use a intermediate step to configure the linking flags
-IMXGPU_LIBS = ""
-IMXGPU_LIBS_imxgpu2d = " \
-    COMPOSITOR_LIBS="-lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \
-    FB_COMPOSITOR_LIBS="-lEGL -lwayland-server -lxkbcommon" \
-"
-IMXGPU_LIBS_imxgpu3d = " \
-    COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \
-    FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \
-"
-
-# Use the linking flags according to the GPU support
-EXTRA_OEMAKE_append_imxgpu2d = " \
-    COMPOSITOR_CFLAGS="-I ${STAGING_INCDIR}/pixman-1 -DLINUX=1 -DEGL_API_FB -DEGL_API_WL" \
-    FB_COMPOSITOR_CFLAGS="-DLINUX=1 -DEGL_API_FB -DEGL_API_WL" \
-    SIMPLE_EGL_CLIENT_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" \
-    EGL_TESTS_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" \
-    CLIENT_CFLAGS="-I ${STAGING_INCDIR}/cairo -I ${STAGING_INCDIR}/pixman-1 -DLINUX -DEGL_API_FB -DEGL_API_WL" \
-    \
-    ${IMXGPU_LIBS} \
-"
--
1.9.1

--
_______________________________________________
meta-freescale mailing list
meta-freescale at yoctoproject.org<mailto:meta-freescale at yoctoproject.org>
https://lists.yoctoproject.org/listinfo/meta-freescale<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale&data=01%7C01%7Ctom.hochstein%40nxp.com%7C2c49f2ceb3614844b4a108d41ea55dac%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=TkJXhWt6JD276LhVl%2FQ2gqYU73mH9hIfzLBqcH89V54%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20161208/4963d988/attachment.html>


More information about the meta-freescale mailing list