Skip to contentSkip to conversation

master-next pending updates

PATCH In review Otavio Salvador 2 participants 28 messages Jun 7, 2013 – Jul 29, 2013 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

v2 cover master-next pending updates

Hello,

This patchset includes:

* update the GPU, kernel for the 3.0.35-4.0.0 BSP (meta-fsl-arm and meta-fsl-arm-extra)
* Jeremy's update of linux-boundary (meta-fsl-arm-extra)
* mesa and mesa-demos rework for building with Vivante GPU (meta-fsl-arm)
* Eric's AMD GPU and the Qt5 patches (meta-fsl-arm)

I've pushed these patches for master-next so it easy testing.

meta-fsl-arm
------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be applied on Monday; the other patches still need work and won't be applied now.

Known issues
------------

* non-fullscreen acceleration broken (as 3.0.35-1.1.0 and 3.0.35-3.0.0 releases)

meta-fsl-arm-extra
------------------

From initial v1 patchset, we fixed the segfault in the Wandboard boards but these patches are still waiting to be applied in Wandboard tree. As a workaround I did a temporary change to use linux-mainline (from github) to grab these patches and will later rework the fixes to be applied on the recipe.

Regards,

Signature · 1 line
1.8.1
#1 lore raw

PATCH v2 1/15 firmware-imx: Remove Atheros firmware

The linux-firmware already provide the Atheros firmware so we should use it and avoid duplication.

Change-Id I5e8675612916ab20ae27e63aedba6758e9a17afb
---
 conf/machine/imx53ard.conf                | 4 ++--
 conf/machine/imx53qsb.conf                | 4 ++--
 recipes-bsp/firmware-imx/firmware-imx.inc | 8 +++-----
 3 files changed, 7 insertions(+), 9 deletions(-)
conf/machine/imx53ard.conf +2 -2
index 63048f7..5e6137c 100644
@@ -12,6 +12,6 @@ KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx53-ard.dts"
 
 UBOOT_MACHINE = "mx53ard_config"
 
-MACHINE_FIRMWARE += "firmware-imx-ar3k \
-                     firmware-imx-ath6k"
+MACHINE_FIRMWARE += "linux-firmware-ar3k \
+                     linux-firmware-ath6k"
 MACHINE_FEATURES += "wifi bluetooth"
conf/machine/imx53qsb.conf +2 -2
index 3114688..ca84243 100644
@@ -12,6 +12,6 @@ KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx53-qsb.dts"
 
 UBOOT_MACHINE = "mx53loco_config"
 
-MACHINE_FIRMWARE += "firmware-imx-ar3k \
-                     firmware-imx-ath6k"
+MACHINE_FIRMWARE = "linux-firmware-ar3k \
+                     linux-firmware-ath6k"
 MACHINE_FEATURES += " wifi bluetooth"
recipes-bsp/firmware-imx/firmware-imx.inc +3 -5
index f321617..43bdf2f 100644
@@ -19,12 +19,10 @@ do_install() {
     find ${D}/lib/firmware/ -name Android.mk -exec rm '{}' ';'
     rm ${D}/lib/firmware/LICENCE.atheros_firmware \
        ${D}/lib/firmware/README
-}
-
-PACKAGES += "${PN}-ath6k ${PN}-ar3k"
 
-FILES_${PN}-ath6k = "/lib/firmware/ath6k/*"
-FILES_${PN}-ar3k  = "/lib/firmware/ar3k/*"
+    # FIXME: Remove firmware packaged in linux-firmware
+    rm -r ${D}/lib/firmware/ath6k ${D}/lib/firmware/ar3k
+}
 
 python populate_packages_prepend() {
     vpudir = bb.data.expand('/lib/firmware/vpu', d)
Signature · 1 line
1.8.1
#2 lore raw

PATCH v2 2/15 linux-fslc: Update to 2013-06-05 patches-3.9's snapshot

In reply to Otavio Salvador

The includes following changes:

* Merge v3.9.4 stable release
* ASoC: pcm: Require both CODEC and CPU support when declaring stream caps
* ASoC: mxs: mxs-saif: Split mxs_saif_dai into two elements
* ARM: mxs: Pass the system revision
* ARM: mxs: Print silicon version on boot
* ARM: dt: Use the 'model' field for printing the hardware revision

Change-Id Icc919e04a44f47db09e0e1266e971c3bb23ff2bd
---
 recipes-kernel/linux/linux-fslc_3.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-fslc_3.9.bb +1 -1
index e3ee311..86acc75 100644
@@ -6,6 +6,6 @@ include linux-fslc.inc
 PV = "3.9+git${SRCPV}"
 
 # patches-3.9
-SRCREV = "10bc2b6b466ab890c3e7a6623d13b7dbea788ce4"
+SRCREV = "e73478d010918d25986923c0b18a9805d13182f4"
 
 COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6)"
Signature · 1 line
1.8.1
#3 lore raw

PATCH v2 3/15 u-boot-imx: Update i.MX6 variants to 3.0.35-4.0.0

In reply to Otavio Salvador

The 4.0.0 version supports all i.MX6 variants so we can use a single revision for them all.

Change-Id I6a2ea90b1609a696c6f40a296e2e6612b14d40d9
---
 recipes-bsp/u-boot/u-boot-imx_2009.08.bb | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)
recipes-bsp/u-boot/u-boot-imx_2009.08.bb +3 -13
index b2111fc..8460399 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2011 Freescale Semiconductor
+# Copyright (C) 2011-2013 Freescale Semiconductor
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 DESCRIPTION = "bootloader for imx platforms"
@@ -22,22 +22,12 @@ SRC_URI_append_imx5 = " \
            file://mx53_loco_bootenv.patch \
 "
 
-# Revision of imx_3.0.35_1.1.0 branch
-SRCREV_mx6 = "98a5299c945cb7e440e3c3d9c572f017e5a02ede"
+# Revision of imx_3.0.35_4.0.0 branch
+SRCREV_mx6 = "5899674bf39544bec47e209649a723cf7348d3ba"
 SRC_URI_append_mx6 = " \
    file://mx6q_sabreauto-Fix-the-patch-for-the-default-environ.patch \
    file://mx6q_sabresd-Change-default-environment-to-work-with.patch \
-"
-
-# Revision of imx_3.0.35_12.10.02 branch
-SRCREV_mx6sl = "27cdce50f9a7fc30d7cff067b420a32e5f2c5959"
-SRC_URI_append_mx6sl = " \
    file://mx6sl_evk-Fix-the-patch-for-the-default-environment-.patch \
-"
-
-# Revision of imx_3.0.35_3.0.0 branch
-SRCREV_mx6dl = "d4057eba315edbc8335c138c0c9edbe2109ea36e"
-SRC_URI_append_mx6dl = " \
    file://mx6dl_sabresd-Change-default-environment-to-work-wit.patch \
 "
 
Signature · 1 line
1.8.1
#4 lore raw

PATCH v2 4/15 linux-imx (3.0.35) Update to 3.0.35-4.0.0 BSP version

In reply to Otavio Salvador

The 4.0.0 version supports all i.MX6 variants so we can use a single revision for them all.

The eGalax' support for single touch events and the perf build fix are fixed in Freescale tree, so we drop these patches on this version.

Change-Id Iaec598dd69a3107c09d20e3e890c46d0922d4e44
---
 ...s-Add-support-for-single-touch-in-Kconfig.patch | 68 ----------------------
 .../linux/linux-imx/fix_getrusage_for_perf.patch   | 33 -----------
 recipes-kernel/linux/linux-imx_3.0.35.bb           | 20 ++-----
 3 files changed, 4 insertions(+), 117 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-imx/egalax_ts-Add-support-for-single-touch-in-Kconfig.patch
 delete mode 100644 recipes-kernel/linux/linux-imx/fix_getrusage_for_perf.patch
