Skip to contentSkip to conversation

xf86-video-imxfb-vivante: Depend on virtual/xserver

PATCH In review Andrei Gherzan 4 participants 25 messages Jan 13, 2013 – Jan 24, 2013 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 xf86-video-imxfb-vivante: Depend on virtual/xserver

This driver needs dri.h header provided by xserver. Without this header compilation fails with:
fatal error: dri.h: No such file

---
 .../xf86-video-imxfb-vivante_12.09.01.bb           |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb +2 -2
index e35080f..7d3113a 100644
@@ -3,9 +3,9 @@
 
 require recipes-graphics/xorg-driver/xorg-driver-video.inc
 
-PR = "${INC_PR}.2"
+PR = "${INC_PR}.3"
 
-DEPENDS += "virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q"
+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"
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/4 xserver-xorg: Add bbappend to include dri and exclude glx for imx6

* Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core includes configs for dri and glx in the same PACKAGECONFIG[glx].
* There is no libgl in imx6 graphic libraries so don't compile xserver with glx.
* xserver driver for imx6 needs dri.h so compile xserver with dri for these machines

---
 .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +15 -0
new file mode 100644
index 0000000..c8b4a44
@@ -0,0 +1,15 @@
+PRINC := "${@int(PRINC) + 1}"
+
+# There are no libgl binaries for imx6 - don't compile with glx
+PACKAGECONFIG_imx6qsabrelite := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
+PACKAGECONFIG_imx6qsabreauto := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
+# dri is needed for xf86-video-imxfb-vivante - xserver driver
+PACKAGECONFIG_append_imx6qsabrelite = " dri"
+PACKAGECONFIG_append_imx6qsabreauto = " dri"
+
+PACKAGECONFIG[dri] = "--enable-dri, \
+                      --disable-dri, \
+                      xf86driproto dri2proto"
+PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,\
+                      --disable-glx,\
+                      virtual/libgl"
Signature · 1 line
1.7.9.5
#8 lore raw

PATCH 3/4 glproto: Don't install glxtokens.h for imx6qsabrelite

In reply to Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

---
 .../xorg-proto/glproto_1.4.16.bbappend             |    6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 recipes-graphics/xorg-proto/glproto_1.4.16.bbappend
recipes-graphics/xorg-proto/glproto_1.4.16.bbappend new file +6 -0
new file mode 100644
index 0000000..cc677c8
@@ -0,0 +1,6 @@
+PRINC := "${@int(PRINC) + 1}"
+
+do_install_append_imx6qsabrelite() {
+    # This is a header provided by fsl so don't use this header
+    rm -rf ${D}${includedir}/GL/glxtokens.h
+}
Signature · 1 line
1.7.9.5
#20 lore raw

PATCH 4/4 gpu-viv-bin-mx6q: Add dri.pc

In reply to Andrei Gherzan

This is need when compiling packages like xserver-xorg with dri support.

---
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |   13 ++++++++++---
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc       |   11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +10 -3
index 1f63a0b..ed69e88 100644
@@ -7,11 +7,14 @@ LICENSE = "Proprietary"
 LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=092bc28e13d678ceaebe1a40559275fb"
 PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6"
 
-INC_PR = "r1"
+INC_PR = "r2"
 
 inherit fsl-eula-unpack
 
-SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
+SRC_URI = " \
+    ${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+    file://dri.pc \
+    "
 
 PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
 	libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \
@@ -62,6 +65,10 @@ do_install () {
 
     find ${D}${libdir} -type f -exec chmod 644 {} \;
     find ${D}${includedir} -type f -exec chmod 644 {} \;
+
+    # Install dri.pc
+    install -d ${D}${libdir}/pkgconfig
+    cp -ax ${WORKDIR}/dri.pc ${D}${libdir}/pkgconfig
 }
 
 S = "${WORKDIR}/${PN}-${PV}"
@@ -140,7 +147,7 @@ FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}"
 FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}"
 
 FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}"
-FILES_libvivante-dri-mx6-dev = ""
+FILES_libvivante-dri-mx6-dev = "${libdir}/pkgconfig"
 FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc new file +11 -0
new file mode 100644
index 0000000..537c533
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+dridriverdir=${libdir}/dri
+
+Name: dri
+Description: Vivante Direct Rendering Infrastructure
+Version: 8.0.0
+Requires.private: libdrm >= 2.4.24
+Cflags: -I${includedir}
Signature · 1 line
1.7.9.5
#22 lore raw
In reply to Andrei Gherzan

Hi Andrei,

Quoted 4 lines · Andrei Gherzan

This driver needs dri.h header provided by xserver. Without this header compilation fails with:
fatal error: dri.h: No such file

no that's not the real solution and this depends is already here because :
xf86-video-imxfb-vivante_12.09.01.bb require xorg-driver-video.inc which includes xorg-driver-common.inc which set
DEPENDS = "virtual/xserver xproto randrproto util-macros"

As I already said before dri is enabled _only_ if DISTRO_FEATURES contains opengl :
xserver-xorg.inc has
PACKAGECONFIG ??= "udev ${@base_contains('DISTRO_FEATURES', 'opengl', 'glx', '', d)}" PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev" PACKAGECONFIG[glx] = "--enable-dri --enable-dri2 --enable-glx --enable-glx-tls,\
--disable-dri --disable-glx,\ xf86driproto dri2proto mesa-dri"

So this patch is useless.

Eric

#2 lore raw

Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6

In reply to Andrei Gherzan

Hi Andrei,

Quoted 23 lines · Andrei Gherzan

* Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core includes configs for dri and glx in the same PACKAGECONFIG[glx].
* There is no libgl in imx6 graphic libraries so don't compile xserver with glx.
* xserver driver for imx6 needs dri.h so compile xserver with dri for these machines

---
 .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +5 -0
new file mode 100644
index 0000000..c8b4a44
@@ -0,0 +1,15 @@
+PRINC := "${@int(PRINC) + 1}"
+
+# There are no libgl binaries for imx6 - don't compile with glx
+PACKAGECONFIG_imx6qsabrelite := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
+PACKAGECONFIG_imx6qsabreauto := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 15

Quoted 10 lines
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +10 -0
+# dri is needed for xf86-video-imxfb-vivante - xserver driver
+PACKAGECONFIG_append_imx6qsabrelite = " dri"
+PACKAGECONFIG_append_imx6qsabreauto = " dri"
+
+PACKAGECONFIG[dri] = "--enable-dri, \
+                      --disable-dri, \
+                      xf86driproto dri2proto"
+PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,\
+                      --disable-glx,\
+                      virtual/libgl"

in openembedded-core, dri (and glx) are enabled only if opengl is a DISTRO_FEATURE so the choice to enable these feature is done at distro level and not at machine level.
So to be consistent with that, you could split dri/glx but I think dri should be enabled only when the distro has enabled opengl.

Note that we have the same problem in the qt4 recipes : in oe-core, opengl is enabled ony if DISTRO_FEATURE has opengl, in meta-fsl-arm opengl (and openvg) are enabled by default. I'm not sure a BSP should force these settings if the distro doesn't want them.

Eric

#3 lore raw

Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6

Quoted 53 lines · Eric Bénard

Hi Andrei,

Quoted 1 line · Andrei Gherzan

* Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core

includes

Quoted 2 lines

configs for dri and glx in the same PACKAGECONFIG[glx].
* There is no libgl in imx6 graphic libraries so don't compile xserver

with glx.

Quoted 1 line

* xserver driver for imx6 needs dri.h so compile xserver with dri for

these

Quoted 5 lines

machines

---
 .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   15

+++++++++++++++

Quoted 2 lines
 1 file changed, 15 insertions(+)
 create mode 100644

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend

Review

Quoted 2 lines
(quoted diff) +0 -0

b/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 4

Quoted 9 lines