recipes-kernel/linux/linux-imx/egalax_ts-Add-support-for-single-touch-in-Kconfig.patch deleted +0 -68
deleted file mode 100644
index 33a8393..0000000
@@ -1,68 +0,0 @@
-From f6b560538edca833481c1d67ecf3cfe2d65c4018 Mon Sep 17 00:00:00 2001
-From: Eric Nelson <[email protected]>
-Date: Wed, 29 Aug 2012 21:50:30 -0700
-Subject: [PATCH] egalax_ts: Add support for single-touch in Kconfig
-
-Upstream-Status: Pending
----
- drivers/input/touchscreen/Kconfig     |   10 ++++++++++
- drivers/input/touchscreen/egalax_ts.c |    7 ++++---
- 2 files changed, 14 insertions(+), 3 deletions(-)
-
-diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
-index c00ab79..311bd4d 100644
---- a/drivers/input/touchscreen/Kconfig
-+++ b/drivers/input/touchscreen/Kconfig
-@@ -199,6 +199,16 @@ config TOUCHSCREEN_ELAN
- 	  To compile this driver as a module, choose M here: the
- 	  module will be called elan-touch.
- 
-+config TOUCHSCREEN_EGALAX_SINGLE_TOUCH
-+	bool "EETI eGalax touchscreen as single-touch"
-+	default N
-+	depends on TOUCHSCREEN_EGALAX
-+	help
-+	  If you say yes here you get single-touch touchscreen support
-+	  on the eGalax I2C controller.
-+	  If you say "no", you'll get the normal multi-touch.
-+
-+
- config TOUCHSCREEN_FUJITSU
- 	tristate "Fujitsu serial touchscreen"
- 	select SERIO
-diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c
-index fff8afe..0b6cde7 100644
---- a/drivers/input/touchscreen/egalax_ts.c
-+++ b/drivers/input/touchscreen/egalax_ts.c
-@@ -139,7 +139,7 @@ retry:
- 		events[id].x = x;
- 		events[id].y = y;
- 
--#ifdef FORCE_SINGLE_POINTER_SUPPORT
-+#ifdef CONFIG_TOUCHSCREEN_EGALAX_SINGLE_TOUCH
- 		input_report_abs(input_dev, ABS_X, x);
- 		input_report_abs(input_dev, ABS_Y, y);
- 		input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1);
-@@ -166,7 +166,7 @@ retry:
- 		dev_dbg(&client->dev, "release id:%d\n", id);
- 		events[id].valid = 0;
- 		events[id].status = 0;
--#ifdef FORCE_SINGLE_POINTER_SUPPORT
-+#ifdef CONFIG_TOUCHSCREEN_EGALAX_SINGLE_TOUCH
- 		input_report_key(input_dev, BTN_TOUCH, 0);
- 		input_report_abs(input_dev, ABS_PRESSURE, 0);
- #else
-@@ -256,8 +256,9 @@ static int __devinit egalax_ts_probe(struct i2c_client *client,
- 	__set_bit(ABS_PRESSURE, input_dev->absbit);
- 	input_set_abs_params(input_dev, ABS_X, 0, 32767, 0, 0);
- 	input_set_abs_params(input_dev, ABS_Y, 0, 32767, 0, 0);
-+	input_set_abs_params(input_dev, ABS_PRESSURE, 0, 1, 0, 0);
- 
--#ifndef FORCE_SINGLE_POINTER_SUPPORT
-+#ifndef CONFIG_TOUCHSCREEN_EGALAX_SINGLE_TOUCH
- 	input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, 32767, 0, 0);
- 	input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, 32767, 0, 0);
- 	input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
--- 
-1.7.9.5
-
recipes-kernel/linux/linux-imx/fix_getrusage_for_perf.patch deleted +0 -33
deleted file mode 100644
index fb6a024..0000000
@@ -1,33 +0,0 @@
-commit 7b78f13603c6fcb64e020a0bbe31a651ea2b657b
-Author: Markus Trippelsdorf <[email protected]>
-Date:   Wed Apr 4 10:45:27 2012 +0200
-
-    perf tools: Fix getrusage() related build failure on glibc trunk
-    
-    On a system running glibc trunk perf doesn't build:
-    
-        CC builtin-sched.o
-    builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’: builtin-sched.c:399:16: error: storage size of ‘ru’ isn’t known builtin-sched.c:403:2: error: implicit declaration of function ‘getrusage’ [-Werror=implicit-function-declaration]
-        [...]
-    
-    Fix it by including sys/resource.h.
-    
-    Signed-off-by: Markus Trippelsdorf <[email protected]>
-    Cc: Peter Zijlstra <[email protected]>
-    Link: http://lkml.kernel.org/r/20120404084527.GA294@x4
-    Signed-off-by: Ingo Molnar <[email protected]>
-
-Upstream-Status: Backport [3.4]
-
-diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
-index fb8b5f8..1cad3af 100644
---- a/tools/perf/builtin-sched.c
-+++ b/tools/perf/builtin-sched.c
-@@ -17,6 +17,7 @@
- #include "util/debug.h"
- 
- #include <sys/prctl.h>
-+#include <sys/resource.h>
- 
- #include <semaphore.h>
- #include <pthread.h>
recipes-kernel/linux/linux-imx_3.0.35.bb +4 -16
index 12e75cd..ce4bac3 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2011-2012 Freescale Semiconductor
+# Copyright (C) 2011-2013 Freescale Semiconductor
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 include linux-imx.inc
@@ -7,18 +7,6 @@ PR = "${INC_PR}.14"
 
 COMPATIBLE_MACHINE = "(mx6)"
 
-# Revision of 1.1.0 branch
-SRCREV = "21304e170e6aa140d189158fcf27d731d3547969"
-LOCALVERSION = "-1.1.0+yocto"
-
-# Revision of 12.10.02 branch
-SRCREV_mx6sl = "741f7dcf5dd1b5ce82986eda139ddbce69c66e31"
-LOCALVERSION_mx6sl = "-12.10.02+yocto"
-
-# Revision of 3.0.0 branch
-SRCREV_mx6dl = "7e8c89cd4b47c4ac6ec6a91a5f54d450688bde4f"
-LOCALVERSION_mx6dl = "-3.0.0+yocto"
-
-SRC_URI += "file://fix_getrusage_for_perf.patch \
-            file://egalax_ts-Add-support-for-single-touch-in-Kconfig.patch \
-           "
+# Revision of 4.0.0 branch
+SRCREV = "572fd62b7e2d70ef83e2ca8fe9895fe6f1531f8a"
+LOCALVERSION = "-4.0.0+yocto"
Signature · 1 line
1.8.1
#5 lore raw

PATCH v2 5/15 xf86-dri-vivante: Update to 3.0.35-4.0.0

In reply to Otavio Salvador
Change-Id Idc86a2c70345a16b2eb77c4ce7c188a638c6b1fd
---
 .../{xf86-dri-vivante_1.1.0.bb => xf86-dri-vivante_3.0.35-4.0.0.bb}   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-graphics/xorg-driver/{xf86-dri-vivante_1.1.0.bb => xf86-dri-vivante_3.0.35-4.0.0.bb} (91%)
recipes-graphics/xorg-driver/xf86-dri-vivante_3.0.35-4.0.0.bb renamed from recipes-graphics/xorg-driver/xf86-dri-vivante_1.1.0.bb +2 -2
similarity index 91%
rename from recipes-graphics/xorg-driver/xf86-dri-vivante_1.1.0.bb
rename to recipes-graphics/xorg-driver/xf86-dri-vivante_3.0.35-4.0.0.bb
index 09bba2d..c116d57 100644
@@ -9,8 +9,8 @@ LIC_FILES_CHKSUM = "file://src/dri.h;enline=27;md5=1d0d59e1dc96f5197ea3a8b101bf1
 
 SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \
            file://fix-libdrm-link.patch"
-SRC_URI[md5sum] = "d872365c046738628a7016343ffdb79a"
-SRC_URI[sha256sum] = "d53216d5f9e3f7803983ac1577d83985dfda33145e4711300f4ad5cbbe28e32d"
+SRC_URI[md5sum] = "5c5b5be029b077346610518bb729c012"
+SRC_URI[sha256sum] = "c67249e68d4233eb1d0a5f337ded8f121dc61fa26fca102a00f93acc3e37ea0f"
 
 PE = "1"
 PR = "r0"