new file mode 100644
index 0000000..c8b4a44

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +4 -0
@@ -0,0 +1,15 @@
+PRINC := "${@int(PRINC) + 1}"
+
+# There are no libgl binaries for imx6 - don't compile with glx
+PACKAGECONFIG_imx6qsabrelite := "${@oe_filter_out('glx',

'${PACKAGECONFIG}', d)}"

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 5

Quoted 1 line
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +1 -0
+PACKAGECONFIG_imx6qsabreauto := "${@oe_filter_out('glx',

'${PACKAGECONFIG}', d)}"

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 15

Quoted 10 lines
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +10 -0
+# dri is needed for xf86-video-imxfb-vivante - xserver driver
+PACKAGECONFIG_append_imx6qsabrelite = " dri"
+PACKAGECONFIG_append_imx6qsabreauto = " dri"
+
+PACKAGECONFIG[dri] = "--enable-dri, \
+                      --disable-dri, \
+                      xf86driproto dri2proto"
+PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,\
+                      --disable-glx,\
+                      virtual/libgl"

in openembedded-core, dri (and glx) are enabled only if opengl is a DISTRO_FEATURE so the choice to enable these feature is done at distro level and not at machine level.
So to be consistent with that, you could split dri/glx but I think dri should be enabled only when the distro has enabled opengl.

Quoted 5 lines

Note that we have the same problem in the qt4 recipes : in oe-core, opengl is enabled ony if DISTRO_FEATURE has opengl, in meta-fsl-arm opengl (and openvg) are enabled by default. I'm not sure a BSP should force these settings if the distro doesn't want them.

So. I know the way oe-core chooses to use opengl and it's right. As long as gl is provided as a distro / mesa-dri provider. But after all libgl / egl and so on can be hardware dependent binaries. And this is why i want to treat them like that. I would consider this a workaround until things will be completed in oe-core. But right now this, in my opinion, the only good way to fix an issue like this.

ag

#4 lore raw

Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6

Quoted 13 lines · Andrei Gherzan
Quoted 11 lines · Eric Bénard

in openembedded-core, dri (and glx) are enabled only if opengl is a DISTRO_FEATURE so the choice to enable these feature is done at distro level and not at machine level.
So to be consistent with that, you could split dri/glx but I think dri should be enabled only when the distro has enabled opengl.

Note that we have the same problem in the qt4 recipes : in oe-core, opengl is enabled ony if DISTRO_FEATURE has opengl, in meta-fsl-arm opengl (and openvg) are enabled by default. I'm not sure a BSP should force these settings if the distro doesn't want them.

Quoted 7 lines

So. I know the way oe-core chooses to use opengl and it's right. As long as gl is provided as a distro / mesa-dri provider. But after all libgl / egl and so on can be hardware dependent binaries. And this is why i want to treat them like that. I would consider this a workaround until things will be completed in oe-core. But right now this, in my opinion, the only good way to fix an issue like this.

I agree with you that this could be hardware dependent and not distro dependent. So if I understand well you plan to migrate that in oe-core from DISTRO_FEATURES to MACHINE_FEATURES ?

Eric

#5 lore raw

Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6

Quoted 20 lines · Eric Bénard
Quoted 7 lines · Andrei Gherzan
Quoted 6 lines · Eric Bénard

in openembedded-core, dri (and glx) are enabled only if opengl is a DISTRO_FEATURE so the choice to enable these feature is done at distro level and not at machine level.
So to be consistent with that, you could split dri/glx but I think dri should be enabled only when the distro has enabled opengl.

Quoted 7 lines
Quoted 5 lines

Note that we have the same problem in the qt4 recipes : in oe-core, opengl is enabled ony if DISTRO_FEATURE has opengl, in meta-fsl-arm opengl (and openvg) are enabled by default. I'm not sure a BSP should force these settings if the distro doesn't want them.

So. I know the way oe-core chooses to use opengl and it's right. As long

as

Quoted 3 lines