Signature · 1 line
1.8.1
#6 lore raw

PATCH v2 6/15 xf86-video-imxfb-vivante: Update to 3.0.35-4.0.0

In reply to Otavio Salvador
Change-Id I5238f70533ba56d105fcad60e19f43832628cf63
---
 ...fb-vivante_1.1.0.bb => xf86-video-imxfb-vivante_3.0.35-4.0.0.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante_1.1.0.bb => xf86-video-imxfb-vivante_3.0.35-4.0.0.bb} (90%)
recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.0.35-4.0.0.bb renamed from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_1.1.0.bb +3 -3
similarity index 90%
rename from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_1.1.0.bb
rename to recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.0.35-4.0.0.bb
index 36f56f2..dbaf2ab 100644
@@ -9,12 +9,12 @@ PR = "${INC_PR}.3"
 
 DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q"
 
-LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a"
+LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=641ac6e6d013833e36290797f4d7089c"
 
 SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \
            file://Makefile.am-remove-prefixed-include-path.patch"
-SRC_URI[md5sum] = "d872365c046738628a7016343ffdb79a"
-SRC_URI[sha256sum] = "d53216d5f9e3f7803983ac1577d83985dfda33145e4711300f4ad5cbbe28e32d"
+SRC_URI[md5sum] = "5c5b5be029b077346610518bb729c012"
+SRC_URI[sha256sum] = "c67249e68d4233eb1d0a5f337ded8f121dc61fa26fca102a00f93acc3e37ea0f"
 
 EXTRA_OECONF_armv7a = " --enable-neon --disable-static"
 CFLAGS += " -I${STAGING_INCDIR}/xorg -I${STAGING_INCDIR}/drm"
Signature · 1 line
1.8.1
#7 lore raw

PATCH v2 7/15 mesa: Drop libGL when building for i.MX6

In reply to Otavio Salvador

The Vivante GPU package provide a libGL library which we should use to fully support the GPU features; so we drop the binary library from mesa package.

Change-Id I7e675e2fb6b9cf8600c7aa7fa961fc743bb051bc
---
 recipes-graphics/mesa/mesa_9.0.2.bbappend | 5 +++++
 1 file changed, 5 insertions(+)
recipes-graphics/mesa/mesa_9.0.2.bbappend +5 -0
index 765e2f8..b0535a7 100644
@@ -34,3 +34,8 @@ python __anonymous () {
         # We are now machine specific
         d.setVar('PACKAGE_ARCH', d.getVar('MACHINE_ARCH'))
 }
+
+# FIXME: Dirty hack to allow use of Vivante GPU libGL binary
+do_install_append_mx6 () {
+    rm ${D}${libdir}/libGL.*
+}
Signature · 1 line
1.8.1
#8 lore raw

PATCH v2 8/15 mesa-demos: Fix building using Vivante libGL

In reply to Otavio Salvador

Vivante libGL does not provide the glWindowPos2iARB symbol, but glWindowPos2i. Use this instead.

Change-Id I8226fd54935bab2bbc9b2d9df92c0c18bf935186
---
 ...glWindowPos2iARB-calls-with-glWindowPos2i.patch | 355 +++++++++++++++++++++
 recipes-graphics/mesa/mesa-demos_8.1.0.bbappend    |   3 +
 2 files changed, 358 insertions(+)
 create mode 100644 recipes-graphics/mesa/mesa-demos/Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch
 create mode 100644 recipes-graphics/mesa/mesa-demos_8.1.0.bbappend
recipes-graphics/mesa/mesa-demos/Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch new file +355 -0
new file mode 100644
index 0000000..d899540
@@ -0,0 +1,355 @@
+From 757649a766f90e745f24df1d191caeef15c71399 Mon Sep 17 00:00:00 2001
+From: Otavio Salvador <[email protected]>
+Date: Tue, 4 Jun 2013 09:28:51 -0300
+Subject: [PATCH] Replace glWindowPos2iARB calls with glWindowPos2i
+
+Vivante libGL does not provide the glWindowPos2iARB symbol, but
+glWindowPos2i. Use this instead.
+
+Upstream-Status: Inapropriate [embedded specific]
+
+Reported-by: Jeremy Stashluk <[email protected]>
+Signed-off-by: Otavio Salvador <[email protected]>
+---
+ src/demos/copypix.c             |  4 ++--
+ src/demos/engine.c              |  2 +-
+ src/demos/fogcoord.c            |  4 ++--
+ src/glsl/shadow_sampler.c       |  2 +-
+ src/tests/auxbuffer.c           |  2 +-
+ src/tests/copypixrate.c         |  2 +-
+ src/tests/drawbuffers.c         |  2 +-
+ src/tests/drawbuffers2.c        |  2 +-
+ src/tests/fbotest1.c            |  2 +-
+ src/tests/fbotest2.c            |  4 ++--
+ src/tests/fbotest3.c            |  2 +-
+ src/tests/readrate.c            | 10 +++++-----
+ src/tests/viewmemory.c          |  2 +-
+ src/trivial/clear-fbo-scissor.c |  2 +-
+ src/trivial/clear-fbo-tex.c     |  2 +-
+ src/trivial/clear-fbo.c         |  2 +-
+ src/trivial/readpixels.c        |  2 +-
+ src/trivial/tri-fbo.c           |  2 +-
+ src/xdemos/glxsnoop.c           |  2 +-
+ src/xdemos/wincopy.c            |  4 ++--
+ 20 files changed, 28 insertions(+), 28 deletions(-)
+
+diff --git a/src/demos/copypix.c b/src/demos/copypix.c
+index 286c5a9..041b567 100644
+--- a/src/demos/copypix.c
++++ b/src/demos/copypix.c
+@@ -54,7 +54,7 @@ static void Display( void )
+    glClear( GL_COLOR_BUFFER_BIT );
+ 
+    /* draw original image */
+-   glWindowPos2iARB(dx, dy);                    
++   glWindowPos2i(dx, dy);                    
+    glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, Image);
+ 
+    if (Scissor)
+@@ -71,7 +71,7 @@ static void Display( void )
+ 
+    /* draw copy */
+    glPixelZoom(Xzoom, Yzoom);
+-   glWindowPos2iARB(Xpos, Ypos);
++   glWindowPos2i(Xpos, Ypos);
+    glCopyPixels(dx, dy, ImgWidth, ImgHeight, GL_COLOR);
+    glPixelZoom(1, 1);
+ 
+diff --git a/src/demos/engine.c b/src/demos/engine.c
+index 928fcbb..beace4c 100644
+--- a/src/demos/engine.c
++++ b/src/demos/engine.c
+@@ -971,7 +971,7 @@ Draw(void)
+       glDisable(GL_LIGHTING);
+       glDisable(GL_TEXTURE_2D);
+       glColor3f(1, 1 , 1);
+-      glWindowPos2iARB(10, 10);
++      glWindowPos2i(10, 10);
+       PrintString(s);
+       if (lit)
+ 	 glEnable(GL_LIGHTING);
+diff --git a/src/demos/fogcoord.c b/src/demos/fogcoord.c
+index 567eec0..e833009 100644
+--- a/src/demos/fogcoord.c
++++ b/src/demos/fogcoord.c
+@@ -68,14 +68,14 @@ PrintInfo(void)
+ 
+    sprintf(s, "Mode(m): %s  Start(s/S): %g  End(e/E): %g  Density(d/D): %g",
+            ModeStr, fogStart, fogEnd, fogDensity);
+-   glWindowPos2iARB(5, 20);
++   glWindowPos2i(5, 20);
+    PrintString(s);
+ 
+    sprintf(s, "Arrays(a): %s  glFogCoord(c): %s  EyeZ(z/z): %g",
+            (Arrays ? "Yes" : "No"),
+            (fogCoord ? "Yes" : "No"),
+            camz);
+-   glWindowPos2iARB(5, 5);
++   glWindowPos2i(5, 5);
+    PrintString(s);
+ }
+ 
+diff --git a/src/glsl/shadow_sampler.c b/src/glsl/shadow_sampler.c
+index b830030..eb82d8b 100644
+--- a/src/glsl/shadow_sampler.c
++++ b/src/glsl/shadow_sampler.c
+@@ -85,7 +85,7 @@ Redisplay(void)
+    glPopMatrix();
+ 
+    glUseProgram(0);
+-   glWindowPos2iARB(80, 20);
++   glWindowPos2i(80, 20);
+    PrintString("white   black   white   black");
+ 
+    {
+diff --git a/src/tests/auxbuffer.c b/src/tests/auxbuffer.c
+index 5fa399a..0cd5f47 100644
+--- a/src/tests/auxbuffer.c
++++ b/src/tests/auxbuffer.c
+@@ -419,7 +419,7 @@ event_loop(Display *dpy, Window win)
+       /* Copy aux buffer image to back color buffer */
+       glReadBuffer(GL_AUX0);
+       glDrawBuffer(GL_BACK);
+-      glWindowPos2iARB(0, 0);
++      glWindowPos2i(0, 0);
+       glDisable(GL_DEPTH_TEST);
+       glCopyPixels(0, 0, WinWidth, WinHeight, GL_COLOR);
+       glEnable(GL_DEPTH_TEST);
+diff --git a/src/tests/copypixrate.c b/src/tests/copypixrate.c
+index 2f64e0a..df1f9b0 100644
+--- a/src/tests/copypixrate.c
++++ b/src/tests/copypixrate.c
+@@ -91,7 +91,7 @@ BlitOne(void)
+    else
+ #endif
+    {
+-      glWindowPos2iARB(x, y);
++      glWindowPos2i(x, y);
+       glCopyPixels(0, 0, ImgWidth, ImgHeight, GL_COLOR);
+    }
+ }
+diff --git a/src/tests/drawbuffers.c b/src/tests/drawbuffers.c
+index fa2f8a7..cd5033f 100644
+--- a/src/tests/drawbuffers.c
++++ b/src/tests/drawbuffers.c
+@@ -88,7 +88,7 @@ Display(void)
+    glUseProgram(0);
+    glDisable(GL_DEPTH_TEST);
+    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
+-   glWindowPos2iARB(0, 0);
++   glWindowPos2i(0, 0);
+    glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+ 
+    free(buffer);
+diff --git a/src/tests/drawbuffers2.c b/src/tests/drawbuffers2.c
+index 5bcf0b2..84d444b 100644
+--- a/src/tests/drawbuffers2.c
++++ b/src/tests/drawbuffers2.c
+@@ -112,7 +112,7 @@ Display(void)
+    glUseProgram(0);
+    glDisable(GL_DEPTH_TEST);
+    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
+-   glWindowPos2iARB(0, 0);
++   glWindowPos2i(0, 0);
+    glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+ 
+    free(buffer);
+diff --git a/src/tests/fbotest1.c b/src/tests/fbotest1.c
+index 161903c..5930a6d 100644
+--- a/src/tests/fbotest1.c
++++ b/src/tests/fbotest1.c
+@@ -61,7 +61,7 @@ Display( void )
+ 
+    /* draw to window */
+    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
+-   glWindowPos2iARB(0, 0);
++   glWindowPos2i(0, 0);
+    glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+ 
+    free(buffer);
+diff --git a/src/tests/fbotest2.c b/src/tests/fbotest2.c
+index 6ef7f12..11c867e 100644
+--- a/src/tests/fbotest2.c
++++ b/src/tests/fbotest2.c
+@@ -72,7 +72,7 @@ Display( void )
+ 
+       glDisable(GL_DEPTH_TEST);  /* in case window has depth buffer */
+ 
+-      glWindowPos2iARB(0, 0);
++      glWindowPos2i(0, 0);
+       glCopyPixels(0, 0, Width, Height, GL_COLOR);
+    }
+    else if (blitPix) {
+@@ -95,7 +95,7 @@ Display( void )
+       /* draw to window */
+       glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
+       glDisable(GL_DEPTH_TEST);  /* in case window has depth buffer */
+-      glWindowPos2iARB(0, 0);
++      glWindowPos2i(0, 0);
+       glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+ 
+       free(buffer);
+diff --git a/src/tests/fbotest3.c b/src/tests/fbotest3.c
+index 19f684d..e6d7710 100644
+--- a/src/tests/fbotest3.c
++++ b/src/tests/fbotest3.c
+@@ -79,7 +79,7 @@ Display( void )
+    /* draw to window */
+    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
+    glDisable(GL_DEPTH_TEST);  /* in case window has depth buffer */
+-   glWindowPos2iARB(0, 0);
++   glWindowPos2i(0, 0);
+    glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+ 
+    free(buffer);
+diff --git a/src/tests/readrate.c b/src/tests/readrate.c
+index 3859cf4..81eb8a3 100644
+--- a/src/tests/readrate.c
++++ b/src/tests/readrate.c
+@@ -85,7 +85,7 @@ MeasureFormat(struct format_type *fmt, GLint width, GLint height, GLuint pbo)
+       glEnd();
+ 
+ #if DRAW
+-      glWindowPos2iARB(0,0);
++      glWindowPos2i(0,0);
+       glDrawPixels(width, height,
+                    fmt->Format, fmt->Type, Buffer);
+       glFinish();
+@@ -137,21 +137,21 @@ Draw(void)
+ 
+    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ 
+-   glWindowPos2iARB(10, y);
++   glWindowPos2i(10, y);
+    sprintf(str, "ReadPixels size: %d x %d", width, height);
+    PrintString(str);
+    y -= 14;
+ 
+-   glWindowPos2iARB(10, y);
++   glWindowPos2i(10, y);
+    PrintString("Press up/down/left/right to change image size.");
+    y -= 14;
+ 
+-   glWindowPos2iARB(10, y);
++   glWindowPos2i(10, y);
+    PrintString("Press 'b' to run benchmark test.");
+    y -= 14;
+ 
+    if (Benchmark) {
+-      glWindowPos2iARB(10, y);
++      glWindowPos2i(10, y);
+       PrintString("Testing...");
+    }
+ 
+diff --git a/src/tests/viewmemory.c b/src/tests/viewmemory.c
+index 16044b9..3584c33 100644
+--- a/src/tests/viewmemory.c
++++ b/src/tests/viewmemory.c
+@@ -95,7 +95,7 @@ Draw(void)
+ 
+    glDisable(GL_TEXTURE_2D);
+    glColor3f(0, 1, 0);
+-   glWindowPos2iARB(10, 10);
++   glWindowPos2i(10, 10);
+    PrintString(s);
+ 
+    glutSwapBuffers();
+diff --git a/src/trivial/clear-fbo-scissor.c b/src/trivial/clear-fbo-scissor.c
+index a30935c..5c15200 100644
+--- a/src/trivial/clear-fbo-scissor.c
++++ b/src/trivial/clear-fbo-scissor.c
+@@ -182,7 +182,7 @@ Draw(void)
+ 
+       /* draw to window */
+       glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
+-      glWindowPos2iARB(0, 0);
++      glWindowPos2i(0, 0);
+       glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+ 
+       free(buffer);
+diff --git a/src/trivial/clear-fbo-tex.c b/src/trivial/clear-fbo-tex.c
+index de84f98..f0fbdf6 100644
+--- a/src/trivial/clear-fbo-tex.c
++++ b/src/trivial/clear-fbo-tex.c
+@@ -140,7 +140,7 @@ static void Draw( void )
+       glClearColor(0.8, 0.8, 0, 0.0);
+       glClear(GL_COLOR_BUFFER_BIT);
+ 
+-      glWindowPos2iARB(30, 30);
++      glWindowPos2i(30, 30);
+       glDrawPixels(Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+       
+       free(buffer);
+diff --git a/src/trivial/clear-fbo.c b/src/trivial/clear-fbo.c
+index 10d830b..3fee3e3 100644
+--- a/src/trivial/clear-fbo.c
++++ b/src/trivial/clear-fbo.c
+@@ -116,7 +116,7 @@ Draw(void)
+       glClearColor(0.8, 0.8, 0, 0.0);
+       glClear(GL_COLOR_BUFFER_BIT);
+ 
+-      glWindowPos2iARB(30, 30);
++      glWindowPos2i(30, 30);
+       glDrawPixels(Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+       
+       free(buffer);
+diff --git a/src/trivial/readpixels.c b/src/trivial/readpixels.c
+index ccce4ed..74e0546 100644
+--- a/src/trivial/readpixels.c
++++ b/src/trivial/readpixels.c
+@@ -71,7 +71,7 @@ static void Draw(void)
+    printf("Pixel(0,0) = %f, %f, %f, %f\n",
+           image[0], image[1], image[2], image[3]);
+    /* draw to right half of window */
+-   glWindowPos2iARB(Width, 0);
++   glWindowPos2i(Width, 0);
+    glPixelZoom(Zoom, Zoom);
+    glDrawPixels(Width, Height, GL_RGBA, GL_FLOAT, image);
+    free(image);
+diff --git a/src/trivial/tri-fbo.c b/src/trivial/tri-fbo.c
+index d5800b2..dd1f21a 100644
+--- a/src/trivial/tri-fbo.c
++++ b/src/trivial/tri-fbo.c
+@@ -119,7 +119,7 @@ static void Draw( void )
+       glClearColor(0.8, 0.8, 0, 0.0);
+       glClear(GL_COLOR_BUFFER_BIT);
+ 
+-      glWindowPos2iARB(30, 30);
++      glWindowPos2i(30, 30);
+       glDrawPixels(Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
+       
+       
+diff --git a/src/xdemos/glxsnoop.c b/src/xdemos/glxsnoop.c
+index 2215cfd..13d2b2d 100644
+--- a/src/xdemos/glxsnoop.c
++++ b/src/xdemos/glxsnoop.c
+@@ -91,7 +91,7 @@ redraw(Display *dpy, Window srcWin, Window dstWin )
+    }
+ 
+    glXMakeCurrent(dpy, dstWin, Context);
+-   glWindowPos2iARB(0, 0);
++   glWindowPos2i(0, 0);
+    glDrawBuffer(GL_FRONT);
+    glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, image);
+    glFlush();
+diff --git a/src/xdemos/wincopy.c b/src/xdemos/wincopy.c
+index f670983..d010085 100644
+--- a/src/xdemos/wincopy.c
++++ b/src/xdemos/wincopy.c
+@@ -156,11 +156,11 @@ Redraw(void)
+    glClear(GL_COLOR_BUFFER_BIT);
+ 
+    if (TestClipping) {
+-      glWindowPos2iARB(-2, -2);
++      glWindowPos2i(-2, -2);
+       glCopyPixels(-2, -2, Width[0] + 4, Height[0] + 4, GL_COLOR);
+    }
+    else {
+-      glWindowPos2iARB(0, 0);
++      glWindowPos2i(0, 0);
+       glCopyPixels(0, 0, Width[0], Height[0], GL_COLOR);
+    }
+ 
+-- 
+1.8.1
+
recipes-graphics/mesa/mesa-demos_8.1.0.bbappend new file +3 -0
new file mode 100644
index 0000000..d68f8a1
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch"
Signature · 1 line
1.8.1
#9 lore raw

PATCH v2 9/15 gpu-viv-bin-mx6q: Update to 3.0.35-4.0.0 BSP release

In reply to Otavio Salvador

This includes a new libgl-mx6 package, besides the 3.0.35-4.0.0 release includes the GL library (without the headers) so we needed to avoid the headers removal done before. The Wayland backend needs to be removed as it will be supported in another GPU package so we added an explicit FIXME note to keep it recorded.

Change-Id I07f926b94f7dd31ce51dc03f676adc6d2a080b88
---
 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc     | 12 ++++++++++--
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb             | 14 --------------
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.0.35-4.0.0.bb      | 14 ++++++++++++++
 3 files changed, 24 insertions(+), 16 deletions(-)
 delete mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.0.35-4.0.0.bb
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +10 -2
index 97cebfd..cc82b45 100644
@@ -5,7 +5,7 @@
 DESCRIPTION = "GPU driver and apps for imx6"
 SECTION = "libs"
 LICENSE = "Proprietary"
-LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=c831981a5cbb2673318b77fb2f07014c"
+LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=19f5925343fa3da65596eeaa4ddb5fd3"
 PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2"
 
 INC_PR = "r5"
@@ -19,6 +19,7 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
           "
 
 PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
+	libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \
 	libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \
 	libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \
 	libglslc-mx6 libglslc-mx6-dev libglslc-mx6-dbg \
@@ -56,9 +57,13 @@ do_install () {
 
     cp ${S}/usr/lib/*.so ${D}${libdir}
     cp -axr ${S}/usr/include/* ${D}${includedir}
-    rm -r ${D}${includedir}/GL
     cp -axr ${S}/opt ${D}
 
+    # FIXME: Remove Wayland contents
+    rm -r ${D}${includedir}/wayland-viv
+    find ${D}${libdir} -name '*-wl.so' -exec rm '{}' ';'
+    rm ${D}${libdir}/*wayland*.so
+
     if [ "${USE_X11}" = "yes" ]; then
         cp -r ${S}/usr/lib/dri ${D}${libdir}
         find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';'
@@ -114,6 +119,9 @@ FILES_libgal-mx6 = "${libdir}/libGAL${SOLIBS}"
 FILES_libgal-mx6-dev = "${libdir}/libGAL${SOLIBSDEV}"
 FILES_libgal-mx6-dbg = "${libdir}/.debug/libGAL${SOLIBS}"
 
+FILES_libgl-mx6 = "${libdir}/libGL${SOLIBS}"
+FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL.${SOLIBS}"
+
 FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}"
 FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}"
 FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}"
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb deleted +0 -14
deleted file mode 100644
index 994c11c..0000000
@@ -1,14 +0,0 @@
-# Copyright (C) 2012 Freescale Semiconductor
-# Released under the MIT license (see COPYING.MIT for the terms)
-
-PR = "${INC_PR}.0"
-PE = "1"
-
-include gpu-viv-bin-mx6q.inc
-
-SRC_URI[md5sum] = "60f4ba65f557fc63fde6dacfeef205a8"
-SRC_URI[sha256sum] = "4238b72a6dad2d075d159bb1e86fb68bbed7c27894ce82c546a8e7c58ae5d683"
-
-# FIXME: 1.1.0 BSP release uses DirectFB 1.4 and Yocto has 1.6 so
-# disable it for now
-USE_DFB = "no"
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.0.35-4.0.0.bb new file +14 -0
new file mode 100644
index 0000000..47390cf
@@ -0,0 +1,14 @@
+# Copyright (C) 2012-2013 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+PR = "${INC_PR}.0"
+PE = "1"
+
+include gpu-viv-bin-mx6q.inc
+
+SRC_URI[md5sum] = "2bb7d2f4bdff79ae99ce0c9fc2540701"
+SRC_URI[sha256sum] = "48d04d11c6fec11411bcd97c47199caea517ebcd86db6c70f1964b3358a68924"
+
+# FIXME: 3.0.35-4.0.0 BSP release uses DirectFB 1.4 and Yocto has 1.6 so
+# disable it for now
+USE_DFB = "no"
Signature · 1 line
1.8.1
#10 lore raw

PATCH v2 10/15 gpu-viv-bin-mx6q: Add pkg-config files

In reply to Otavio Salvador

From: Diego Rondini <[email protected]>

Provide pkg-config files for egl, glesv1_cm and glesv2

Change-Id Ie6d8c24d9415068927784a917ede644d87c283f7
---
 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc     | 14 +++++++++++---
 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc  | 12 ++++++++++++
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc         | 12 ++++++++++++
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc            | 12 ++++++++++++
 4 files changed, 47 insertions(+), 3 deletions(-)
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +11 -3
index cc82b45..e1f10b6 100644
@@ -16,6 +16,9 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
            file://0001-change-header-path-to-HAL.patch \
            file://gc_hal_eglplatform-remove-xlib-undefs.patch \
            file://fix-conflicting-TLS-definition.patch \
+           file://egl.pc \
+           file://glesv1_cm.pc \
+           file://glesv2.pc \
           "
 
 PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
@@ -59,6 +62,11 @@ do_install () {
     cp -axr ${S}/usr/include/* ${D}${includedir}
     cp -axr ${S}/opt ${D}
 
+    install -d ${D}${libdir}/pkgconfig
+    install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/
+    install -m 0644 ${WORKDIR}/glesv1_cm.pc ${D}${libdir}/pkgconfig/
+    install -m 0644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig/
+
     # FIXME: Remove Wayland contents
     rm -r ${D}${includedir}/wayland-viv
     find ${D}${libdir} -name '*-wl.so' -exec rm '{}' ';'
@@ -112,7 +120,7 @@ FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}"
 FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}"
 
 FILES_libegl-mx6 = "${libdir}/libEGL${SOLIBS}"
-FILES_libegl-mx6-dev = "${libdir}/libEGL${SOLIBSDEV}"
+FILES_libegl-mx6-dev = "${libdir}/libEGL${SOLIBSDEV} ${libdir}/pkgconfig/egl.pc"
 FILES_libegl-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
 
 FILES_libgal-mx6 = "${libdir}/libGAL${SOLIBS}"
@@ -123,11 +131,11 @@ FILES_libgl-mx6 = "${libdir}/libGL${SOLIBS}"
 FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL.${SOLIBS}"
 
 FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}"
-FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}"
+FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV} ${libdir}/pkgconfig/glesv1_cm.pc"
 FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}"
 
 FILES_libgles2-mx6 = "${libdir}/libGLESv2${SOLIBS}"
-FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
+FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV} ${libdir}/pkgconfig/glesv2.pc"
 FILES_libgles2-mx6-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
 RDEPENDS_libgles2-mx6 = "libglslc-mx6"
 
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc new file +12 -0
new file mode 100644
index 0000000..5921583
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: egl
+Description: Vivante EGL library
+Requires.private: libdrm x11 xext xdamage xfixes xcb
+Version: 8.0
+Libs: -L${libdir} -lEGL
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir} -DLINUX
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc new file +12 -0
new file mode 100644
index 0000000..b69bcb2
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: glesv1_cm
+Description: Vivante OpenGL ES 1.1 CM library
+Requires.private: libdrm x11 xext xdamage xfixes xcb
+Version: 8.0
+Libs: -L${libdir} -lGLESv1_CM
+Libs.private: -lm -lpthread -ldl
+Cflags: -I${includedir}
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc new file +12 -0
new file mode 100644
index 0000000..e92620b
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: glesv2
+Description: Vivante OpenGL ES 2.0 library
+Requires.private:
+Version: 8.0
+Libs: -L${libdir} -lGLESv2
+Libs.private: -lpthread -lrt
+Cflags: -I${includedir}
Signature · 1 line
1.8.1
#11 lore raw

PATCH v2 11/15 amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES

In reply to Otavio Salvador

From: Eric BENARD <[email protected]>

this prevent warnings and parse errors

---
 recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb +1 -1
index 2dee47a..70568f9 100644
@@ -84,5 +84,5 @@ FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
 FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
 FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
 
-COMPATIBLE_MACHINE = "(mx5)"
+COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', 'Invalid!', d)}"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.8.1
#12 lore raw

PATCH v2 12/15 amd-gpu-x11-bin-mx51: factorize the recipes

In reply to Otavio Salvador

From: Eric BENARD <[email protected]>

this will allow easier addition of non x11 package

---
 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc  | 82 ++++++++++++++++++++++
 .../amd-gpu-x11-bin-mx51_11.09.01.bb               | 74 +------------------
 .../fix-linux-build-check.patch                    |  0
 3 files changed, 83 insertions(+), 73 deletions(-)
 create mode 100644 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
 rename recipes-graphics/amd-gpu-x11-bin/{amd-gpu-x11-bin-mx51 => files}/fix-linux-build-check.patch (100%)
recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc new file +82 -0
new file mode 100644
index 0000000..b081695
@@ -0,0 +1,82 @@
+# Copyright (C) 2011, 2012 Freescale
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+LICENSE = "Proprietary"
+SECTION = "libs"
+
+# FIXME: Replace for correct AMD license
+LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
+
+PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
+
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+           file://fix-linux-build-check.patch"
+
+inherit fsl-eula-unpack
+
+# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
+# the source we cannot fix it. Disable the insane check for now.
+python populate_packages_prepend() {
+    for p in d.getVar('PACKAGES', True).split():
+        d.setVar("INSANE_SKIP_%s" % p, "ldflags")
+}
+
+do_install () {
+    install -d ${D}${libdir}
+    install -d ${D}${bindir}
+    install -d ${D}${includedir}
+
+    cp -axr ${S}/usr/bin/* ${D}${bindir}
+    cp -axf ${S}/usr/lib/* ${D}${libdir}
+    cp -axr ${S}/usr/include/* ${D}${includedir}
+
+    find ${D}${bindir} -type f -exec chmod 755 {} \;
+    find ${D}${libdir} -type f -exec chmod 644 {} \;
+    find ${D}${includedir} -type f -exec chmod 644 {} \;
+
+    # FIXME: Fix sonames of broken libraries
+    mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
+    mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
+
+    # FIXME: Remove unkown files
+    rm -r ${D}${libdir}/libcsi.a \
+          ${D}${libdir}/libres.a
+}
+
+PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
+             libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
+             libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
+             libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
+             libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
+             lib2dz160-mx51 lib2dz160-mx51-dbg \
+             lib2dz430-mx51 lib2dz430-mx51-dbg"
+
+FILES_${PN}-dbg = "${bindir}/.debug/*"
+
+FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
+FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
+FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
+
+FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
+FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
+FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
+
+FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
+FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
+FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
+
+FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
+FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
+FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
+
+FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
+FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
+FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
+
+FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
+FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
+
+FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
+FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb +1 -73

88 lines not on this page · raw message

recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch renamed from recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch +0 -0
similarity index 100%
rename from recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch
rename to recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch
Signature · 1 line
1.8.1
#13 lore raw

PATCH v2 13/15 amd-gpu-bin-mx51: new recipe

In reply to Otavio Salvador

From: Eric BENARD <[email protected]>

this provides the GPU libraries for framebuffer

---
 .../amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb            | 13 +++++++++++++
 .../amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb        |  2 ++
 2 files changed, 15 insertions(+)
 create mode 100644 recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb new file +13 -0
new file mode 100644
index 0000000..ecf38f2
@@ -0,0 +1,13 @@
+# Copyright (C) 2011, 2012 Freescale
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "GPU driver and apps for frambuffer on mx51"
+
+include amd-gpu-mx51.inc
+
+SRC_URI[md5sum] = "9f9b5f67b595721a08793aae8bd8fc46"
+SRC_URI[sha256sum] = "f0db68a764b5fb199729e7435f606b8d12b61ca97990336c647b7e81f4a584d9"
+
+RCONFLICTS_${PN} = "amd-gpu-x11-bin-mx51"
+
+COMPATIBLE_MACHINE = "(mx5)"
recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb +2 -0
index 1a3c542..6358aca 100644
@@ -13,4 +13,6 @@ include amd-gpu-mx51.inc
 SRC_URI[md5sum] = "54391a4e670b597d06d01253fb217cad"
 SRC_URI[sha256sum] = "c7a6fa03b7aa2a375556c59908876554ba720c1e744baba2debb84a408f790db"
 
+RCONFLICTS_${PN} = "amd-gpu-bin-mx51"
+
 COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', 'Invalid!', d)}"
Signature · 1 line
1.8.1
#14 lore raw

PATCH v2 14/15 layer.conf: handle dynamic layer configuration

In reply to Otavio Salvador

From: Eric BENARD <[email protected]>

this patch is taken from :
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9,
as suggested by Chris Larson

---
 conf/layer.conf | 5 +++++
 1 file changed, 5 insertions(+)
conf/layer.conf +5 -0
index c4b9cd1..e260e62 100644
@@ -16,3 +16,8 @@ FSL_MIRROR ?= "http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/"
 MIRRORS += " \
 ${FSL_MIRROR}	http://download.ossystems.com.br/bsp/freescale/source/ \n \
 "
+
+# Let us add layer-specific bbappends which are only applied when that
+# layer is included in our configuration
+BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \
+               for layer in BBFILE_COLLECTIONS.split())}"
Signature · 1 line
1.8.1
#15 lore raw

PATCH v2 15/15 qt5: add mx5 and mx6 support

In reply to Otavio Salvador

From: Eric BENARD <[email protected]>

- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q

---
 .../recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp | 105 +++++++++++++++++++++
 qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend     |  68 +++++++++++++
 2 files changed, 173 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
qt5-layer/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp new file +105 -0
new file mode 100644
index 0000000..43e6d8d
@@ -0,0 +1,105 @@
+/****************************************************************************
+**
+** hacked by Eric Bénard - Eukréa Electromatique
+** inspired from https://community.freescale.com/docs/DOC-94123
+** and from fbset.c http://users.telenet.be/geertu/Linux/fbdev/
+**
+** based on qeglfshooks_imx6.cpp which is :
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#include <fcntl.h>    /* For O_RDWR */
+#include <unistd.h>   /* For open(), creat() */
+#include "qeglfshooks.h"
+#include <EGL/egl.h>
+#include <linux/fb.h>
+#include <sys/ioctl.h>
+
+QT_BEGIN_NAMESPACE
+
+class QEglFSImx5Hooks : public QEglFSHooks
+{
+public:
+    QEglFSImx5Hooks();
+    virtual QSize screenSize() const;
+    virtual EGLNativeWindowType createNativeWindow(const QSize &size, const QSurfaceFormat &format);
+    virtual void destroyNativeWindow(EGLNativeWindowType window);
+
+private:
+    QSize mScreenSize;
+    EGLNativeDisplayType mNativeDisplay;
+};
+
+
+QEglFSImx5Hooks::QEglFSImx5Hooks()
+{
+    int width, height;
+    /* code taken from fbset.c */
+    int fh;
+    struct fb_var_screeninfo var;
+    fh = open("/dev/fb0", O_RDONLY);
+    ioctl(fh, FBIOGET_VSCREENINFO, &var);
+    mScreenSize.setHeight(var.yres);
+    mScreenSize.setWidth(var.xres);
+    close(fh);
+    mNativeDisplay = EGL_DEFAULT_DISPLAY;
+}
+
+QSize QEglFSImx5Hooks::screenSize() const
+{
+    return mScreenSize;
+}
+
+EGLNativeWindowType QEglFSImx5Hooks::createNativeWindow(const QSize &size, const QSurfaceFormat &format)
+{
+    Q_UNUSED(format);
+
+    EGLNativeWindowType eglWindow =  open("/dev/fb0", O_RDWR);
+    return eglWindow;
+}
+
+
+void QEglFSImx5Hooks::destroyNativeWindow(EGLNativeWindowType window)
+{
+    close(window);
+}
+
+QEglFSImx5Hooks eglFSImx5Hooks;
+QEglFSHooks *platformHooks = &eglFSImx5Hooks;
+
+QT_END_NAMESPACE
qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend new file +68 -0

68 lines not on this page · raw message

Signature · 1 line
1.8.1
#16 lore raw
In reply to Otavio Salvador

Hello,

Quoted 1 line · Otavio Salvador

...

meta-fsl-arm

Quoted 5 lines

------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be applied on Monday; the other patches still need work and won't be applied now

These three patches has been merged.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#17 lore raw
Quoted 7 lines · Otavio Salvador

Hello,

Quoted 1 line · Otavio Salvador

...

Quoted 10 lines

meta-fsl-arm

Quoted 5 lines

------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be applied on Monday; the other patches still need work and won't be applied now

These three patches has been merged.

what rework is still needed for 11-12-13-14-15 ?

Eric

#18 lore raw
Quoted 14 lines · Eric Bénard
Quoted 4 lines · Otavio Salvador

Hello,

On Fri, Jun 7, 2013 at 12:27 PM, Otavio Salvador <

Quoted 6 lines · [email protected]>wrote:
Quoted 2 lines

...

meta-fsl-arm

Quoted 2 lines

------------

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be applied on Monday; the other patches still need work and won't be applied now

These three patches has been merged.

what rework is still needed for 11-12-13-14-15 ?

I have a build failure in my autobuilder yet and needs to fix it before merging those. I hadn't time to test the AMD related changes yet and Qt needs also testing as people seem to had problem with X11.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#19 lore raw
Quoted 20 lines · Otavio Salvador
Quoted 18 lines · Eric Bénard
Quoted 4 lines · Otavio Salvador

Hello,

On Fri, Jun 7, 2013 at 12:27 PM, Otavio Salvador <

Quoted 10 lines · [email protected]>wrote:
Quoted 2 lines

...

meta-fsl-arm

Quoted 5 lines

------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be applied on Monday; the other patches still need work and won't be applied now

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

These three patches has been merged.

what rework is still needed for 11-12-13-14-15 ?

I have a build failure in my autobuilder yet and needs to fix it before

please send it to the mailing list so that I can see if that's related to those patches.

Quoted 3 lines

merging those. I hadn't time to test the AMD related changes yet and Qt needs also testing as people seem to had problem with X11.

OK as said since the begining accelerated X11 is NOT supported by these patches so if X11 support is mandatory, please drop these patches.

Eric

#20 lore raw
Quoted 28 lines · Eric Bénard
Quoted 9 lines · Otavio Salvador
Quoted 7 lines · Eric Bénard
Quoted 4 lines · Otavio Salvador

Hello,

On Fri, Jun 7, 2013 at 12:27 PM, Otavio Salvador <

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines · [email protected]>wrote:
Quoted 2 lines

...

meta-fsl-arm

Quoted 3 lines

------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be

applied

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

on Monday; the other patches still need work and won't be applied

now

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

These three patches has been merged.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

what rework is still needed for 11-12-13-14-15 ?

I have a build failure in my autobuilder yet and needs to fix it before

please send it to the mailing list so that I can see if that's related to those patches.

It is not in your patches but GPU vivante support.

Quoted 6 lines
Quoted 3 lines

merging those. I hadn't time to test the AMD related changes yet and Qt needs also testing as people seem to had problem with X11.

OK as said since the begining accelerated X11 is NOT supported by these patches so if X11 support is mandatory, please drop these patches.

Not mandatory but it cannot break X11 build of Qt5; so I'd like to look at it before.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#21 lore raw
Quoted 33 lines · Otavio Salvador
Quoted 31 lines · Eric Bénard
Quoted 9 lines · Otavio Salvador
Quoted 7 lines · Eric Bénard
Quoted 4 lines · Otavio Salvador

Hello,

On Fri, Jun 7, 2013 at 12:27 PM, Otavio Salvador <

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines · [email protected]>wrote:
Quoted 2 lines

...

meta-fsl-arm

Quoted 3 lines

------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be

applied

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

on Monday; the other patches still need work and won't be applied

now

Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

These three patches has been merged.

what rework is still needed for 11-12-13-14-15 ?

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

I have a build failure in my autobuilder yet and needs to fix it before

please send it to the mailing list so that I can see if that's related to those patches.

It is not in your patches but GPU vivante support.

so 11-12-13-14 could go in as is.

Quoted 11 lines
Quoted 7 lines
Quoted 4 lines

merging those. I hadn't time to test the AMD related changes yet and Qt needs also testing as people seem to had problem with X11.

OK as said since the begining accelerated X11 is NOT supported by these patches so if X11 support is mandatory, please drop these patches.

Not mandatory but it cannot break X11 build of Qt5; so I'd like to look at it before.

OK I'll send an updated "qt5: add mx5 and mx6 support" patch which clearly exludes the changes when x11 is in DISTRO_FEATURES so that X11 qt5 builds gets untouched.

Eric

#22 lore raw
Quoted 41 lines · Eric Bénard
Quoted 6 lines · Otavio Salvador
Quoted 4 lines · Eric Bénard
Quoted 1 line · Otavio Salvador

On Mon, Jun 10, 2013 at 9:48 AM, Eric Bénard <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines · Otavio Salvador

Hello,

On Fri, Jun 7, 2013 at 12:27 PM, Otavio Salvador <

Quoted 1 line · [email protected]>wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line

...

meta-fsl-arm

Quoted 3 lines

------------

The patches 1, 2 and 3 (from meta-fsl-arm) are intended to be

applied

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

on Monday; the other patches still need work and won't be

applied

Quoted 10 lines
Quoted 10 lines

now

Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

These three patches has been merged.

what rework is still needed for 11-12-13-14-15 ?

I have a build failure in my autobuilder yet and needs to fix it

before

Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

please send it to the mailing list so that I can see if that's related to those patches.

It is not in your patches but GPU vivante support.

so 11-12-13-14 could go in as is.

As soon as I test them, or someone else does, yes.

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

merging those. I hadn't time to test the AMD related changes yet and

Qt

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

needs also testing as people seem to had problem with X11.

OK as said since the begining accelerated X11 is NOT supported by these patches so if X11 support is mandatory, please drop these patches.

Quoted 7 lines
Quoted 1 line

Not mandatory but it cannot break X11 build of Qt5; so I'd like to look

at

Quoted 2 lines

it before.

OK I'll send an updated "qt5: add mx5 and mx6 support" patch which clearly exludes the changes when x11 is in DISTRO_FEATURES so that X11 qt5 builds gets untouched.

Good. Thanks.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#23 lore raw

PATCH v7 1/1 qt5: add mx5 and mx6 support

In reply to Eric Bénard

- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q
- X11 support is not yet tested so we don't change the core settings when x11 is in DISTRO_FEATURES

---
v7: don't change the core configuration when x11 is in DISTRO_FEATURES

 .../recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp | 105 +++++++++++++++++++++
 qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend     |  74 +++++++++++++++
 2 files changed, 179 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
qt5-layer/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp new file +105 -0
new file mode 100644
index 0000000..43e6d8d
@@ -0,0 +1,105 @@
+/****************************************************************************
+**
+** hacked by Eric Bénard - Eukréa Electromatique
+** inspired from https://community.freescale.com/docs/DOC-94123
+** and from fbset.c http://users.telenet.be/geertu/Linux/fbdev/
+**
+** based on qeglfshooks_imx6.cpp which is :
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#include <fcntl.h>    /* For O_RDWR */
+#include <unistd.h>   /* For open(), creat() */
+#include "qeglfshooks.h"
+#include <EGL/egl.h>
+#include <linux/fb.h>
+#include <sys/ioctl.h>
+
+QT_BEGIN_NAMESPACE
+
+class QEglFSImx5Hooks : public QEglFSHooks
+{
+public:
+    QEglFSImx5Hooks();
+    virtual QSize screenSize() const;
+    virtual EGLNativeWindowType createNativeWindow(const QSize &size, const QSurfaceFormat &format);
+    virtual void destroyNativeWindow(EGLNativeWindowType window);
+
+private:
+    QSize mScreenSize;
+    EGLNativeDisplayType mNativeDisplay;
+};
+
+
+QEglFSImx5Hooks::QEglFSImx5Hooks()
+{
+    int width, height;
+    /* code taken from fbset.c */
+    int fh;
+    struct fb_var_screeninfo var;
+    fh = open("/dev/fb0", O_RDONLY);
+    ioctl(fh, FBIOGET_VSCREENINFO, &var);
+    mScreenSize.setHeight(var.yres);
+    mScreenSize.setWidth(var.xres);
+    close(fh);
+    mNativeDisplay = EGL_DEFAULT_DISPLAY;
+}
+
+QSize QEglFSImx5Hooks::screenSize() const
+{
+    return mScreenSize;
+}
+
+EGLNativeWindowType QEglFSImx5Hooks::createNativeWindow(const QSize &size, const QSurfaceFormat &format)
+{
+    Q_UNUSED(format);
+
+    EGLNativeWindowType eglWindow =  open("/dev/fb0", O_RDWR);
+    return eglWindow;
+}
+
+
+void QEglFSImx5Hooks::destroyNativeWindow(EGLNativeWindowType window)
+{
+    close(window);
+}
+
+QEglFSImx5Hooks eglFSImx5Hooks;
+QEglFSHooks *platformHooks = &eglFSImx5Hooks;
+
+QT_END_NAMESPACE
qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
1.7.11.2.249.g31c7954
#24 lore raw

Re: [meta-fsl-arm][PATCH v7] qt5: add mx5 and mx6 support

Hi Otavio,

Quoted 9 lines · Eric Bénard

- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q
- X11 support is not yet tested so we don't change the core settings when x11 is in DISTRO_FEATURES

---
v7: don't change the core configuration when x11 is in DISTRO_FEATURES

May you please give me more details on what prevent this patch from being applied to master ?
I have some work on QT5/X11 (now compiles fine and needs some testing) so if some rework is still needed I can do it at the same time.

Thanks,
Eric

#25 lore raw

Re: [meta-fsl-arm][PATCH v7] qt5: add mx5 and mx6 support

Quoted 10 lines · Eric Bénard

Hi Otavio,

Quoted 5 lines · Eric Bénard

- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q
- X11 support is not yet tested so we don't change the core settings when x11 is in DISTRO_FEATURES

Quoted 8 lines
Quoted 4 lines

---
v7: don't change the core configuration when x11 is in DISTRO_FEATURES

May you please give me more details on what prevent this patch from being applied to master ?
I have some work on QT5/X11 (now compiles fine and needs some testing) so if some rework is still needed I can do it at the same time.

It is the missing part. I'd like to have X11 working to not break it.

If you can update it and test, I can merge it.

I am still working on 3.5.7 integration and the other issues so I won't be able to test.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#26 lore raw

Re: [meta-fsl-arm][PATCH v7] qt5: add mx5 and mx6 support

Quoted 15 lines · Otavio Salvador
Quoted 14 lines · Eric Bénard

Hi Otavio,

Quoted 9 lines · Eric Bénard

- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q
- X11 support is not yet tested so we don't change the core settings when x11 is in DISTRO_FEATURES

---
v7: don't change the core configuration when x11 is in DISTRO_FEATURES

Quoted 7 lines
Quoted 4 lines

May you please give me more details on what prevent this patch from being applied to master ?
I have some work on QT5/X11 (now compiles fine and needs some testing) so if some rework is still needed I can do it at the same time.

It is the missing part. I'd like to have X11 working to not break it.

actually it's not breaking X11 : the current patch is irgnoring the X11 case and doesn't touch anything when building for X.
So may you please merge it as X11 tests will take some time.

Eric

#27 lore raw

Re: [meta-fsl-arm][PATCH v7] qt5: add mx5 and mx6 support

Quoted 23 lines · Eric Bénard
Quoted 20 lines · Otavio Salvador
Quoted 18 lines · Eric Bénard

Hi Otavio,

Quoted 9 lines · Eric Bénard

- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q
- X11 support is not yet tested so we don't change the core settings when x11 is in DISTRO_FEATURES

---
v7: don't change the core configuration when x11 is in DISTRO_FEATURES

May you please give me more details on what prevent this patch from being applied to master ?
I have some work on QT5/X11 (now compiles fine and needs some testing) so if some rework is still needed I can do it at the same time.

Quoted 5 lines
Quoted 2 lines

It is the missing part. I'd like to have X11 working to not break it.

actually it's not breaking X11 : the current patch is irgnoring the X11 case and doesn't touch anything when building for X.
So may you please merge it as X11 tests will take some time.

Ok; I merge it this afternoon together with other ready changes.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750