gl is provided as a distro / mesa-dri provider. But after all libgl / egl and so on can be hardware dependent binaries. And this is why i want to treat them like that. I would consider this a workaround until things

Quoted 8 lines

will

Quoted 3 lines

be completed in oe-core. But right now this, in my opinion, the only good way to fix an issue like this.

I agree with you that this could be hardware dependent and not distro dependent. So if I understand well you plan to migrate that in oe-core from DISTRO_FEATURES to MACHINE_FEATURES ?

Yes. This is want. But things will be tricky. Need to think how to do it. We had a talk in oe-core ago. Things didn't come to a conclusion yet.

ag

#23 lore raw
In reply to Eric Bénard

On Sun, Jan 13, 2013 at 3:04 PM, Eric Bénard <[email protected]> wrote:
...

Quoted 10 lines

As I already said before dri is enabled _only_ if DISTRO_FEATURES contains opengl :
xserver-xorg.inc has
PACKAGECONFIG ??= "udev ${@base_contains('DISTRO_FEATURES', 'opengl', 'glx', '', d)}" PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev" PACKAGECONFIG[glx] = "--enable-dri --enable-dri2 --enable-glx --enable-glx-tls,\
--disable-dri --disable-glx,\ xf86driproto dri2proto mesa-dri"

So this patch is useless.

We need to split glx and dri in PACKAGECONFIG to handle it. In meanwhile we can use 'udev' only and add dri depends and configuration options.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#6 lore raw

Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6

In reply to Andrei Gherzan
Quoted 18 lines · Andrei Gherzan

* Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core includes configs for dri and glx in the same PACKAGECONFIG[glx].
* There is no libgl in imx6 graphic libraries so don't compile xserver with glx.
* xserver driver for imx6 needs dri.h so compile xserver with dri for these machines

---
 .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +0 -0
new file mode 100644
index 0000000..c8b4a44

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 8

Quoted 8 lines
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +8 -0
@@ -0,0 +1,15 @@
+PRINC := "${@int(PRINC) + 1}"
+
+# There are no libgl binaries for imx6 - don't compile with glx
+PACKAGECONFIG_imx6qsabrelite := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
+PACKAGECONFIG_imx6qsabreauto := "${@oe_filter_out('glx', '${PACKAGECONFIG}', d)}"
+# dri is needed for xf86-video-imxfb-vivante - xserver driver
+PACKAGECONFIG_append_imx6qsabrelite = " dri"
+PACKAGECONFIG_append_imx6qsabreauto = " dri"

Use PACKAGECONFIG_mx6 so all mx6 boards handle it same way by default.

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 15

Quoted 6 lines
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +6 -0
+PACKAGECONFIG[dri] = "--enable-dri, \
+                      --disable-dri, \
+                      xf86driproto dri2proto"
+PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,\
+                      --disable-glx,\
+                      virtual/libgl"

This part of patch can be included here as an interin solution but it should be send to oe-core.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#9 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

In reply to Andrei Gherzan
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one in the GPU package?

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#21 lore raw

Re: [meta-fsl-arm][PATCH 4/4] gpu-viv-bin-mx6q: Add dri.pc

In reply to Andrei Gherzan
Quoted 17 lines · Andrei Gherzan

This is need when compiling packages like xserver-xorg with dri support.

---
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc          |   13 ++++++++++---
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc       |   11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)
 create mode 100644 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +0 -0
index 1f63a0b..ed69e88 100644
@@ -7,11 +7,14 @@ LICENSE = "Proprietary"
 LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=092bc28e13d678ceaebe1a40559275fb"
 PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6"
 

recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc LICENSE = "Proprietary" · line 17

Quoted 10 lines
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +5 -2
-INC_PR = "r1"
+INC_PR = "r2"
 
 inherit fsl-eula-unpack
 
-SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
+SRC_URI = " \
+    ${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+    file://dri.pc \
+    "

Please don't change the format in same patch. Besides I see no reason to break the first line... do you?

Quoted 29 lines
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc +5 -1
 PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \
        libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \
@@ -62,6 +65,10 @@ do_install () {
 
     find ${D}${libdir} -type f -exec chmod 644 {} \;
     find ${D}${includedir} -type f -exec chmod 644 {} \;
+
+    # Install dri.pc
+    install -d ${D}${libdir}/pkgconfig
+    cp -ax ${WORKDIR}/dri.pc ${D}${libdir}/pkgconfig
 }
 
 S = "${WORKDIR}/${PN}-${PV}"
@@ -140,7 +147,7 @@ FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}"
 FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}"
 
 FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}"
-FILES_libvivante-dri-mx6-dev = ""
+FILES_libvivante-dri-mx6-dev = "${libdir}/pkgconfig"
 FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc new file +1 -0
new file mode 100644
index 0000000..537c533
@@ -0,0 +1,11 @@
+prefix=/usr

recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc line 11

Quoted 10 lines
recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/dri.pc new file +10 -0
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+dridriverdir=${libdir}/dri
+
+Name: dri
+Description: Vivante Direct Rendering Infrastructure
+Version: 8.0.0
+Requires.private: libdrm >= 2.4.24
+Cflags: -I${includedir}

The patch looks fine; I will await for the v2 of the patchset.

Regards,

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#10 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

In reply to Otavio Salvador
Quoted 10 lines · Otavio Salvador
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one in the GPU package?

Xorg? Is Xorg bringing that header too?

ag

#7 lore raw

Re: [meta-fsl-arm][PATCH 2/4] xserver-xorg: Add bbappend to include dri and exclude glx for imx6

In reply to Otavio Salvador
Quoted 39 lines · Otavio Salvador
Quoted 1 line · Andrei Gherzan

* Split glx PACKAGECONFIG flag in glx and dri. The one from oe-core

includes

Quoted 2 lines

configs for dri and glx in the same PACKAGECONFIG[glx].
* There is no libgl in imx6 graphic libraries so don't compile xserver

with glx.

Quoted 1 line

* xserver driver for imx6 needs dri.h so compile xserver with dri for

these

Quoted 5 lines

machines

---
 .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   15

+++++++++++++++

Quoted 2 lines
 1 file changed, 15 insertions(+)
 create mode 100644

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend

Review

Quoted 2 lines
(quoted diff) +0 -0

b/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 4

Quoted 9 lines

new file mode 100644
index 0000000..c8b4a44

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +4 -0
@@ -0,0 +1,15 @@
+PRINC := "${@int(PRINC) + 1}"
+
+# There are no libgl binaries for imx6 - don't compile with glx
+PACKAGECONFIG_imx6qsabrelite := "${@oe_filter_out('glx',

'${PACKAGECONFIG}', d)}"

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 5

Quoted 1 line
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +1 -0
+PACKAGECONFIG_imx6qsabreauto := "${@oe_filter_out('glx',

'${PACKAGECONFIG}', d)}"

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 8

Quoted 3 lines
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +3 -0
+# dri is needed for xf86-video-imxfb-vivante - xserver driver
+PACKAGECONFIG_append_imx6qsabrelite = " dri"
+PACKAGECONFIG_append_imx6qsabreauto = " dri"

Use PACKAGECONFIG_mx6 so all mx6 boards handle it same way by default.

Quoted 10 lines

recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend line 15

Quoted 6 lines
recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +6 -0
+PACKAGECONFIG[dri] = "--enable-dri, \
+                      --disable-dri, \
+                      xf86driproto dri2proto"
+PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,\
+                      --disable-glx,\
+                      virtual/libgl"

This part of patch can be included here as an interin solution but it should be send to oe-core.

Yes.

#11 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

In reply to Andrei Gherzan
Quoted 8 lines · Andrei Gherzan
Quoted 6 lines · Otavio Salvador
Quoted 3 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Wouldn't be better to use the one provided by Xorg and drop the one in the GPU package?

Xorg? Is Xorg bringing that header too?

glproto comes from Xorg project ;-)

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#12 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Quoted 19 lines · Otavio Salvador
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 14 lines
Quoted 10 lines · wrote:
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one in the GPU package?

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My opinion would be to use the ones from GPU. After all those are HW dependent isn't it?

ag

#24 lore raw
In reply to Otavio Salvador

Hi Otavio,

Quoted 11 lines · Otavio Salvador

On Sun, Jan 13, 2013 at 3:04 PM, Eric Bénard <[email protected]> wrote:
...

Quoted 9 lines

As I already said before dri is enabled _only_ if DISTRO_FEATURES contains opengl :
xserver-xorg.inc has
PACKAGECONFIG ??= "udev ${@base_contains('DISTRO_FEATURES', 'opengl', 'glx', '', d)}" PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev" PACKAGECONFIG[glx] = "--enable-dri --enable-dri2 --enable-glx --enable-glx-tls,\
--disable-dri --disable-glx,\ xf86driproto dri2proto mesa-dri"

Quoted 6 lines
Quoted 1 line

So this patch is useless.

We need to split glx and dri in PACKAGECONFIG to handle it. In meanwhile we can use 'udev' only and add dri depends and configuration options.

you're not answering to the comments on the right patch ;-)

Eric

#13 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

In reply to Andrei Gherzan
Quoted 19 lines · Andrei Gherzan
Quoted 17 lines · Otavio Salvador
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 13 lines
Quoted 10 lines · wrote:
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one in the GPU package?

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My opinion would be to use the ones from GPU. After all those are HW dependent isn't it?

what is the diff between both files ?

Eric

#14 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Quoted 24 lines · Eric Bénard
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 2:25 PM, Otavio Salvador <

Quoted 7 lines · [email protected]>wrote:
Quoted 7 lines
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 2 lines
Quoted 1 line · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one

in

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the GPU package?

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My opinion would be to use the ones from GPU. After all those are HW dependent isn't it?

what is the diff between both files ?

Here (http://paste.ubuntu.com/1566706/) is the diff from proto version and viv version. Seems like a lot of viv specific changes. Take a look.

ag

#15 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Hi Andrai,

Quoted 33 lines · Andrei Gherzan
Quoted 31 lines · Eric Bénard
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 2:25 PM, Otavio Salvador <

Quoted 7 lines · [email protected]>wrote:
Quoted 7 lines
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 2 lines
Quoted 1 line · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one

in

Quoted 9 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

the GPU package?

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My opinion would be to use the ones from GPU. After all those are HW dependent isn't it?

Quoted 6 lines
Quoted 2 lines

what is the diff between both files ?

Here (http://paste.ubuntu.com/1566706/) is the diff from proto version and viv version. Seems like a lot of viv specific changes. Take a look.

OK so it may be better to use the one of the GPU package and not the one from Xorg.

Eric

#16 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Quoted 38 lines · Eric Bénard

Hi Andrai,

Quoted 33 lines · Andrei Gherzan
Quoted 31 lines · Eric Bénard
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 2:25 PM, Otavio Salvador <

Quoted 7 lines · [email protected]>wrote:
Quoted 7 lines
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 2 lines
Quoted 1 line · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one

in

Quoted 9 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

the GPU package?

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My opinion would be to use the ones from GPU. After all those are HW dependent isn't it?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

what is the diff between both files ?

Here (http://paste.ubuntu.com/1566706/) is the diff from proto version and viv version. Seems like a lot of viv specific changes. Take a look.

OK so it may be better to use the one of the GPU package and not the one from Xorg.

Right but then we need to change the header name and patch the code to use it; so both won't conflict.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#17 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Quoted 42 lines · Otavio Salvador
Quoted 41 lines · Eric Bénard

Hi Andrai,

Quoted 36 lines · Andrei Gherzan
Quoted 33 lines · Eric Bénard
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 2:25 PM, Otavio Salvador <

Quoted 7 lines · [email protected]>wrote:
Quoted 7 lines
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 2 lines
Quoted 1 line · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Wouldn't be better to use the one provided by Xorg and drop the one

in

Quoted 9 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

the GPU package?

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My opinion would be to use the ones from GPU. After all those are HW dependent isn't it?

what is the diff between both files ?

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

Here (http://paste.ubuntu.com/1566706/) is the diff from proto version and viv version. Seems like a lot of viv specific changes. Take a look.

OK so it may be better to use the one of the GPU package and not the one from Xorg.

Right but then we need to change the header name and patch the code to use it; so both won't conflict.

or to exclude the header for the Xorg package and package this one instead.

Eric

#18 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Quoted 54 lines · Eric Bénard
Quoted 8 lines · Otavio Salvador
Quoted 7 lines · Eric Bénard

Hi Andrai,

Quoted 2 lines · Andrei Gherzan

On Mon, Jan 14, 2013 at 3:22 PM, Eric Bénard <[email protected]> wrote:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 2:25 PM, Otavio Salvador <

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

On Mon, Jan 14, 2013 at 10:22 AM, Andrei Gherzan <

[email protected]>

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line · wrote:

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 8 lines
Quoted 7 lines · wrote:
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Signed-off-by Andrei Gherzan <

[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Wouldn't be better to use the one provided by Xorg and drop

the one

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

in

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

the GPU package?

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My

opinion

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

would be to use the ones from GPU. After all those are HW

dependent isn't

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

it?

what is the diff between both files ?

Here (http://paste.ubuntu.com/1566706/) is the diff from proto

version and

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

viv version. Seems like a lot of viv specific changes. Take a look.

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

OK so it may be better to use the one of the GPU package and not the one from Xorg.

Right but then we need to change the header name and patch the code to use it; so both won't conflict.

or to exclude the header for the Xorg package and package this one instead.

This patch does this.

ag

#19 lore raw

Re: [meta-fsl-arm][PATCH 3/4] glproto: Don't install glxtokens.h for imx6qsabrelite

Quoted 59 lines · Andrei Gherzan
Quoted 57 lines · Eric Bénard
Quoted 8 lines · Otavio Salvador
Quoted 7 lines · Eric Bénard

Hi Andrai,

Quoted 2 lines · Andrei Gherzan

On Mon, Jan 14, 2013 at 3:22 PM, Eric Bénard <[email protected]> wrote:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line · Andrei Gherzan

On Mon, Jan 14, 2013 at 2:25 PM, Otavio Salvador <

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

On Mon, Jan 14, 2013 at 10:22 AM, Andrei Gherzan <

[email protected]>

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line · wrote:

On Mon, Jan 14, 2013 at 1:55 PM, Otavio Salvador <

[email protected]>

Quoted 8 lines
Quoted 7 lines · wrote:
Quoted 4 lines · Andrei Gherzan

Avoid in this way duplicate file warnings in sysroot. This header is provided by freescale.

Signed-off-by Andrei Gherzan <

[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Wouldn't be better to use the one provided by Xorg and drop

the one

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

in

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

the GPU package?

Xorg? Is Xorg bringing that header too?

I know and I understand now. Well... don't know what to say. My

opinion

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

would be to use the ones from GPU. After all those are HW

dependent isn't

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

it?

what is the diff between both files ?

Here (http://paste.ubuntu.com/1566706/) is the diff from proto

version and

Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

viv version. Seems like a lot of viv specific changes. Take a look.

OK so it may be better to use the one of the GPU package and not the one from Xorg.

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines

Right but then we need to change the header name and patch the code to use it; so both won't conflict.

or to exclude the header for the Xorg package and package this one instead.

This patch does this.

I was just asking the diff to get an answer to Otavio's question "Wouldn't be better to use the one provided by Xorg and drop the one in the GPU package?"

So it seems your patch is the right thing to do and that was difficult to give an opinion without seeing a diff.

Eric