Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

The SGX530 driver for X11 is only buildable and testable standalone
with the pre-built X11 package provided with the Graphics SDK.
This patch removes X11 build from the default recipe, to enable
moving X11 build to a separate recipe.

This is part of a clean up of the Graphics recipe starting from
4.09.00.01 version of the Graphics SDK.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++----------------
 .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +-----
 2 files changed, 30 insertions(+), 181 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index 9a90c56..130dc49 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"

 COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"

-X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
-DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
-
-export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
 PVR_INIT ?= "pvrsrvinit"

 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
 <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
(Continue reading)

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 03/10] libgles-omap3: Remove unsupported core build option ES2.0

ES2.0 build option for SGX user binaries is deprecated as the
corresponding SOC is no longer in production

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc |   27 +++++++++------------------
 1 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index 130dc49..1e1a6f1 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -28,7 +28,6  <at>  <at>  TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
 require ../../recipes-ti/includes/ti-eula-unpack.inc

 export BINLOCATION ?= "${S}/gfx_rel"
-export ES2LOCATION ?= "${S}/gfx_rel_es2.x"
 export ES3LOCATION ?= "${S}/gfx_rel_es3.x"
 export ES5LOCATION ?= "${S}/gfx_rel_es5.x"
 export ES6LOCATION ?= "${S}/gfx_rel_es6.x"
 <at>  <at>  -150,24 +149,22  <at>  <at>  do_install () {
 	echo "[default]" > ${D}${sysconfdir}/powervr.ini
 	echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini

-	# The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets
of userspace
+	# Create different folders for ease of installing into different platforms with different display
drivers/ SGX core revisions

 	install -d ${D}${libdir}/ES8.0
(Continue reading)

Andreas Müller | 2 May 15:53 2013

Re: [PATCH 03/10] libgles-omap3: Remove unsupported core build option ES2.0

On Thu, May 2, 2013 at 3:39 PM, Prabindh Sundareson <prabu@...> wrote:
> ES2.0 build option for SGX user binaries is deprecated as the
> corresponding SOC is no longer in production
Does this mean end of support for this hardware?

Andreas
Sundareson, Prabindh | 2 May 16:02 2013
Picon

Re: [PATCH 03/10] libgles-omap3: Remove unsupported core build option ES2.0

This removes support in the recipe for the SGX core revision 1.0.3, that the Graphics SDK stopped
supporting almost 2 years back (from release 4.05.00.01 onwards).

regards,
Prabu


-----Original Message-----
From: Andreas Müller [mailto:schnitzeltony <at> googlemail.com] 
Sent: Thursday, May 02, 2013 7:23 PM
To: Sundareson, Prabindh
Cc: meta-ti <at> yoctoproject.org
Subject: Re: [meta-ti] [PATCH 03/10] libgles-omap3: Remove unsupported core build option ES2.0

On Thu, May 2, 2013 at 3:39 PM, Prabindh Sundareson <prabu <at> ti.com> wrote:
> ES2.0 build option for SGX user binaries is deprecated as the 
> corresponding SOC is no longer in production
Does this mean end of support for this hardware?

Andreas
_______________________________________________
meta-ti mailing list
meta-ti <at> yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti
Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 02/10] omap3-sgx-modules: Remove X11 related build and packaging

The SGX530 driver for X11 is only buildable and testable standalone
with the pre-built X11 package provided with the Graphics SDK.
This patch removes X11 build from the default kernel module recipe,
to enable moving X11 build to a separate recipe.

This is part of a clean up of the Graphics recipe starting from
4.09.00.01 version of the Graphics SDK.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 .../omap3-sgx-modules_4.09.00.01.bb                |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb b/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb
index 55e427f..399374d 100644
--- a/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb
+++ b/recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb
 <at>  <at>  -39,9 +39,7  <at>  <at>  MODULESLOCATION_ti814x = "dc_ti81xx_linux"
 MODULESLOCATION_ti816x = "dc_ti81xx_linux"
 MODULESLOCATION_ti33x = "dc_ti335x_linux"

-export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
+MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=0"

 do_install() {
     mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
 <at>  <at>  -49,8 +47,4  <at>  <at>  do_install() {
         ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko  \
(Continue reading)

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 04/10] libgles-omap3: Remove OpenVG references

OpenVG API is no longer supported in the SGX Graphics SDK.
Customers are encouraged to move to OpenGL ES2.x.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index 1e1a6f1..3d59906 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -137,8 +137,6  <at>  <at>  do_install () {
 	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
 	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/${PLATFORM}/Include/GLES/*
${D}${includedir}/GLES/ 2>/dev/null || true
 	cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/Include/GLES/*
${D}${includedir}/GLES2/ 2>/dev/null || true
-	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/v* ${D}${includedir}/
2>/dev/null || true
-	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/
2>/dev/null || true
 	cp -pPr ${S}/include/*.h ${D}${includedir} || true
 	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
 	
 <at>  <at>  -162,7 +160,7  <at>  <at>  do_install () {
 	install -d ${D}${bindir}/ES3.0

 	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test sgx_blit_test sgx_clipblit_test
sgx_flip_test sgx_init_test sgx_render_flip_test"
(Continue reading)

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 05/10] libgles-omap3: Remove copying of unused header files

Current recipe copies lot of headers that are unused, including
unsupported files for OpenVG. This patch removes copying of such files.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index 3d59906..d08a04d 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -133,12 +133,9  <at>  <at>  do_install () {
 	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
 	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/

-	cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/
-	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
-	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/${PLATFORM}/Include/GLES/*
${D}${includedir}/GLES/ 2>/dev/null || true
-	cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/Include/GLES/*
${D}${includedir}/GLES2/ 2>/dev/null || true
-	cp -pPr ${S}/include/*.h ${D}${includedir} || true
-	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
+ 	cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
+ 	cp -pPr ${S}/include/OGLES2/* ${D}${includedir}/
+ 	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir}/
 	
 	install -d ${D}${sysconfdir}/init.d/
 	cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
(Continue reading)

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 09/10] omap3-sgx-modules-x11: Separate X11 SGX driver package into new recipe

omap3-sgx-modules now contains only non-X11 drivers. The X11 driver is
available in the omap3-sgx-modules-x11 package.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   73 ++++
 3 files changed, 457 insertions(+), 0 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb

diff --git
a/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch b/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
new file mode 100644
index 0000000..fc315bc
--- /dev/null
+++ b/recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 <at>  <at>  -0,0 +1,346  <at>  <at> 
+---
GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c-orig	2011-03-08
04:27:35.000000000 -0800
++++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c	2011-03-17
13:11:31.000000000 -0700
+ <at>  <at>  -235,9 +235,20  <at>  <at>  static OMAP_ERROR UnblankDisplay(OMAPLFB
+ {
+ 	int res;
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
(Continue reading)

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 07/10] libgles-omap3: Skip ldflags check for debug binaries also

The libraries libusc.so, libPVRScopeServices.so, libews.so generate
"No GNU_HASH in the elf binary" error during rootfs packaging due to
prebuilt-binary packaging. This patch skips the check.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index c33062a..ae69e69 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -285,6 +285,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
 INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
 INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
 INSANE_SKIP_${PN}-tests = "ldflags"
+INSANE_SKIP_${PN}-dev = "ldflags dev-so"

 # Quality control is really poor on these SDKs, so hack around the latest madness:
 FILES_${PN} += "${libdir}/*.so "
--

-- 
1.7.1

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 10/10] libgles-omap3: Packge init with right permissions

pvr-init is not packaged in the rootfs with +x permissions,
causing init to fail.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index ae69e69..602a798 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -139,6 +139,7  <at>  <at>  do_install () {
 	
 	install -d ${D}${sysconfdir}/init.d/
 	cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
+	chmod +x ${D}${sysconfdir}/init.d/pvr-init

 	install -d ${D}${sysconfdir}
 	echo "[default]" > ${D}${sysconfdir}/powervr.ini
--

-- 
1.7.1

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 08/10] libgles-omap3-x11: Separate X11 SGX driver package into new recipe

libgles-omap3 now contains only non-X11 drivers. The X11 driver is
available in the libgles-omap3-x11 package. This package has
dependency on specific kernel versions for DRM builds.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  124 ++++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  136 +++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  312 ++++++++++++++++++++
 .../libgles/libgles-omap3-x11_4.09.00.01.bb        |   58 ++++
 4 files changed, 630 insertions(+), 0 deletions(-)
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11_4.09.00.01.bb

diff --git a/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr b/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
new file mode 100644
index 0000000..7b5cefa
--- /dev/null
+++ b/recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 <at>  <at>  -0,0 +1,124  <at>  <at> 
+#!/bin/sh
+PATH=$PATH:/usr/sbin
+
+# Check if an fb device is available.  If not then just go ahead and
+# exit because we have no display.
+fbset > /dev/null 2>&1
+if [ "$?" == "1" ]
+then
(Continue reading)

Denys Dmytriyenko | 14 May 19:29 2013
Picon

Re: [PATCH 08/10] libgles-omap3-x11: Separate X11 SGX driver package into new recipe

On Thu, May 02, 2013 at 07:09:22PM +0530, Prabindh Sundareson wrote:
> libgles-omap3 now contains only non-X11 drivers. The X11 driver is
> available in the libgles-omap3-x11 package. This package has
> dependency on specific kernel versions for DRM builds.

Please see inline below.

> Signed-off-by: Prabindh Sundareson <prabu@...>
> ---
>  .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  124 ++++++++
>  .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  136 +++++++++
>  recipes-graphics/libgles/libgles-omap3-x11.inc     |  312 ++++++++++++++++++++
>  .../libgles/libgles-omap3-x11_4.09.00.01.bb        |   58 ++++
>  4 files changed, 630 insertions(+), 0 deletions(-)
>  create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
>  create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
>  create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
>  create mode 100644 recipes-graphics/libgles/libgles-omap3-x11_4.09.00.01.bb
> 
> diff --git a/recipes-graphics/libgles/libgles-omap3-x11.inc b/recipes-graphics/libgles/libgles-omap3-x11.inc
> new file mode 100644
> index 0000000..d90b65c
> --- /dev/null
> +++ b/recipes-graphics/libgles/libgles-omap3-x11.inc
>  <at>  <at>  -0,0 +1,312  <at>  <at> 
> +DESCRIPTION = "libGLES for the omap3 (X11)"
> +LICENSE = "proprietary-binary"
> +# 'TSPA.txt' might not be the best file to md5sum
> +LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1"
> +
(Continue reading)

Prabindh Sundareson | 2 May 15:39 2013
Picon

[PATCH 06/10] libgles-omap3: Add missing RPROVIDES

RPROVIDES specifies the libraries that are dynamically loaded
at runtime. This patch fixes "no package provides libGLESv2.so" and
similar errors that occur when including packages like qtbase.

Signed-off-by: Prabindh Sundareson <prabu@...>
---
 recipes-graphics/libgles/libgles-omap3.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index d08a04d..c33062a 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
 <at>  <at>  -201,6 +201,7  <at>  <at>  PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
 PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
 PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"

+RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so libsrv_init.so
libsrv_um.so libsrv_um_dri.so libglslcompiler.so"

 PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"

--

-- 
1.7.1

Denys Dmytriyenko | 14 May 19:31 2013
Picon

Re: [PATCH 06/10] libgles-omap3: Add missing RPROVIDES

On Thu, May 02, 2013 at 07:09:20PM +0530, Prabindh Sundareson wrote:
> RPROVIDES specifies the libraries that are dynamically loaded
> at runtime. This patch fixes "no package provides libGLESv2.so" and
> similar errors that occur when including packages like qtbase.

I'm still somewhat not sure about this patch. I know you had this problem with 
Qt5, but I'm wondering if there's a bug with shlib handling in latest OE, as 
you ususally don't need to specify shared libs in RPROVIDES...

> Signed-off-by: Prabindh Sundareson <prabu@...>
> ---
>  recipes-graphics/libgles/libgles-omap3.inc |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
> index d08a04d..c33062a 100644
> --- a/recipes-graphics/libgles/libgles-omap3.inc
> +++ b/recipes-graphics/libgles/libgles-omap3.inc
>  <at>  <at>  -201,6 +201,7  <at>  <at>  PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
>  PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
>  
> +RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so
libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"
>  
>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
>  
> -- 
(Continue reading)

Prabindh Sundareson | 15 May 06:15 2013
Picon

Re: [PATCH 06/10] libgles-omap3: Add missing RPROVIDES

Denys,

How can this be confirmed ? Any other list to ask ?

regards
Prabu
From: Denys Dmytriyenko <denys-l0cyMroinI0@public.gmane.org>
To: Prabindh Sundareson <prabu-l0cyMroinI0@public.gmane.org>
Cc: meta-ti <at> yoctoproject.org
Sent: Tuesday, May 14, 2013 11:01 PM
Subject: Re: [meta-ti] [PATCH 06/10] libgles-omap3: Add missing RPROVIDES

On Thu, May 02, 2013 at 07:09:20PM +0530, Prabindh Sundareson wrote:
> RPROVIDES specifies the libraries that are dynamically loaded
> at runtime. This patch fixes "no package provides libGLESv2.so" and
> similar errors that occur when including packages like qtbase.

I'm still somewhat not sure about this patch. I know you had this problem with
Qt5, but I'm wondering if there's a bug with shlib handling in latest OE, as
you ususally don't need to specify shared libs in RPROVIDES...


> Signed-off-by: Prabindh Sundareson <prabu-l0cyMroinI0@public.gmane.org>
> ---
>  recipes-graphics/libgles/libgles-omap3.inc |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
> index d08a04d..c33062a 100644
> --- a/recipes-graphics/libgles/libgles-omap3.inc
> +++ b/recipes-graphics/libgles/libgles-omap3.inc
> <at> <at> -201,6 +201,7 <at> <at> PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
>  PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"

> +RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"

>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"

> --
> 1.7.1
>
> _______________________________________________
> meta-ti mailing list
> meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
> https://lists.yoctoproject.org/listinfo/meta-ti
>
_______________________________________________
meta-ti mailing list
meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
https://lists.yoctoproject.org/listinfo/meta-ti


<div><div>Denys,<br><br>How can this be confirmed ? Any other list to ask ?<br><div><span><br></span></div>
<div>regards</div>
<div>Prabu<br>
</div>  <div> <div> <div dir="ltr">  <span>From:</span> Denys Dmytriyenko &lt;denys@...&gt;<br><span>To:</span> Prabindh Sundareson &lt;prabu@...&gt; <br><span>Cc:</span> meta-ti <at> yoctoproject.org <br><span>Sent:</span> Tuesday, May 14, 2013 11:01 PM<br><span>Subject:</span> Re: [meta-ti] [PATCH 06/10] libgles-omap3: Add missing RPROVIDES<br>
 </div> <div class="y_msg_container">
<br>On Thu, May 02, 2013 at 07:09:20PM +0530, Prabindh Sundareson wrote:<br>&gt; RPROVIDES specifies the libraries that are dynamically loaded<br>&gt; at runtime. This patch fixes "no package provides libGLESv2.so" and<br>&gt; similar errors that occur when including packages like qtbase.<br><br>I'm still somewhat not sure about this patch. I know you had this problem with <br>Qt5, but I'm wondering if there's a bug with shlib handling in latest OE, as <br>you ususally don't need to specify shared libs in RPROVIDES...<br><br><br>&gt; Signed-off-by: Prabindh Sundareson &lt;<a ymailto="mailto:prabu@..." href="mailto:prabu <at> ti.com">prabu@...</a>&gt;<br>&gt; ---<br>&gt;&nbsp; recipes-graphics/libgles/libgles-omap3.inc |&nbsp; &nbsp; 1 +<br>&gt;&nbsp; 1 files changed, 1 insertions(+), 0 deletions(-)<br>&gt; <br>&gt; diff --git a/recipes-graphics/libgles/libgles-omap3.inc
 b/recipes-graphics/libgles/libgles-omap3.inc<br>&gt; index d08a04d..c33062a 100644<br>&gt; --- a/recipes-graphics/libgles/libgles-omap3.inc<br>&gt; +++ b/recipes-graphics/libgles/libgles-omap3.inc<br>&gt;  <at>  <at>  -201,6 +201,7  <at>  <at>  PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib<br>&gt;&nbsp; PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"<br>&gt;&nbsp; PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"<br>&gt;&nbsp; <br>&gt; +RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"<br>&gt;&nbsp; <br>&gt;&nbsp; PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"<br>&gt;&nbsp; <br>&gt; -- <br>&gt;
 1.7.1<br>&gt; <br>&gt; _______________________________________________<br>&gt; meta-ti mailing list<br>&gt; <a ymailto="mailto:meta-ti <at> yoctoproject.org" href="mailto:meta-ti@...">meta-ti@...</a><br>&gt; <a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br>&gt; <br>_______________________________________________<br>meta-ti mailing list<br><a ymailto="mailto:meta-ti@..." href="mailto:meta-ti <at> yoctoproject.org">meta-ti@...</a><br><a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br><br><br>
</div> </div> </div>  </div></div>
Denys Dmytriyenko | 17 Jun 23:10 2013
Picon

Re: [PATCH 06/10] libgles-omap3: Add missing RPROVIDES

Prabu,

By "libraries that are dynamically loaded at runtime", do you mean shared 
libraries or rather libraries loaded with dlopen() [1]? The latter one would 
explain why they are not automatically handled by shlib code, as it only 
detects shared libraries, AFAIK...

[1] http://tldp.org/HOWTO/Program-Library-HOWTO/dl-libraries.html

-- 
Denys

On Tue, May 14, 2013 at 09:15:21PM -0700, Prabindh Sundareson wrote:
> Denys,
> 
> How can this be confirmed ? Any other list to ask ?
> 
> 
> regards
> Prabu
> 
> 
> ________________________________
>  From: Denys Dmytriyenko <denys@...>
> To: Prabindh Sundareson <prabu@...> 
> Cc: meta-ti@... 
> Sent: Tuesday, May 14, 2013 11:01 PM
> Subject: Re: [meta-ti] [PATCH 06/10] libgles-omap3: Add missing RPROVIDES
>  
> 
> On Thu, May 02, 2013 at 07:09:20PM +0530, Prabindh Sundareson wrote:
> > RPROVIDES specifies the libraries that are dynamically loaded
> > at runtime. This patch fixes "no package provides libGLESv2.so" and
> > similar errors that occur when including packages like qtbase.
> 
> I'm still somewhat not sure about this patch. I know you had this problem with 
> Qt5, but I'm wondering if there's a bug with shlib handling in latest OE, as 
> you ususally don't need to specify shared libs in RPROVIDES...
> 
> 
> > Signed-off-by: Prabindh Sundareson <prabu@...>
> > ---
> >  recipes-graphics/libgles/libgles-omap3.inc |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
> > index d08a04d..c33062a 100644
> > --- a/recipes-graphics/libgles/libgles-omap3.inc
> > +++ b/recipes-graphics/libgles/libgles-omap3.inc
> >  <at>  <at>  -201,6 +201,7  <at>  <at>  PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
> >  PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
> >  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
> >  
> > +RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so
libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"
> >  
> >  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
> >  
> > -- 
> > 1.7.1
> > 
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@...
> > https://lists.yoctoproject.org/listinfo/meta-ti
> > 
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
Sundareson, Prabindh | 18 Jun 04:31 2013
Picon

Re: [PATCH 06/10] libgles-omap3: Add missing RPROVIDES

Denys,

No, these are not dlopen'ed libraries. 

regards,
Prabu

-----Original Message-----
From: Dmytriyenko, Denys 
Sent: Tuesday, June 18, 2013 2:40 AM
To: Prabindh Sundareson
Cc: Sundareson, Prabindh; meta-ti@...
Subject: Re: [meta-ti] [PATCH 06/10] libgles-omap3: Add missing RPROVIDES

Prabu,

By "libraries that are dynamically loaded at runtime", do you mean shared libraries or rather libraries
loaded with dlopen() [1]? The latter one would explain why they are not automatically handled by shlib
code, as it only detects shared libraries, AFAIK...

[1] http://tldp.org/HOWTO/Program-Library-HOWTO/dl-libraries.html

--
Denys

On Tue, May 14, 2013 at 09:15:21PM -0700, Prabindh Sundareson wrote:
> Denys,
> 
> How can this be confirmed ? Any other list to ask ?
> 
> 
> regards
> Prabu
> 
> 
> ________________________________
>  From: Denys Dmytriyenko <denys@...>
> To: Prabindh Sundareson <prabu@...> 
> Cc: meta-ti@... 
> Sent: Tuesday, May 14, 2013 11:01 PM
> Subject: Re: [meta-ti] [PATCH 06/10] libgles-omap3: Add missing RPROVIDES
>  
> 
> On Thu, May 02, 2013 at 07:09:20PM +0530, Prabindh Sundareson wrote:
> > RPROVIDES specifies the libraries that are dynamically loaded
> > at runtime. This patch fixes "no package provides libGLESv2.so" and
> > similar errors that occur when including packages like qtbase.
> 
> I'm still somewhat not sure about this patch. I know you had this problem with 
> Qt5, but I'm wondering if there's a bug with shlib handling in latest OE, as 
> you ususally don't need to specify shared libs in RPROVIDES...
> 
> 
> > Signed-off-by: Prabindh Sundareson <prabu@...>
> > ---
> >  recipes-graphics/libgles/libgles-omap3.inc |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
> > index d08a04d..c33062a 100644
> > --- a/recipes-graphics/libgles/libgles-omap3.inc
> > +++ b/recipes-graphics/libgles/libgles-omap3.inc
> >  <at>  <at>  -201,6 +201,7  <at>  <at>  PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
> >  PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
> >  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so
libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
> >  
> > +RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so
libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so"
> >  
> >  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
> >  
> > -- 
> > 1.7.1
> > 
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@...
> > https://lists.yoctoproject.org/listinfo/meta-ti
> > 
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
Maupin, Chase | 8 May 15:18 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Prabu,

Overall nice job.  A couple of things I noticed.

1. You removed the sample.desktop file but did not put it back in a later recipe.
2. You modified the common .inc file and then added the X11 pieces back for 4.09.00.01.  This would break
people using the older recipes though.  So would it perhaps be a good idea to leave the .inc alone and then
create a new include file for newer recipe that do this split going forward?  Or would it be simpler to
provide the X11 package for the older versions as well?  This is just a thought and I'm hoping others will
chime in here.

Thanks for the patches, it is really good to see this work being done :)

> -----Original Message-----
> From: meta-ti-bounces@... [mailto:meta-ti-
> bounces@...] On Behalf Of Sundareson, Prabindh
> Sent: Thursday, May 02, 2013 8:39 AM
> To: meta-ti@...
> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> related build and packaging
> 
> The SGX530 driver for X11 is only buildable and testable
> standalone
> with the pre-built X11 package provided with the Graphics SDK.
> This patch removes X11 build from the default recipe, to enable
> moving X11 build to a separate recipe.
> 
> This is part of a clean up of the Graphics recipe starting from
> 4.09.00.01 version of the Graphics SDK.
> 
> Signed-off-by: Prabindh Sundareson <prabu@...>
> ---
>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++--
> --------------
>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +-----
>  2 files changed, 30 insertions(+), 181 deletions(-)
> 
> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> b/recipes-graphics/libgles/libgles-omap3.inc
> index 9a90c56..130dc49 100644
> --- a/recipes-graphics/libgles/libgles-omap3.inc
> +++ b/recipes-graphics/libgles/libgles-omap3.inc
>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
> 
>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> 
> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
> '${X11DEPENDS}', '', d)}"
> -
> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> 'x11', '1', '0', d)}"
>  PVR_INIT ?= "pvrsrvinit"
> 
>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
>  SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> }/exports/${BINFILE} \
>  		   file://cputype \
>  		   file://rc.pvr \
> -		   file://sample.desktop \
>  		   file://99-bufferclass.rules  \
>  "
> 
>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
>  	export PLAT_CPP="${CXX}"
>  	export PLAR_AR="${AR}"
> 
> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -		export X11ROOT="${STAGING_DIR_HOST}/usr"
> -		mkdir -p ${S}/demos/x11
> -		mkdir -p ${S}/trainingcourses/x11
> -	fi
> -
>  	mkdir -p ${S}/demos/raw
>  	mkdir -p ${S}/trainingcourses/raw
> 
>  	# Rebuild demos
> -	for X11BUILD in 0 1 ; do
> -		# Don't rebuild demos with X11 support for a non X11
> distro
> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> then
> -			continue
> -		fi
> +	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> do
> +		cd $demo/OGLES/Build/LinuxGeneric
> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> +		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> +
> +		install -m 0755
> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
> +	done
> +
> +	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> do
> +		cd $demo/OGLES2/Build/LinuxGeneric
> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> +		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> 
> -		for demo in
> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> -			cd $demo/OGLES/Build/LinuxGeneric
> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> X11BUILD=$X11BUILD
> -			rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> -
> -			if [ $X11BUILD -eq 1 ] ; then
> -				install -m 0755
> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true
> -				sed -e s:NAME:$(basename $demo): \
> -				    -e
> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> -				    ${WORKDIR}/sample.desktop >
> ${WORKDIR}/$(basename $demo).desktop
> -			else
> -				install -m 0755
> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
> -			fi
> -		done
> -
> -		for demo in
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> -			cd $demo/OGLES2/Build/LinuxGeneric
> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> X11BUILD=$X11BUILD
> -			rm -f
> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> -
> -			if [ $X11BUILD -eq 1 ] ; then
> -				install -m 0755
> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> true
> -				sed -e s:NAME:$(basename $demo): \
> -				    -e
> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> -				    ${WORKDIR}/sample.desktop >
> ${WORKDIR}/$(basename $demo).desktop
> -			else
> -				install -m 0755
> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> true
> -			fi
> -		done
> +		install -m 0755
> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> true
>  	done
> 
>  	find ${S} -name "*_org" -delete
> 
>  	# Build OGLES2 Trainingcourses
> -	for X11BUILD in 0 1 ; do
> -		# Don't rebuild training courses with X11 support for
> a non X11 distro
> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> then
> -			continue
> +	for training in
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> +		if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> ] ; then
> +			cd $training/OGLES2/Build/LinuxGeneric
>  		fi
> 
> -		for training in
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> -			if [ -e
> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> -				cd $training/OGLES2/Build/LinuxGeneric
> -			fi
> -
> -			if [ -e
> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> -				cd $training/OGLES2/Build/${PLATFORM}
> -			fi
> +		if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> ; then
> +			cd $training/OGLES2/Build/${PLATFORM}
> +		fi
> 
> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> X11BUILD=$X11BUILD
> -			rm -f
> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> +		rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> 
> -			if [ $X11BUILD -eq 1 ] ; then
> -				install -m 0755
> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> ${S}/trainingcourses/x11 || true
> -			else
> -				install -m 0755
> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> ${S}/trainingcourses/raw || true
> -			fi
> -		done
> +		install -m 0755
> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> ${S}/trainingcourses/raw || true
>  	done
> 
> +
>  }
> 
>  do_install () {
>  	install -d ${D}${libdir}
>  	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> + 	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> + 	rm ${D}${libdir}/libsrv_um_dri.so*
> + 	rm ${D}${libdir}/pvr_drv.so*
>  	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> 
>  	install -d ${D}${bindir}/
>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
>  	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
>  	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> 
> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -		install -m 0755 ${BINLOCATION}/xgles1test1
> ${D}${bindir}/
> -		install -m 0755
> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> ${D}${bindir}/|| true
> -		cp -pPR
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> b/*X11WS* ${D}${libdir} || true
> -	fi
> -
>  	install -d ${D}${includedir}
>  	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
>  	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/
>  <at>  <at>  -211,13 +166,12  <at>  <at>  do_install () {
> 
>  	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
> sgx_render_flip_test"
>  	raw_prog="gles1test1 gles2test1 ovg_unit_test"
> -	x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> xovg_unit_test"
> 
>  	for esrev in 2 3 5 6 8 ; do
>  		ESLOCATION=$(eval echo $(echo
> \$\{ES${esrev}LOCATION\}))
>  		if [ -e ${ESLOCATION} ] ; then
>  			cp -pPR ${ESLOCATION}/lib*${IMGPV}
> ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a
> ${D}${libdir}/ES${esrev}.0/
> -			for esprog in $shared_prog $raw_prog
> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ; do
> +			for esprog in $shared_prog $raw_prog ; do
>  				install -m 0755 ${ESLOCATION}/$esprog
> ${D}${bindir}/ES${esrev}.0/ 2>/dev/null || true
>  			done
>  		fi
>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
> 
>  	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
> ${D}${bindir}/pdsasm -f || true
> 
> -	install -d ${D}${prefix}/share/applications
> -	cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> -	rm ${D}${prefix}/share/applications/sample.desktop
> -
> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -		install -d ${D}${bindir}/SGX/demos/X11/
> -		install -m 0755 ${S}/demos/x11/*
> ${D}${bindir}/SGX/demos/X11/
> -		install -d ${D}${bindir}/SGX/trainingcourses/X11
> 2>/dev/null || true
> -		install -m 0755 ${S}/trainingcourses/x11/*
> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> -	fi
> -
>  	install -d ${D}${bindir}/SGX/demos/Raw/
>  	install -m 0755 ${S}/demos/raw/*
> ${D}${bindir}/SGX/demos/Raw/
>  	install -d ${D}${bindir}/SGX/trainingcourses/Raw
> 2>/dev/null || true
>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
> 
>  }
> 
> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx" ,"",
> d)}  \
> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> tests"
> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> tests"
>  # Package the base libraries per silicon revision
>  PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
> ${PN}-es8"
>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
> libIMGegl.so libsrv_um.so libOpenVG.so li
> 
> 
>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
> ${PN}-linuxfbwsegl"
> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> x11wsegl ${PN}-driwsegl" ,"", d)}"
> +
>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
>  FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
>  FILES_${PN}-linuxfbwsegl =
> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> ${bindir}/x* ${bindir}/*x"
> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> ${libdir}/libsrv_um_dri*"
> 
>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-
> es8"
> 
> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> driwsegl-es6 ${PN}-driwsegl-es8 "
> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> 'x11',"${X11_SEGL}" ,"", d)}"
>  FILES_${PN}-blitwsegl-es2 =
> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
>  FILES_${PN}-blitwsegl-es3 =
> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
>  FILES_${PN}-blitwsegl-es5 =
> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =
> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
>  FILES_${PN}-linuxfbwsegl-es8 =
> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2 ${PN}-
> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
> ${PN}-linuxfbwsegl-es8"
> 
> -FILES_${PN}-x11wsegl-es2 =
> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
> ${bindir}/ES2*/*x"
> -FILES_${PN}-x11wsegl-es3 =
> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
> ${bindir}/ES3*/*x"
> -FILES_${PN}-x11wsegl-es5 =
> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
> ${bindir}/ES5*/*x"
> -FILES_${PN}-x11wsegl-es6 =
> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
> ${bindir}/ES6*/*x"
> -FILES_${PN}-x11wsegl-es8 =
> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
> ${bindir}/ES8*/*x"
> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
> x11wsegl-es8"
> -
> -FILES_${PN}-driwsegl-es2 =
> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES2*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es3 =
> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES3*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es5 =
> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES5*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es6 =
> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES6*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es8 =
> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES8*/libsrv_um_dri*"
> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
> driwsegl-es8"
> -
>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> 
>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
> ${bindir}/${PVR_INIT} ${bindir}/cputype ${bindir}/*"
> 
> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
>  FILES_${PN}-tests = "${bindir}/*test*"
>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\
>  <at>  <at>  -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
> ${bindir}/.debug/* \
>  	"
> 
>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
> ${prefix}/share/applications "
> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> 
>  FILES_${PN}-rawtrainingcourses =
> "${bindir}/SGX/trainingcourses/Raw/*"
> -FILES_${PN}-x11trainingcourses =
> "${bindir}/SGX/trainingcourses/X11/*"
> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> 
>  # The libs need the kernel-modules
>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so
> staticdev"
>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
> "ldflags"
>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
>  INSANE_SKIP_${PN}-tests = "ldflags"
> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> 
>  # Quality control is really poor on these SDKs, so hack around
> the latest madness:
>  FILES_${PN} += "${libdir}/*.so "
>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> 0 1 6 ."
>  # Append to update-rc.d postinst
>  pkg_postinst_${PN}_append() {
>  rm -f $D${sysconfdir}/powervr-esrev
> -
> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -	ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> -	ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> -fi
> -
>  }
> 
>  pkg_postinst_${PN}-blitwsegl() {
>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {
>  rm -f $D${sysconfdir}/powervr-esrev
>  }
> 
> -pkg_postinst_${PN}-x11wsegl() {
> -rm -f $D${sysconfdir}/powervr-esrev
> -
> -echo "[default]" > $D${sysconfdir}/powervr.ini
> -echo "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
> $D${sysconfdir}/powervr.ini
> -}
> -
> -pkg_postinst_${PN}-driwsegl() {
> -rm -f $D${sysconfdir}/powervr-esrev
> -}
> -
> diff --git a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> index 7c6f231..165a406 100644
> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
>  SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> }/exports/${BINFILE} \
>             file://cputype \
>             file://rc.pvr \
> -           file://rc_dri.pvr \
> -           file://sample.desktop \
>             file://99-bufferclass.rules  \
>  "
>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> 
>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> 
> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
> d)}"
> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> 
> -do_configure_append() {
> -
> -    # Change PVR server's user mode library to point to DRI
> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> -    if [ "$drifile" != "" ]
> -    then
> -        dir=$(dirname ${drifile})
> -        if [ "$SUPPORT_XORG" = "1" ]
> -        then
> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> -        else
> -            rm -rf ${dir}/libsrv_um_dri.so
> -        fi
> -    fi
> -
> -    done
> -}
> -
> -do_install_append() {
> -
> -    # In this version of the graphics SDK the following
> directories do not exist:
> -    #
> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> (doesn't exist)
> -    #
> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> s.h (doesn't exist)
> -    # Therefore, need to copy these files manually at the only
> location that they do exist
> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> -
> -    rm ${D}${sysconfdir}/init.d/pvr-init
> -
> -    if [ "$SUPPORT_XORG" = "1" ]; then
> -        cp -pP ${WORKDIR}/rc_dri.pvr
> ${D}${sysconfdir}/init.d/pvr-init
> -    else
> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> init
> -    fi
> -
> -}
> -
> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> --
> 1.7.1
> 
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
Sundareson, Prabindh | 10 May 11:16 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Chase, thanks for the review,

1) Ok, I will add it. By "later recipe", you mean the separated x11 recipe, right ?

2) Good point - I am ok to leave the old .inc and create a new one with the changes starting from 4.09 then. Is
this ok ?

regards,
Prabu

-----Original Message-----
From: Maupin, Chase 
Sent: Wednesday, May 08, 2013 6:48 PM
To: Sundareson, Prabindh; meta-ti@...
Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Prabu,

Overall nice job.  A couple of things I noticed.

1. You removed the sample.desktop file but did not put it back in a later recipe.
2. You modified the common .inc file and then added the X11 pieces back for 4.09.00.01.  This would break
people using the older recipes though.  So would it perhaps be a good idea to leave the .inc alone and then
create a new include file for newer recipe that do this split going forward?  Or would it be simpler to
provide the X11 package for the older versions as well?  This is just a thought and I'm hoping others will
chime in here.

Thanks for the patches, it is really good to see this work being done :)

> -----Original Message-----
> From: meta-ti-bounces@... [mailto:meta-ti- 
> bounces@...] On Behalf Of Sundareson, Prabindh
> Sent: Thursday, May 02, 2013 8:39 AM
> To: meta-ti@...
> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related 
> build and packaging
> 
> The SGX530 driver for X11 is only buildable and testable standalone 
> with the pre-built X11 package provided with the Graphics SDK.
> This patch removes X11 build from the default recipe, to enable moving 
> X11 build to a separate recipe.
> 
> This is part of a clean up of the Graphics recipe starting from
> 4.09.00.01 version of the Graphics SDK.
> 
> Signed-off-by: Prabindh Sundareson <prabu@...>
> ---
>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++--
> --------------
>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +-----
>  2 files changed, 30 insertions(+), 181 deletions(-)
> 
> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> b/recipes-graphics/libgles/libgles-omap3.inc
> index 9a90c56..130dc49 100644
> --- a/recipes-graphics/libgles/libgles-omap3.inc
> +++ b/recipes-graphics/libgles/libgles-omap3.inc
>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
> 
>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> 
> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11', 
> '${X11DEPENDS}', '', d)}"
> -
> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> 'x11', '1', '0', d)}"
>  PVR_INIT ?= "pvrsrvinit"
> 
>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
>  SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> }/exports/${BINFILE} \
>  		   file://cputype \
>  		   file://rc.pvr \
> -		   file://sample.desktop \
>  		   file://99-bufferclass.rules  \
>  "
> 
>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
>  	export PLAT_CPP="${CXX}"
>  	export PLAR_AR="${AR}"
> 
> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -		export X11ROOT="${STAGING_DIR_HOST}/usr"
> -		mkdir -p ${S}/demos/x11
> -		mkdir -p ${S}/trainingcourses/x11
> -	fi
> -
>  	mkdir -p ${S}/demos/raw
>  	mkdir -p ${S}/trainingcourses/raw
> 
>  	# Rebuild demos
> -	for X11BUILD in 0 1 ; do
> -		# Don't rebuild demos with X11 support for a non X11
> distro
> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> then
> -			continue
> -		fi
> +	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> do
> +		cd $demo/OGLES/Build/LinuxGeneric
> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> +		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> +
> +		install -m 0755
> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
> +	done
> +
> +	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> do
> +		cd $demo/OGLES2/Build/LinuxGeneric
> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> +		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> 
> -		for demo in
> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> -			cd $demo/OGLES/Build/LinuxGeneric
> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> X11BUILD=$X11BUILD
> -			rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> -
> -			if [ $X11BUILD -eq 1 ] ; then
> -				install -m 0755
> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true
> -				sed -e s:NAME:$(basename $demo): \
> -				    -e
> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> -				    ${WORKDIR}/sample.desktop >
> ${WORKDIR}/$(basename $demo).desktop
> -			else
> -				install -m 0755
> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
> -			fi
> -		done
> -
> -		for demo in
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> -			cd $demo/OGLES2/Build/LinuxGeneric
> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> X11BUILD=$X11BUILD
> -			rm -f
> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> -
> -			if [ $X11BUILD -eq 1 ] ; then
> -				install -m 0755
> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true
> -				sed -e s:NAME:$(basename $demo): \
> -				    -e
> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> -				    ${WORKDIR}/sample.desktop >
> ${WORKDIR}/$(basename $demo).desktop
> -			else
> -				install -m 0755
> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
> -			fi
> -		done
> +		install -m 0755
> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
>  	done
> 
>  	find ${S} -name "*_org" -delete
> 
>  	# Build OGLES2 Trainingcourses
> -	for X11BUILD in 0 1 ; do
> -		# Don't rebuild training courses with X11 support for
> a non X11 distro
> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> then
> -			continue
> +	for training in
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> +		if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> ] ; then
> +			cd $training/OGLES2/Build/LinuxGeneric
>  		fi
> 
> -		for training in
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> -			if [ -e
> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> -				cd $training/OGLES2/Build/LinuxGeneric
> -			fi
> -
> -			if [ -e
> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> -				cd $training/OGLES2/Build/${PLATFORM}
> -			fi
> +		if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> ; then
> +			cd $training/OGLES2/Build/${PLATFORM}
> +		fi
> 
> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> X11BUILD=$X11BUILD
> -			rm -f
> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> +		rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> 
> -			if [ $X11BUILD -eq 1 ] ; then
> -				install -m 0755
> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> ${S}/trainingcourses/x11 || true
> -			else
> -				install -m 0755
> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> ${S}/trainingcourses/raw || true
> -			fi
> -		done
> +		install -m 0755
> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> ${S}/trainingcourses/raw || true
>  	done
> 
> +
>  }
> 
>  do_install () {
>  	install -d ${D}${libdir}
>  	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> + 	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> + 	rm ${D}${libdir}/libsrv_um_dri.so*
> + 	rm ${D}${libdir}/pvr_drv.so*
>  	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> 
>  	install -d ${D}${bindir}/
>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
>  	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
>  	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> 
> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -		install -m 0755 ${BINLOCATION}/xgles1test1
> ${D}${bindir}/
> -		install -m 0755
> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> ${D}${bindir}/|| true
> -		cp -pPR
> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> b/*X11WS* ${D}${libdir} || true
> -	fi
> -
>  	install -d ${D}${includedir}
>  	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
>  	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -211,13 
> +166,12  <at>  <at>  do_install () {
> 
>  	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test 
> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test 
> sgx_render_flip_test"
>  	raw_prog="gles1test1 gles2test1 ovg_unit_test"
> -	x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> xovg_unit_test"
> 
>  	for esrev in 2 3 5 6 8 ; do
>  		ESLOCATION=$(eval echo $(echo
> \$\{ES${esrev}LOCATION\}))
>  		if [ -e ${ESLOCATION} ] ; then
>  			cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so 
> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
> -			for esprog in $shared_prog $raw_prog
> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ; do
> +			for esprog in $shared_prog $raw_prog ; do
>  				install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ 
> 2>/dev/null || true
>  			done
>  		fi
>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
> 
>  	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm 
> ${D}${bindir}/pdsasm -f || true
> 
> -	install -d ${D}${prefix}/share/applications
> -	cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> -	rm ${D}${prefix}/share/applications/sample.desktop
> -
> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -		install -d ${D}${bindir}/SGX/demos/X11/
> -		install -m 0755 ${S}/demos/x11/*
> ${D}${bindir}/SGX/demos/X11/
> -		install -d ${D}${bindir}/SGX/trainingcourses/X11
> 2>/dev/null || true
> -		install -m 0755 ${S}/trainingcourses/x11/*
> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> -	fi
> -
>  	install -d ${D}${bindir}/SGX/demos/Raw/
>  	install -m 0755 ${S}/demos/raw/*
> ${D}${bindir}/SGX/demos/Raw/
>  	install -d ${D}${bindir}/SGX/trainingcourses/Raw
> 2>/dev/null || true
>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
> 
>  }
> 
> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}- 
> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx" ,"", d)}  
> \
> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> tests"
> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> tests"
>  # Package the base libraries per silicon revision  PACKAGES =+ 
> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 
> ${PN}-es8"
>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so 
> libIMGegl.so libsrv_um.so libOpenVG.so li
> 
> 
>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl 
> ${PN}-linuxfbwsegl"
> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}- 
> x11wsegl ${PN}-driwsegl" ,"", d)}"
> +
>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
>  FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
>  FILES_${PN}-linuxfbwsegl =
> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> ${bindir}/x* ${bindir}/*x"
> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> ${libdir}/libsrv_um_dri*"
> 
>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl- es8"
> 
> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> driwsegl-es6 ${PN}-driwsegl-es8 "
> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> 'x11',"${X11_SEGL}" ,"", d)}"
>  FILES_${PN}-blitwsegl-es2 =
> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
>  FILES_${PN}-blitwsegl-es3 =
> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
>  FILES_${PN}-blitwsegl-es5 =
> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 = 
> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
>  FILES_${PN}-linuxfbwsegl-es8 =
> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2 ${PN}-
> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 
> ${PN}-linuxfbwsegl-es8"
> 
> -FILES_${PN}-x11wsegl-es2 =
> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x* 
> ${bindir}/ES2*/*x"
> -FILES_${PN}-x11wsegl-es3 =
> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x* 
> ${bindir}/ES3*/*x"
> -FILES_${PN}-x11wsegl-es5 =
> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x* 
> ${bindir}/ES5*/*x"
> -FILES_${PN}-x11wsegl-es6 =
> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x* 
> ${bindir}/ES6*/*x"
> -FILES_${PN}-x11wsegl-es8 =
> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x* 
> ${bindir}/ES8*/*x"
> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}- 
> x11wsegl-es8"
> -
> -FILES_${PN}-driwsegl-es2 =
> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES2*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es3 =
> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES3*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es5 =
> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES5*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es6 =
> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES6*/libsrv_um_dri*"
> -FILES_${PN}-driwsegl-es8 =
> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> ${libdir}/ES8*/libsrv_um_dri*"
> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}- 
> driwsegl-es8"
> -
>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> 
>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/${PVR_INIT} 
> ${bindir}/cputype ${bindir}/*"
> 
> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
>  FILES_${PN}-tests = "${bindir}/*test*"
>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at>  
> -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
> ${bindir}/.debug/* \
>  	"
> 
>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/* 
> ${prefix}/share/applications "
> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> 
>  FILES_${PN}-rawtrainingcourses =
> "${bindir}/SGX/trainingcourses/Raw/*"
> -FILES_${PN}-x11trainingcourses =
> "${bindir}/SGX/trainingcourses/X11/*"
> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> 
>  # The libs need the kernel-modules
>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so staticdev"
>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 = "ldflags"
>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
>  INSANE_SKIP_${PN}-tests = "ldflags"
> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> 
>  # Quality control is really poor on these SDKs, so hack around the 
> latest madness:
>  FILES_${PN} += "${libdir}/*.so "
>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> 0 1 6 ."
>  # Append to update-rc.d postinst
>  pkg_postinst_${PN}_append() {
>  rm -f $D${sysconfdir}/powervr-esrev
> -
> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> -	ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> -	ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> -fi
> -
>  }
> 
>  pkg_postinst_${PN}-blitwsegl() {
>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {  rm -f 
> $D${sysconfdir}/powervr-esrev  }
> 
> -pkg_postinst_${PN}-x11wsegl() {
> -rm -f $D${sysconfdir}/powervr-esrev
> -
> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo 
> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >> 
> $D${sysconfdir}/powervr.ini -}
> -
> -pkg_postinst_${PN}-driwsegl() {
> -rm -f $D${sysconfdir}/powervr-esrev
> -}
> -
> diff --git a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> index 7c6f231..165a406 100644
> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
>  SRC_URI = "http://software-
> dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> }/exports/${BINFILE} \
>             file://cputype \
>             file://rc.pvr \
> -           file://rc_dri.pvr \
> -           file://sample.desktop \
>             file://99-bufferclass.rules  \  "
>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> 
>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> 
> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1", d)}"
> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> 
> -do_configure_append() {
> -
> -    # Change PVR server's user mode library to point to DRI
> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> -    if [ "$drifile" != "" ]
> -    then
> -        dir=$(dirname ${drifile})
> -        if [ "$SUPPORT_XORG" = "1" ]
> -        then
> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> -        else
> -            rm -rf ${dir}/libsrv_um_dri.so
> -        fi
> -    fi
> -
> -    done
> -}
> -
> -do_install_append() {
> -
> -    # In this version of the graphics SDK the following
> directories do not exist:
> -    #
> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> (doesn't exist)
> -    #
> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> s.h (doesn't exist)
> -    # Therefore, need to copy these files manually at the only
> location that they do exist
> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> -
> -    rm ${D}${sysconfdir}/init.d/pvr-init
> -
> -    if [ "$SUPPORT_XORG" = "1" ]; then
> -        cp -pP ${WORKDIR}/rc_dri.pvr
> ${D}${sysconfdir}/init.d/pvr-init
> -    else
> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> init
> -    fi
> -
> -}
> -
> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> --
> 1.7.1
> 
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
Maupin, Chase | 10 May 15:27 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging


>-----Original Message-----
>From: Sundareson, Prabindh
>Sent: Friday, May 10, 2013 4:17 AM
>To: Maupin, Chase; meta-ti@...
>Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
>related build and packaging
>
>Chase, thanks for the review,
>
>1) Ok, I will add it. By "later recipe", you mean the separated
>x11 recipe, right ?

Yes sir

>
>2) Good point - I am ok to leave the old .inc and create a new one
>with the changes starting from 4.09 then. Is this ok ?

I'm OK with the approach.  Denys, any concern here?

>
>regards,
>Prabu
>
>
>-----Original Message-----
>From: Maupin, Chase
>Sent: Wednesday, May 08, 2013 6:48 PM
>To: Sundareson, Prabindh; meta-ti@...
>Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
>related build and packaging
>
>Prabu,
>
>Overall nice job.  A couple of things I noticed.
>
>1. You removed the sample.desktop file but did not put it back in
>a later recipe.
>2. You modified the common .inc file and then added the X11 pieces
>back for 4.09.00.01.  This would break people using the older
>recipes though.  So would it perhaps be a good idea to leave the
>.inc alone and then create a new include file for newer recipe
>that do this split going forward?  Or would it be simpler to
>provide the X11 package for the older versions as well?  This is
>just a thought and I'm hoping others will chime in here.
>
>Thanks for the patches, it is really good to see this work being
>done :)
>
>> -----Original Message-----
>> From: meta-ti-bounces@... [mailto:meta-ti-
>> bounces@...] On Behalf Of Sundareson, Prabindh
>> Sent: Thursday, May 02, 2013 8:39 AM
>> To: meta-ti@...
>> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
>related
>> build and packaging
>>
>> The SGX530 driver for X11 is only buildable and testable
>standalone
>> with the pre-built X11 package provided with the Graphics SDK.
>> This patch removes X11 build from the default recipe, to enable
>moving
>> X11 build to a separate recipe.
>>
>> This is part of a clean up of the Graphics recipe starting from
>> 4.09.00.01 version of the Graphics SDK.
>>
>> Signed-off-by: Prabindh Sundareson <prabu@...>
>> ---
>>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++-
>-
>> --------------
>>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +----
>-
>>  2 files changed, 30 insertions(+), 181 deletions(-)
>>
>> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
>> b/recipes-graphics/libgles/libgles-omap3.inc
>> index 9a90c56..130dc49 100644
>> --- a/recipes-graphics/libgles/libgles-omap3.inc
>> +++ b/recipes-graphics/libgles/libgles-omap3.inc
>>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
>>
>>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
>>
>> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
>> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
>> '${X11DEPENDS}', '', d)}"
>> -
>> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
>> 'x11', '1', '0', d)}"
>>  PVR_INIT ?= "pvrsrvinit"
>>
>>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
>>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
>>  SRC_URI = "http://software-
>>
>dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
>> }/exports/${BINFILE} \
>>  		   file://cputype \
>>  		   file://rc.pvr \
>> -		   file://sample.desktop \
>>  		   file://99-bufferclass.rules  \
>>  "
>>
>>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
>>  	export PLAT_CPP="${CXX}"
>>  	export PLAR_AR="${AR}"
>>
>> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
>> -		export X11ROOT="${STAGING_DIR_HOST}/usr"
>> -		mkdir -p ${S}/demos/x11
>> -		mkdir -p ${S}/trainingcourses/x11
>> -	fi
>> -
>>  	mkdir -p ${S}/demos/raw
>>  	mkdir -p ${S}/trainingcourses/raw
>>
>>  	# Rebuild demos
>> -	for X11BUILD in 0 1 ; do
>> -		# Don't rebuild demos with X11 support for a non X11
>> distro
>> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
>> then
>> -			continue
>> -		fi
>> +	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
>> do
>> +		cd $demo/OGLES/Build/LinuxGeneric
>> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
>> +		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
>> +
>> +		install -m 0755
>> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
>true
>> +	done
>> +
>> +	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
>> do
>> +		cd $demo/OGLES2/Build/LinuxGeneric
>> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
>> +		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
>>
>> -		for demo in
>> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
>> -			cd $demo/OGLES/Build/LinuxGeneric
>> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
>> X11BUILD=$X11BUILD
>> -			rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
>> -
>> -			if [ $X11BUILD -eq 1 ] ; then
>> -				install -m 0755
>> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
>true
>> -				sed -e s:NAME:$(basename $demo): \
>> -				    -e
>> s:EXEC:${bindir}/SGX/demos/X11/$(basename
>> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
>> -				    ${WORKDIR}/sample.desktop >
>> ${WORKDIR}/$(basename $demo).desktop
>> -			else
>> -				install -m 0755
>> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
>true
>> -			fi
>> -		done
>> -
>> -		for demo in
>> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
>> -			cd $demo/OGLES2/Build/LinuxGeneric
>> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
>> X11BUILD=$X11BUILD
>> -			rm -f
>> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
>> -
>> -			if [ $X11BUILD -eq 1 ] ; then
>> -				install -m 0755
>> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
>true
>> -				sed -e s:NAME:$(basename $demo): \
>> -				    -e
>> s:EXEC:${bindir}/SGX/demos/X11/$(basename
>> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
>> -				    ${WORKDIR}/sample.desktop >
>> ${WORKDIR}/$(basename $demo).desktop
>> -			else
>> -				install -m 0755
>> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
>true
>> -			fi
>> -		done
>> +		install -m 0755
>> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
>true
>>  	done
>>
>>  	find ${S} -name "*_org" -delete
>>
>>  	# Build OGLES2 Trainingcourses
>> -	for X11BUILD in 0 1 ; do
>> -		# Don't rebuild training courses with X11 support for
>> a non X11 distro
>> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
>> then
>> -			continue
>> +	for training in
>> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
>> +		if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
>> ] ; then
>> +			cd $training/OGLES2/Build/LinuxGeneric
>>  		fi
>>
>> -		for training in
>> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
>> -			if [ -e
>> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
>> -				cd $training/OGLES2/Build/LinuxGeneric
>> -			fi
>> -
>> -			if [ -e
>> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
>> -				cd $training/OGLES2/Build/${PLATFORM}
>> -			fi
>> +		if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
>> ; then
>> +			cd $training/OGLES2/Build/${PLATFORM}
>> +		fi
>>
>> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
>> X11BUILD=$X11BUILD
>> -			rm -f
>> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
>> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
>> +		rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
>>
>> -			if [ $X11BUILD -eq 1 ] ; then
>> -				install -m 0755
>> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
>> ${S}/trainingcourses/x11 || true
>> -			else
>> -				install -m 0755
>> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
>> ${S}/trainingcourses/raw || true
>> -			fi
>> -		done
>> +		install -m 0755
>> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
>> ${S}/trainingcourses/raw || true
>>  	done
>>
>> +
>>  }
>>
>>  do_install () {
>>  	install -d ${D}${libdir}
>>  	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
>> + 	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
>> + 	rm ${D}${libdir}/libsrv_um_dri.so*
>> + 	rm ${D}${libdir}/pvr_drv.so*
>>  	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
>>
>>  	install -d ${D}${bindir}/
>>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
>>  	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
>>  	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
>>
>> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
>> -		install -m 0755 ${BINLOCATION}/xgles1test1
>> ${D}${bindir}/
>> -		install -m 0755
>> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
>> ${D}${bindir}/|| true
>> -		cp -pPR
>>
>${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
>> b/*X11WS* ${D}${libdir} || true
>> -	fi
>> -
>>  	install -d ${D}${includedir}
>>  	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
>>  	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -
>211,13
>> +166,12  <at>  <at>  do_install () {
>>
>>  	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
>> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
>> sgx_render_flip_test"
>>  	raw_prog="gles1test1 gles2test1 ovg_unit_test"
>> -	x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
>> xovg_unit_test"
>>
>>  	for esrev in 2 3 5 6 8 ; do
>>  		ESLOCATION=$(eval echo $(echo
>> \$\{ES${esrev}LOCATION\}))
>>  		if [ -e ${ESLOCATION} ] ; then
>>  			cp -pPR ${ESLOCATION}/lib*${IMGPV}
>${ESLOCATION}/pvr_drv.so
>> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
>> -			for esprog in $shared_prog $raw_prog
>> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;
>do
>> +			for esprog in $shared_prog $raw_prog ; do
>>  				install -m 0755 ${ESLOCATION}/$esprog
>${D}${bindir}/ES${esrev}.0/
>> 2>/dev/null || true
>>  			done
>>  		fi
>>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
>>
>>  	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
>> ${D}${bindir}/pdsasm -f || true
>>
>> -	install -d ${D}${prefix}/share/applications
>> -	cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
>> -	rm ${D}${prefix}/share/applications/sample.desktop
>> -
>> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
>> -		install -d ${D}${bindir}/SGX/demos/X11/
>> -		install -m 0755 ${S}/demos/x11/*
>> ${D}${bindir}/SGX/demos/X11/
>> -		install -d ${D}${bindir}/SGX/trainingcourses/X11
>> 2>/dev/null || true
>> -		install -m 0755 ${S}/trainingcourses/x11/*
>> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
>> -	fi
>> -
>>  	install -d ${D}${bindir}/SGX/demos/Raw/
>>  	install -m 0755 ${S}/demos/raw/*
>> ${D}${bindir}/SGX/demos/Raw/
>>  	install -d ${D}${bindir}/SGX/trainingcourses/Raw
>> 2>/dev/null || true
>>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
>>
>>  }
>>
>> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
>> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"
>,"", d)}
>> \
>> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
>> tests"
>> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
>> tests"
>>  # Package the base libraries per silicon revision  PACKAGES =+
>> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
>>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
>> ${PN}-es8"
>>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
>> libIMGegl.so libsrv_um.so libOpenVG.so li
>>
>>
>>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
>> ${PN}-linuxfbwsegl"
>> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
>> x11wsegl ${PN}-driwsegl" ,"", d)}"
>> +
>>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
>>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
>>  FILES_${PN}-frontwsegl =
>"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
>>  FILES_${PN}-linuxfbwsegl =
>> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
>> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
>> ${bindir}/x* ${bindir}/*x"
>> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
>> ${libdir}/libsrv_um_dri*"
>>
>>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
>> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
>> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
>> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
>> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
>> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
>> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-
>linuxfbwsegl- es8"
>>
>> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
>> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
>> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
>> driwsegl-es6 ${PN}-driwsegl-es8 "
>> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
>> 'x11',"${X11_SEGL}" ,"", d)}"
>>  FILES_${PN}-blitwsegl-es2 =
>> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
>>  FILES_${PN}-blitwsegl-es3 =
>> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
>>  FILES_${PN}-blitwsegl-es5 =
>> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
>>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =
>> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
>>  FILES_${PN}-linuxfbwsegl-es8 =
>> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
>>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2
>${PN}-
>> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
>> ${PN}-linuxfbwsegl-es8"
>>
>> -FILES_${PN}-x11wsegl-es2 =
>> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
>> ${bindir}/ES2*/*x"
>> -FILES_${PN}-x11wsegl-es3 =
>> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
>> ${bindir}/ES3*/*x"
>> -FILES_${PN}-x11wsegl-es5 =
>> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
>> ${bindir}/ES5*/*x"
>> -FILES_${PN}-x11wsegl-es6 =
>> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
>> ${bindir}/ES6*/*x"
>> -FILES_${PN}-x11wsegl-es8 =
>> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
>> ${bindir}/ES8*/*x"
>> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
>> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
>> x11wsegl-es8"
>> -
>> -FILES_${PN}-driwsegl-es2 =
>> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
>> ${libdir}/ES2*/libsrv_um_dri*"
>> -FILES_${PN}-driwsegl-es3 =
>> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
>> ${libdir}/ES3*/libsrv_um_dri*"
>> -FILES_${PN}-driwsegl-es5 =
>> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
>> ${libdir}/ES5*/libsrv_um_dri*"
>> -FILES_${PN}-driwsegl-es6 =
>> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
>> ${libdir}/ES6*/libsrv_um_dri*"
>> -FILES_${PN}-driwsegl-es8 =
>> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
>> ${libdir}/ES8*/libsrv_um_dri*"
>> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
>> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
>> driwsegl-es8"
>> -
>>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
>>
>>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
>${bindir}/${PVR_INIT}
>> ${bindir}/cputype ${bindir}/*"
>>
>> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
>>  FILES_${PN}-tests = "${bindir}/*test*"
>>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
>>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at> 
>> -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
>> ${bindir}/.debug/* \
>>  	"
>>
>>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
>> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
>> ${prefix}/share/applications "
>> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
>>
>>  FILES_${PN}-rawtrainingcourses =
>> "${bindir}/SGX/trainingcourses/Raw/*"
>> -FILES_${PN}-x11trainingcourses =
>> "${bindir}/SGX/trainingcourses/X11/*"
>> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
>>
>>  # The libs need the kernel-modules
>>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
>>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so
>staticdev"
>>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
>>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
>>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
>> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
>>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
>>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
>>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
>>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
>"ldflags"
>>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
>>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
>>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
>> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
>> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
>>  INSANE_SKIP_${PN}-tests = "ldflags"
>> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
>>
>>  # Quality control is really poor on these SDKs, so hack around
>the
>> latest madness:
>>  FILES_${PN} += "${libdir}/*.so "
>>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
>> 0 1 6 ."
>>  # Append to update-rc.d postinst
>>  pkg_postinst_${PN}_append() {
>>  rm -f $D${sysconfdir}/powervr-esrev
>> -
>> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
>> -	ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
>> -	ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
>> -fi
>> -
>>  }
>>
>>  pkg_postinst_${PN}-blitwsegl() {
>>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {  rm -f
>> $D${sysconfdir}/powervr-esrev  }
>>
>> -pkg_postinst_${PN}-x11wsegl() {
>> -rm -f $D${sysconfdir}/powervr-esrev
>> -
>> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo
>> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
>> $D${sysconfdir}/powervr.ini -}
>> -
>> -pkg_postinst_${PN}-driwsegl() {
>> -rm -f $D${sysconfdir}/powervr-esrev
>> -}
>> -
>> diff --git a/recipes-graphics/libgles/libgles-
>omap3_4.09.00.01.bb
>> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
>> index 7c6f231..165a406 100644
>> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
>> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
>>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
>>  SRC_URI = "http://software-
>>
>dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
>> }/exports/${BINFILE} \
>>             file://cputype \
>>             file://rc.pvr \
>> -           file://rc_dri.pvr \
>> -           file://sample.desktop \
>>             file://99-bufferclass.rules  \  "
>>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
>>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
>> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
>>
>>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
>>
>> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
>> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
>d)}"
>> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
>>
>> -do_configure_append() {
>> -
>> -    # Change PVR server's user mode library to point to DRI
>> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
>> -    if [ "$drifile" != "" ]
>> -    then
>> -        dir=$(dirname ${drifile})
>> -        if [ "$SUPPORT_XORG" = "1" ]
>> -        then
>> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
>> -        else
>> -            rm -rf ${dir}/libsrv_um_dri.so
>> -        fi
>> -    fi
>> -
>> -    done
>> -}
>> -
>> -do_install_append() {
>> -
>> -    # In this version of the graphics SDK the following
>> directories do not exist:
>> -    #
>> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
>> (doesn't exist)
>> -    #
>>
>/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
>> s.h (doesn't exist)
>> -    # Therefore, need to copy these files manually at the only
>> location that they do exist
>> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
>> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
>> -
>> -    rm ${D}${sysconfdir}/init.d/pvr-init
>> -
>> -    if [ "$SUPPORT_XORG" = "1" ]; then
>> -        cp -pP ${WORKDIR}/rc_dri.pvr
>> ${D}${sysconfdir}/init.d/pvr-init
>> -    else
>> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
>> init
>> -    fi
>> -
>> -}
>> -
>> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
>> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
>> --
>> 1.7.1
>>
>> _______________________________________________
>> meta-ti mailing list
>> meta-ti@...
>> https://lists.yoctoproject.org/listinfo/meta-ti
Denys Dmytriyenko | 14 May 19:23 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

On Fri, May 10, 2013 at 01:27:09PM +0000, Maupin, Chase wrote:
> 
> >-----Original Message-----
> >From: Sundareson, Prabindh
> >Sent: Friday, May 10, 2013 4:17 AM
> >To: Maupin, Chase; meta-ti@...
> >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> >related build and packaging
> >
> >Chase, thanks for the review,
> >
> >1) Ok, I will add it. By "later recipe", you mean the separated
> >x11 recipe, right ?
> 
> Yes sir
> 
> >
> >2) Good point - I am ok to leave the old .inc and create a new one
> >with the changes starting from 4.09 then. Is this ok ?
> 
> I'm OK with the approach.  Denys, any concern here?

Sounds good - there are still some users of 4.08 out there...

> >regards,
> >Prabu
> >
> >
> >-----Original Message-----
> >From: Maupin, Chase
> >Sent: Wednesday, May 08, 2013 6:48 PM
> >To: Sundareson, Prabindh; meta-ti@...
> >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> >related build and packaging
> >
> >Prabu,
> >
> >Overall nice job.  A couple of things I noticed.
> >
> >1. You removed the sample.desktop file but did not put it back in
> >a later recipe.
> >2. You modified the common .inc file and then added the X11 pieces
> >back for 4.09.00.01.  This would break people using the older
> >recipes though.  So would it perhaps be a good idea to leave the
> >.inc alone and then create a new include file for newer recipe
> >that do this split going forward?  Or would it be simpler to
> >provide the X11 package for the older versions as well?  This is
> >just a thought and I'm hoping others will chime in here.
> >
> >Thanks for the patches, it is really good to see this work being
> >done :)
> >
> >> -----Original Message-----
> >> From: meta-ti-bounces@... [mailto:meta-ti-
> >> bounces@...] On Behalf Of Sundareson, Prabindh
> >> Sent: Thursday, May 02, 2013 8:39 AM
> >> To: meta-ti@...
> >> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> >related
> >> build and packaging
> >>
> >> The SGX530 driver for X11 is only buildable and testable
> >standalone
> >> with the pre-built X11 package provided with the Graphics SDK.
> >> This patch removes X11 build from the default recipe, to enable
> >moving
> >> X11 build to a separate recipe.
> >>
> >> This is part of a clean up of the Graphics recipe starting from
> >> 4.09.00.01 version of the Graphics SDK.
> >>
> >> Signed-off-by: Prabindh Sundareson <prabu@...>
> >> ---
> >>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++-
> >-
> >> --------------
> >>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +----
> >-
> >>  2 files changed, 30 insertions(+), 181 deletions(-)
> >>
> >> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> >> b/recipes-graphics/libgles/libgles-omap3.inc
> >> index 9a90c56..130dc49 100644
> >> --- a/recipes-graphics/libgles/libgles-omap3.inc
> >> +++ b/recipes-graphics/libgles/libgles-omap3.inc
> >>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
> >>
> >>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> >>
> >> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> >> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
> >> '${X11DEPENDS}', '', d)}"
> >> -
> >> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> >> 'x11', '1', '0', d)}"
> >>  PVR_INIT ?= "pvrsrvinit"
> >>
> >>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
> >>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
> >>  SRC_URI = "http://software-
> >>
> >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> >> }/exports/${BINFILE} \
> >>  		   file://cputype \
> >>  		   file://rc.pvr \
> >> -		   file://sample.desktop \
> >>  		   file://99-bufferclass.rules  \
> >>  "
> >>
> >>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
> >>  	export PLAT_CPP="${CXX}"
> >>  	export PLAR_AR="${AR}"
> >>
> >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> >> -		export X11ROOT="${STAGING_DIR_HOST}/usr"
> >> -		mkdir -p ${S}/demos/x11
> >> -		mkdir -p ${S}/trainingcourses/x11
> >> -	fi
> >> -
> >>  	mkdir -p ${S}/demos/raw
> >>  	mkdir -p ${S}/trainingcourses/raw
> >>
> >>  	# Rebuild demos
> >> -	for X11BUILD in 0 1 ; do
> >> -		# Don't rebuild demos with X11 support for a non X11
> >> distro
> >> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> >> then
> >> -			continue
> >> -		fi
> >> +	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> >> do
> >> +		cd $demo/OGLES/Build/LinuxGeneric
> >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> >> +		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> >> +
> >> +		install -m 0755
> >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> >true
> >> +	done
> >> +
> >> +	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> >> do
> >> +		cd $demo/OGLES2/Build/LinuxGeneric
> >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> >> +		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> >>
> >> -		for demo in
> >> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> >> -			cd $demo/OGLES/Build/LinuxGeneric
> >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> >> X11BUILD=$X11BUILD
> >> -			rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> >> -
> >> -			if [ $X11BUILD -eq 1 ] ; then
> >> -				install -m 0755
> >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> >true
> >> -				sed -e s:NAME:$(basename $demo): \
> >> -				    -e
> >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> >> -				    ${WORKDIR}/sample.desktop >
> >> ${WORKDIR}/$(basename $demo).desktop
> >> -			else
> >> -				install -m 0755
> >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> >true
> >> -			fi
> >> -		done
> >> -
> >> -		for demo in
> >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> >> -			cd $demo/OGLES2/Build/LinuxGeneric
> >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> >> X11BUILD=$X11BUILD
> >> -			rm -f
> >> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> >> -
> >> -			if [ $X11BUILD -eq 1 ] ; then
> >> -				install -m 0755
> >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> >true
> >> -				sed -e s:NAME:$(basename $demo): \
> >> -				    -e
> >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> >> -				    ${WORKDIR}/sample.desktop >
> >> ${WORKDIR}/$(basename $demo).desktop
> >> -			else
> >> -				install -m 0755
> >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> >true
> >> -			fi
> >> -		done
> >> +		install -m 0755
> >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> >true
> >>  	done
> >>
> >>  	find ${S} -name "*_org" -delete
> >>
> >>  	# Build OGLES2 Trainingcourses
> >> -	for X11BUILD in 0 1 ; do
> >> -		# Don't rebuild training courses with X11 support for
> >> a non X11 distro
> >> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> >> then
> >> -			continue
> >> +	for training in
> >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> >> +		if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> >> ] ; then
> >> +			cd $training/OGLES2/Build/LinuxGeneric
> >>  		fi
> >>
> >> -		for training in
> >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> >> -			if [ -e
> >> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> >> -				cd $training/OGLES2/Build/LinuxGeneric
> >> -			fi
> >> -
> >> -			if [ -e
> >> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> >> -				cd $training/OGLES2/Build/${PLATFORM}
> >> -			fi
> >> +		if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> >> ; then
> >> +			cd $training/OGLES2/Build/${PLATFORM}
> >> +		fi
> >>
> >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> >> X11BUILD=$X11BUILD
> >> -			rm -f
> >> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> >> +		rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> >>
> >> -			if [ $X11BUILD -eq 1 ] ; then
> >> -				install -m 0755
> >> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> >> ${S}/trainingcourses/x11 || true
> >> -			else
> >> -				install -m 0755
> >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> >> ${S}/trainingcourses/raw || true
> >> -			fi
> >> -		done
> >> +		install -m 0755
> >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> >> ${S}/trainingcourses/raw || true
> >>  	done
> >>
> >> +
> >>  }
> >>
> >>  do_install () {
> >>  	install -d ${D}${libdir}
> >>  	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> >> + 	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> >> + 	rm ${D}${libdir}/libsrv_um_dri.so*
> >> + 	rm ${D}${libdir}/pvr_drv.so*
> >>  	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> >>
> >>  	install -d ${D}${bindir}/
> >>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
> >>  	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
> >>  	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> >>
> >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> >> -		install -m 0755 ${BINLOCATION}/xgles1test1
> >> ${D}${bindir}/
> >> -		install -m 0755
> >> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> >> ${D}${bindir}/|| true
> >> -		cp -pPR
> >>
> >${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> >> b/*X11WS* ${D}${libdir} || true
> >> -	fi
> >> -
> >>  	install -d ${D}${includedir}
> >>  	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
> >>  	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -
> >211,13
> >> +166,12  <at>  <at>  do_install () {
> >>
> >>  	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
> >> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
> >> sgx_render_flip_test"
> >>  	raw_prog="gles1test1 gles2test1 ovg_unit_test"
> >> -	x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> >> xovg_unit_test"
> >>
> >>  	for esrev in 2 3 5 6 8 ; do
> >>  		ESLOCATION=$(eval echo $(echo
> >> \$\{ES${esrev}LOCATION\}))
> >>  		if [ -e ${ESLOCATION} ] ; then
> >>  			cp -pPR ${ESLOCATION}/lib*${IMGPV}
> >${ESLOCATION}/pvr_drv.so
> >> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
> >> -			for esprog in $shared_prog $raw_prog
> >> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;
> >do
> >> +			for esprog in $shared_prog $raw_prog ; do
> >>  				install -m 0755 ${ESLOCATION}/$esprog
> >${D}${bindir}/ES${esrev}.0/
> >> 2>/dev/null || true
> >>  			done
> >>  		fi
> >>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
> >>
> >>  	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
> >> ${D}${bindir}/pdsasm -f || true
> >>
> >> -	install -d ${D}${prefix}/share/applications
> >> -	cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> >> -	rm ${D}${prefix}/share/applications/sample.desktop
> >> -
> >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> >> -		install -d ${D}${bindir}/SGX/demos/X11/
> >> -		install -m 0755 ${S}/demos/x11/*
> >> ${D}${bindir}/SGX/demos/X11/
> >> -		install -d ${D}${bindir}/SGX/trainingcourses/X11
> >> 2>/dev/null || true
> >> -		install -m 0755 ${S}/trainingcourses/x11/*
> >> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> >> -	fi
> >> -
> >>  	install -d ${D}${bindir}/SGX/demos/Raw/
> >>  	install -m 0755 ${S}/demos/raw/*
> >> ${D}${bindir}/SGX/demos/Raw/
> >>  	install -d ${D}${bindir}/SGX/trainingcourses/Raw
> >> 2>/dev/null || true
> >>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
> >>
> >>  }
> >>
> >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> >> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"
> >,"", d)}
> >> \
> >> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> >> tests"
> >> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> >> tests"
> >>  # Package the base libraries per silicon revision  PACKAGES =+
> >> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
> >>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
> >> ${PN}-es8"
> >>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
> >> libIMGegl.so libsrv_um.so libOpenVG.so li
> >>
> >>
> >>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
> >> ${PN}-linuxfbwsegl"
> >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> >> x11wsegl ${PN}-driwsegl" ,"", d)}"
> >> +
> >>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
> >>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
> >>  FILES_${PN}-frontwsegl =
> >"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
> >>  FILES_${PN}-linuxfbwsegl =
> >> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> >> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> >> ${bindir}/x* ${bindir}/*x"
> >> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> >> ${libdir}/libsrv_um_dri*"
> >>
> >>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> >> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> >> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> >> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> >> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> >> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> >> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-
> >linuxfbwsegl- es8"
> >>
> >> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> >> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> >> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> >> driwsegl-es6 ${PN}-driwsegl-es8 "
> >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> >> 'x11',"${X11_SEGL}" ,"", d)}"
> >>  FILES_${PN}-blitwsegl-es2 =
> >> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
> >>  FILES_${PN}-blitwsegl-es3 =
> >> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
> >>  FILES_${PN}-blitwsegl-es5 =
> >> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
> >>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =
> >> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> >>  FILES_${PN}-linuxfbwsegl-es8 =
> >> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> >>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2
> >${PN}-
> >> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
> >> ${PN}-linuxfbwsegl-es8"
> >>
> >> -FILES_${PN}-x11wsegl-es2 =
> >> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
> >> ${bindir}/ES2*/*x"
> >> -FILES_${PN}-x11wsegl-es3 =
> >> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
> >> ${bindir}/ES3*/*x"
> >> -FILES_${PN}-x11wsegl-es5 =
> >> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
> >> ${bindir}/ES5*/*x"
> >> -FILES_${PN}-x11wsegl-es6 =
> >> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
> >> ${bindir}/ES6*/*x"
> >> -FILES_${PN}-x11wsegl-es8 =
> >> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
> >> ${bindir}/ES8*/*x"
> >> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> >> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
> >> x11wsegl-es8"
> >> -
> >> -FILES_${PN}-driwsegl-es2 =
> >> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> >> ${libdir}/ES2*/libsrv_um_dri*"
> >> -FILES_${PN}-driwsegl-es3 =
> >> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> >> ${libdir}/ES3*/libsrv_um_dri*"
> >> -FILES_${PN}-driwsegl-es5 =
> >> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> >> ${libdir}/ES5*/libsrv_um_dri*"
> >> -FILES_${PN}-driwsegl-es6 =
> >> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> >> ${libdir}/ES6*/libsrv_um_dri*"
> >> -FILES_${PN}-driwsegl-es8 =
> >> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> >> ${libdir}/ES8*/libsrv_um_dri*"
> >> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> >> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
> >> driwsegl-es8"
> >> -
> >>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> >>
> >>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
> >${bindir}/${PVR_INIT}
> >> ${bindir}/cputype ${bindir}/*"
> >>
> >> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
> >>  FILES_${PN}-tests = "${bindir}/*test*"
> >>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
> >>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at> 
> >> -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
> >> ${bindir}/.debug/* \
> >>  	"
> >>
> >>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> >> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
> >> ${prefix}/share/applications "
> >> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> >>
> >>  FILES_${PN}-rawtrainingcourses =
> >> "${bindir}/SGX/trainingcourses/Raw/*"
> >> -FILES_${PN}-x11trainingcourses =
> >> "${bindir}/SGX/trainingcourses/X11/*"
> >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> >>
> >>  # The libs need the kernel-modules
> >>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
> >>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so
> >staticdev"
> >>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
> >>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
> >>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> >> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
> >>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
> >>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
> >>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
> >>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
> >"ldflags"
> >>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
> >>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
> >>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> >> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> >> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
> >>  INSANE_SKIP_${PN}-tests = "ldflags"
> >> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> >>
> >>  # Quality control is really poor on these SDKs, so hack around
> >the
> >> latest madness:
> >>  FILES_${PN} += "${libdir}/*.so "
> >>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> >> 0 1 6 ."
> >>  # Append to update-rc.d postinst
> >>  pkg_postinst_${PN}_append() {
> >>  rm -f $D${sysconfdir}/powervr-esrev
> >> -
> >> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> >> -	ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> >> -	ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> >> -fi
> >> -
> >>  }
> >>
> >>  pkg_postinst_${PN}-blitwsegl() {
> >>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {  rm -f
> >> $D${sysconfdir}/powervr-esrev  }
> >>
> >> -pkg_postinst_${PN}-x11wsegl() {
> >> -rm -f $D${sysconfdir}/powervr-esrev
> >> -
> >> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo
> >> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
> >> $D${sysconfdir}/powervr.ini -}
> >> -
> >> -pkg_postinst_${PN}-driwsegl() {
> >> -rm -f $D${sysconfdir}/powervr-esrev
> >> -}
> >> -
> >> diff --git a/recipes-graphics/libgles/libgles-
> >omap3_4.09.00.01.bb
> >> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> >> index 7c6f231..165a406 100644
> >> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> >> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> >>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> >>  SRC_URI = "http://software-
> >>
> >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> >> }/exports/${BINFILE} \
> >>             file://cputype \
> >>             file://rc.pvr \
> >> -           file://rc_dri.pvr \
> >> -           file://sample.desktop \
> >>             file://99-bufferclass.rules  \  "
> >>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
> >>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
> >> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> >>
> >>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> >>
> >> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> >> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
> >d)}"
> >> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> >>
> >> -do_configure_append() {
> >> -
> >> -    # Change PVR server's user mode library to point to DRI
> >> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> >> -    if [ "$drifile" != "" ]
> >> -    then
> >> -        dir=$(dirname ${drifile})
> >> -        if [ "$SUPPORT_XORG" = "1" ]
> >> -        then
> >> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> >> -        else
> >> -            rm -rf ${dir}/libsrv_um_dri.so
> >> -        fi
> >> -    fi
> >> -
> >> -    done
> >> -}
> >> -
> >> -do_install_append() {
> >> -
> >> -    # In this version of the graphics SDK the following
> >> directories do not exist:
> >> -    #
> >> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> >> (doesn't exist)
> >> -    #
> >>
> >/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> >> s.h (doesn't exist)
> >> -    # Therefore, need to copy these files manually at the only
> >> location that they do exist
> >> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> >> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> >> -
> >> -    rm ${D}${sysconfdir}/init.d/pvr-init
> >> -
> >> -    if [ "$SUPPORT_XORG" = "1" ]; then
> >> -        cp -pP ${WORKDIR}/rc_dri.pvr
> >> ${D}${sysconfdir}/init.d/pvr-init
> >> -    else
> >> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> >> init
> >> -    fi
> >> -
> >> -}
> >> -
> >> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> >> --
> >> 1.7.1
> >>
> >> _______________________________________________
> >> meta-ti mailing list
> >> meta-ti@...
> >> https://lists.yoctoproject.org/listinfo/meta-ti
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
> 
Denys Dmytriyenko | 14 May 19:46 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Prabu,

I don't think I have any more comments, than for 01, 06 and 08. Will you be 
re-submitting the entire set later? I'll go ahead and remove this set from my 
queue as it will be "superseded". Thanks!

-- 
Denys

On Tue, May 14, 2013 at 01:23:16PM -0400, Denys Dmytriyenko wrote:
> On Fri, May 10, 2013 at 01:27:09PM +0000, Maupin, Chase wrote:
> > 
> > >-----Original Message-----
> > >From: Sundareson, Prabindh
> > >Sent: Friday, May 10, 2013 4:17 AM
> > >To: Maupin, Chase; meta-ti@...
> > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related build and packaging
> > >
> > >Chase, thanks for the review,
> > >
> > >1) Ok, I will add it. By "later recipe", you mean the separated
> > >x11 recipe, right ?
> > 
> > Yes sir
> > 
> > >
> > >2) Good point - I am ok to leave the old .inc and create a new one
> > >with the changes starting from 4.09 then. Is this ok ?
> > 
> > I'm OK with the approach.  Denys, any concern here?
> 
> Sounds good - there are still some users of 4.08 out there...
> 
> 
> > >regards,
> > >Prabu
> > >
> > >
> > >-----Original Message-----
> > >From: Maupin, Chase
> > >Sent: Wednesday, May 08, 2013 6:48 PM
> > >To: Sundareson, Prabindh; meta-ti@...
> > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related build and packaging
> > >
> > >Prabu,
> > >
> > >Overall nice job.  A couple of things I noticed.
> > >
> > >1. You removed the sample.desktop file but did not put it back in
> > >a later recipe.
> > >2. You modified the common .inc file and then added the X11 pieces
> > >back for 4.09.00.01.  This would break people using the older
> > >recipes though.  So would it perhaps be a good idea to leave the
> > >.inc alone and then create a new include file for newer recipe
> > >that do this split going forward?  Or would it be simpler to
> > >provide the X11 package for the older versions as well?  This is
> > >just a thought and I'm hoping others will chime in here.
> > >
> > >Thanks for the patches, it is really good to see this work being
> > >done :)
> > >
> > >> -----Original Message-----
> > >> From: meta-ti-bounces@... [mailto:meta-ti-
> > >> bounces@...] On Behalf Of Sundareson, Prabindh
> > >> Sent: Thursday, May 02, 2013 8:39 AM
> > >> To: meta-ti@...
> > >> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related
> > >> build and packaging
> > >>
> > >> The SGX530 driver for X11 is only buildable and testable
> > >standalone
> > >> with the pre-built X11 package provided with the Graphics SDK.
> > >> This patch removes X11 build from the default recipe, to enable
> > >moving
> > >> X11 build to a separate recipe.
> > >>
> > >> This is part of a clean up of the Graphics recipe starting from
> > >> 4.09.00.01 version of the Graphics SDK.
> > >>
> > >> Signed-off-by: Prabindh Sundareson <prabu@...>
> > >> ---
> > >>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++-
> > >-
> > >> --------------
> > >>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +----
> > >-
> > >>  2 files changed, 30 insertions(+), 181 deletions(-)
> > >>
> > >> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> > >> b/recipes-graphics/libgles/libgles-omap3.inc
> > >> index 9a90c56..130dc49 100644
> > >> --- a/recipes-graphics/libgles/libgles-omap3.inc
> > >> +++ b/recipes-graphics/libgles/libgles-omap3.inc
> > >>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
> > >>
> > >>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> > >>
> > >> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> > >> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
> > >> '${X11DEPENDS}', '', d)}"
> > >> -
> > >> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11', '1', '0', d)}"
> > >>  PVR_INIT ?= "pvrsrvinit"
> > >>
> > >>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
> > >>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
> > >>  SRC_URI = "http://software-
> > >>
> > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > >> }/exports/${BINFILE} \
> > >>  		   file://cputype \
> > >>  		   file://rc.pvr \
> > >> -		   file://sample.desktop \
> > >>  		   file://99-bufferclass.rules  \
> > >>  "
> > >>
> > >>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
> > >>  	export PLAT_CPP="${CXX}"
> > >>  	export PLAR_AR="${AR}"
> > >>
> > >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -		export X11ROOT="${STAGING_DIR_HOST}/usr"
> > >> -		mkdir -p ${S}/demos/x11
> > >> -		mkdir -p ${S}/trainingcourses/x11
> > >> -	fi
> > >> -
> > >>  	mkdir -p ${S}/demos/raw
> > >>  	mkdir -p ${S}/trainingcourses/raw
> > >>
> > >>  	# Rebuild demos
> > >> -	for X11BUILD in 0 1 ; do
> > >> -		# Don't rebuild demos with X11 support for a non X11
> > >> distro
> > >> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > >> then
> > >> -			continue
> > >> -		fi
> > >> +	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> > >> do
> > >> +		cd $demo/OGLES/Build/LinuxGeneric
> > >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > >> +
> > >> +		install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> +	done
> > >> +
> > >> +	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> > >> do
> > >> +		cd $demo/OGLES2/Build/LinuxGeneric
> > >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >>
> > >> -		for demo in
> > >> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> > >> -			cd $demo/OGLES/Build/LinuxGeneric
> > >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -			rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > >> -
> > >> -			if [ $X11BUILD -eq 1 ] ; then
> > >> -				install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > >true
> > >> -				sed -e s:NAME:$(basename $demo): \
> > >> -				    -e
> > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> > >> -				    ${WORKDIR}/sample.desktop >
> > >> ${WORKDIR}/$(basename $demo).desktop
> > >> -			else
> > >> -				install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> -			fi
> > >> -		done
> > >> -
> > >> -		for demo in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> > >> -			cd $demo/OGLES2/Build/LinuxGeneric
> > >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -			rm -f
> > >> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >> -
> > >> -			if [ $X11BUILD -eq 1 ] ; then
> > >> -				install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > >true
> > >> -				sed -e s:NAME:$(basename $demo): \
> > >> -				    -e
> > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> > >> -				    ${WORKDIR}/sample.desktop >
> > >> ${WORKDIR}/$(basename $demo).desktop
> > >> -			else
> > >> -				install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> -			fi
> > >> -		done
> > >> +		install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >>  	done
> > >>
> > >>  	find ${S} -name "*_org" -delete
> > >>
> > >>  	# Build OGLES2 Trainingcourses
> > >> -	for X11BUILD in 0 1 ; do
> > >> -		# Don't rebuild training courses with X11 support for
> > >> a non X11 distro
> > >> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > >> then
> > >> -			continue
> > >> +	for training in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > >> +		if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> > >> ] ; then
> > >> +			cd $training/OGLES2/Build/LinuxGeneric
> > >>  		fi
> > >>
> > >> -		for training in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > >> -			if [ -e
> > >> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> > >> -				cd $training/OGLES2/Build/LinuxGeneric
> > >> -			fi
> > >> -
> > >> -			if [ -e
> > >> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> > >> -				cd $training/OGLES2/Build/${PLATFORM}
> > >> -			fi
> > >> +		if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> > >> ; then
> > >> +			cd $training/OGLES2/Build/${PLATFORM}
> > >> +		fi
> > >>
> > >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -			rm -f
> > >> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +		rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >>
> > >> -			if [ $X11BUILD -eq 1 ] ; then
> > >> -				install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> > >> ${S}/trainingcourses/x11 || true
> > >> -			else
> > >> -				install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > >> ${S}/trainingcourses/raw || true
> > >> -			fi
> > >> -		done
> > >> +		install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > >> ${S}/trainingcourses/raw || true
> > >>  	done
> > >>
> > >> +
> > >>  }
> > >>
> > >>  do_install () {
> > >>  	install -d ${D}${libdir}
> > >>  	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> > >> + 	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > >> + 	rm ${D}${libdir}/libsrv_um_dri.so*
> > >> + 	rm ${D}${libdir}/pvr_drv.so*
> > >>  	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> > >>
> > >>  	install -d ${D}${bindir}/
> > >>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
> > >>  	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
> > >>  	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> > >>
> > >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -		install -m 0755 ${BINLOCATION}/xgles1test1
> > >> ${D}${bindir}/
> > >> -		install -m 0755
> > >> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> > >> ${D}${bindir}/|| true
> > >> -		cp -pPR
> > >>
> > >${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> > >> b/*X11WS* ${D}${libdir} || true
> > >> -	fi
> > >> -
> > >>  	install -d ${D}${includedir}
> > >>  	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
> > >>  	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -
> > >211,13
> > >> +166,12  <at>  <at>  do_install () {
> > >>
> > >>  	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
> > >> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
> > >> sgx_render_flip_test"
> > >>  	raw_prog="gles1test1 gles2test1 ovg_unit_test"
> > >> -	x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> > >> xovg_unit_test"
> > >>
> > >>  	for esrev in 2 3 5 6 8 ; do
> > >>  		ESLOCATION=$(eval echo $(echo
> > >> \$\{ES${esrev}LOCATION\}))
> > >>  		if [ -e ${ESLOCATION} ] ; then
> > >>  			cp -pPR ${ESLOCATION}/lib*${IMGPV}
> > >${ESLOCATION}/pvr_drv.so
> > >> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
> > >> -			for esprog in $shared_prog $raw_prog
> > >> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;
> > >do
> > >> +			for esprog in $shared_prog $raw_prog ; do
> > >>  				install -m 0755 ${ESLOCATION}/$esprog
> > >${D}${bindir}/ES${esrev}.0/
> > >> 2>/dev/null || true
> > >>  			done
> > >>  		fi
> > >>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
> > >>
> > >>  	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
> > >> ${D}${bindir}/pdsasm -f || true
> > >>
> > >> -	install -d ${D}${prefix}/share/applications
> > >> -	cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> > >> -	rm ${D}${prefix}/share/applications/sample.desktop
> > >> -
> > >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -		install -d ${D}${bindir}/SGX/demos/X11/
> > >> -		install -m 0755 ${S}/demos/x11/*
> > >> ${D}${bindir}/SGX/demos/X11/
> > >> -		install -d ${D}${bindir}/SGX/trainingcourses/X11
> > >> 2>/dev/null || true
> > >> -		install -m 0755 ${S}/trainingcourses/x11/*
> > >> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> > >> -	fi
> > >> -
> > >>  	install -d ${D}${bindir}/SGX/demos/Raw/
> > >>  	install -m 0755 ${S}/demos/raw/*
> > >> ${D}${bindir}/SGX/demos/Raw/
> > >>  	install -d ${D}${bindir}/SGX/trainingcourses/Raw
> > >> 2>/dev/null || true
> > >>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
> > >>
> > >>  }
> > >>
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > >> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"
> > >,"", d)}
> > >> \
> > >> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > >> tests"
> > >> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > >> tests"
> > >>  # Package the base libraries per silicon revision  PACKAGES =+
> > >> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
> > >>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
> > >> ${PN}-es8"
> > >>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
> > >> libIMGegl.so libsrv_um.so libOpenVG.so li
> > >>
> > >>
> > >>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
> > >> ${PN}-linuxfbwsegl"
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > >> x11wsegl ${PN}-driwsegl" ,"", d)}"
> > >> +
> > >>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
> > >>  FILES_${PN}-frontwsegl =
> > >"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
> > >>  FILES_${PN}-linuxfbwsegl =
> > >> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> > >> ${bindir}/x* ${bindir}/*x"
> > >> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > >> ${libdir}/libsrv_um_dri*"
> > >>
> > >>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> > >> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> > >> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> > >> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> > >> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> > >> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> > >> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-
> > >linuxfbwsegl- es8"
> > >>
> > >> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> > >> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> > >> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> > >> driwsegl-es6 ${PN}-driwsegl-es8 "
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11',"${X11_SEGL}" ,"", d)}"
> > >>  FILES_${PN}-blitwsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-blitwsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-blitwsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >>  FILES_${PN}-linuxfbwsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2
> > >${PN}-
> > >> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
> > >> ${PN}-linuxfbwsegl-es8"
> > >>
> > >> -FILES_${PN}-x11wsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
> > >> ${bindir}/ES2*/*x"
> > >> -FILES_${PN}-x11wsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
> > >> ${bindir}/ES3*/*x"
> > >> -FILES_${PN}-x11wsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
> > >> ${bindir}/ES5*/*x"
> > >> -FILES_${PN}-x11wsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
> > >> ${bindir}/ES6*/*x"
> > >> -FILES_${PN}-x11wsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
> > >> ${bindir}/ES8*/*x"
> > >> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> > >> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
> > >> x11wsegl-es8"
> > >> -
> > >> -FILES_${PN}-driwsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES2*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES3*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES5*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES6*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES8*/libsrv_um_dri*"
> > >> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> > >> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
> > >> driwsegl-es8"
> > >> -
> > >>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> > >>
> > >>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
> > >${bindir}/${PVR_INIT}
> > >> ${bindir}/cputype ${bindir}/*"
> > >>
> > >> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
> > >>  FILES_${PN}-tests = "${bindir}/*test*"
> > >>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
> > >>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at> 
> > >> -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
> > >> ${bindir}/.debug/* \
> > >>  	"
> > >>
> > >>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> > >> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
> > >> ${prefix}/share/applications "
> > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> > >>
> > >>  FILES_${PN}-rawtrainingcourses =
> > >> "${bindir}/SGX/trainingcourses/Raw/*"
> > >> -FILES_${PN}-x11trainingcourses =
> > >> "${bindir}/SGX/trainingcourses/X11/*"
> > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> > >>
> > >>  # The libs need the kernel-modules
> > >>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
> > >>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so
> > >staticdev"
> > >>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
> > >>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
> > >>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> > >> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
> > >>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
> > >>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
> > >>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
> > >>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
> > >"ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> > >> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
> > >>  INSANE_SKIP_${PN}-tests = "ldflags"
> > >> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> > >>
> > >>  # Quality control is really poor on these SDKs, so hack around
> > >the
> > >> latest madness:
> > >>  FILES_${PN} += "${libdir}/*.so "
> > >>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> > >> 0 1 6 ."
> > >>  # Append to update-rc.d postinst
> > >>  pkg_postinst_${PN}_append() {
> > >>  rm -f $D${sysconfdir}/powervr-esrev
> > >> -
> > >> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -	ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> > >> -	ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> > >> -fi
> > >> -
> > >>  }
> > >>
> > >>  pkg_postinst_${PN}-blitwsegl() {
> > >>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {  rm -f
> > >> $D${sysconfdir}/powervr-esrev  }
> > >>
> > >> -pkg_postinst_${PN}-x11wsegl() {
> > >> -rm -f $D${sysconfdir}/powervr-esrev
> > >> -
> > >> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo
> > >> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
> > >> $D${sysconfdir}/powervr.ini -}
> > >> -
> > >> -pkg_postinst_${PN}-driwsegl() {
> > >> -rm -f $D${sysconfdir}/powervr-esrev
> > >> -}
> > >> -
> > >> diff --git a/recipes-graphics/libgles/libgles-
> > >omap3_4.09.00.01.bb
> > >> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> index 7c6f231..165a406 100644
> > >> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> > >>  SRC_URI = "http://software-
> > >>
> > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > >> }/exports/${BINFILE} \
> > >>             file://cputype \
> > >>             file://rc.pvr \
> > >> -           file://rc_dri.pvr \
> > >> -           file://sample.desktop \
> > >>             file://99-bufferclass.rules  \  "
> > >>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
> > >>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
> > >> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> > >>
> > >>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> > >>
> > >> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
> > >d)}"
> > >> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> > >>
> > >> -do_configure_append() {
> > >> -
> > >> -    # Change PVR server's user mode library to point to DRI
> > >> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> > >> -    if [ "$drifile" != "" ]
> > >> -    then
> > >> -        dir=$(dirname ${drifile})
> > >> -        if [ "$SUPPORT_XORG" = "1" ]
> > >> -        then
> > >> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> > >> -        else
> > >> -            rm -rf ${dir}/libsrv_um_dri.so
> > >> -        fi
> > >> -    fi
> > >> -
> > >> -    done
> > >> -}
> > >> -
> > >> -do_install_append() {
> > >> -
> > >> -    # In this version of the graphics SDK the following
> > >> directories do not exist:
> > >> -    #
> > >> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> > >> (doesn't exist)
> > >> -    #
> > >>
> > >/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> > >> s.h (doesn't exist)
> > >> -    # Therefore, need to copy these files manually at the only
> > >> location that they do exist
> > >> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> > >> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> > >> -
> > >> -    rm ${D}${sysconfdir}/init.d/pvr-init
> > >> -
> > >> -    if [ "$SUPPORT_XORG" = "1" ]; then
> > >> -        cp -pP ${WORKDIR}/rc_dri.pvr
> > >> ${D}${sysconfdir}/init.d/pvr-init
> > >> -    else
> > >> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> > >> init
> > >> -    fi
> > >> -
> > >> -}
> > >> -
> > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> > >> --
> > >> 1.7.1
> > >>
> > >> _______________________________________________
> > >> meta-ti mailing list
> > >> meta-ti@...
> > >> https://lists.yoctoproject.org/listinfo/meta-ti
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@...
> > https://lists.yoctoproject.org/listinfo/meta-ti
> > 
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
Sundareson, Prabindh | 15 May 04:48 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Denys,

Thanks for the review. I will resubmit the patch-set for review - with below comments implemented. 

regards,
Prabu

-----Original Message-----
From: meta-ti-bounces@...
[mailto:meta-ti-bounces@...] On Behalf Of Dmytriyenko, Denys
Sent: Tuesday, May 14, 2013 11:17 PM
To: Maupin, Chase
Cc: meta-ti@...
Subject: Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Prabu,

I don't think I have any more comments, than for 01, 06 and 08. Will you be re-submitting the entire set later?
I'll go ahead and remove this set from my queue as it will be "superseded". Thanks!

--
Denys

On Tue, May 14, 2013 at 01:23:16PM -0400, Denys Dmytriyenko wrote:
> On Fri, May 10, 2013 at 01:27:09PM +0000, Maupin, Chase wrote:
> > 
> > >-----Original Message-----
> > >From: Sundareson, Prabindh
> > >Sent: Friday, May 10, 2013 4:17 AM
> > >To: Maupin, Chase; meta-ti@...
> > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related build and packaging
> > >
> > >Chase, thanks for the review,
> > >
> > >1) Ok, I will add it. By "later recipe", you mean the separated
> > >x11 recipe, right ?
> > 
> > Yes sir
> > 
> > >
> > >2) Good point - I am ok to leave the old .inc and create a new one
> > >with the changes starting from 4.09 then. Is this ok ?
> > 
> > I'm OK with the approach.  Denys, any concern here?
> 
> Sounds good - there are still some users of 4.08 out there...
> 
> 
> > >regards,
> > >Prabu
> > >
> > >
> > >-----Original Message-----
> > >From: Maupin, Chase
> > >Sent: Wednesday, May 08, 2013 6:48 PM
> > >To: Sundareson, Prabindh; meta-ti@...
> > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related build and packaging
> > >
> > >Prabu,
> > >
> > >Overall nice job.  A couple of things I noticed.
> > >
> > >1. You removed the sample.desktop file but did not put it back in
> > >a later recipe.
> > >2. You modified the common .inc file and then added the X11 pieces
> > >back for 4.09.00.01.  This would break people using the older
> > >recipes though.  So would it perhaps be a good idea to leave the
> > >.inc alone and then create a new include file for newer recipe
> > >that do this split going forward?  Or would it be simpler to
> > >provide the X11 package for the older versions as well?  This is
> > >just a thought and I'm hoping others will chime in here.
> > >
> > >Thanks for the patches, it is really good to see this work being
> > >done :)
> > >
> > >> -----Original Message-----
> > >> From: meta-ti-bounces@... [mailto:meta-ti-
> > >> bounces@...] On Behalf Of Sundareson, Prabindh
> > >> Sent: Thursday, May 02, 2013 8:39 AM
> > >> To: meta-ti@...
> > >> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related
> > >> build and packaging
> > >>
> > >> The SGX530 driver for X11 is only buildable and testable
> > >standalone
> > >> with the pre-built X11 package provided with the Graphics SDK.
> > >> This patch removes X11 build from the default recipe, to enable
> > >moving
> > >> X11 build to a separate recipe.
> > >>
> > >> This is part of a clean up of the Graphics recipe starting from
> > >> 4.09.00.01 version of the Graphics SDK.
> > >>
> > >> Signed-off-by: Prabindh Sundareson <prabu@...>
> > >> ---
> > >>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++-
> > >-
> > >> --------------
> > >>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +----
> > >-
> > >>  2 files changed, 30 insertions(+), 181 deletions(-)
> > >>
> > >> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> > >> b/recipes-graphics/libgles/libgles-omap3.inc
> > >> index 9a90c56..130dc49 100644
> > >> --- a/recipes-graphics/libgles/libgles-omap3.inc
> > >> +++ b/recipes-graphics/libgles/libgles-omap3.inc
> > >>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
> > >>
> > >>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> > >>
> > >> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> > >> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
> > >> '${X11DEPENDS}', '', d)}"
> > >> -
> > >> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11', '1', '0', d)}"
> > >>  PVR_INIT ?= "pvrsrvinit"
> > >>
> > >>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
> > >>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
> > >>  SRC_URI = "http://software-
> > >>
> > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > >> }/exports/${BINFILE} \
> > >>  		   file://cputype \
> > >>  		   file://rc.pvr \
> > >> -		   file://sample.desktop \
> > >>  		   file://99-bufferclass.rules  \
> > >>  "
> > >>
> > >>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
> > >>  	export PLAT_CPP="${CXX}"
> > >>  	export PLAR_AR="${AR}"
> > >>
> > >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -		export X11ROOT="${STAGING_DIR_HOST}/usr"
> > >> -		mkdir -p ${S}/demos/x11
> > >> -		mkdir -p ${S}/trainingcourses/x11
> > >> -	fi
> > >> -
> > >>  	mkdir -p ${S}/demos/raw
> > >>  	mkdir -p ${S}/trainingcourses/raw
> > >>
> > >>  	# Rebuild demos
> > >> -	for X11BUILD in 0 1 ; do
> > >> -		# Don't rebuild demos with X11 support for a non X11
> > >> distro
> > >> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > >> then
> > >> -			continue
> > >> -		fi
> > >> +	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> > >> do
> > >> +		cd $demo/OGLES/Build/LinuxGeneric
> > >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > >> +
> > >> +		install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> +	done
> > >> +
> > >> +	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> > >> do
> > >> +		cd $demo/OGLES2/Build/LinuxGeneric
> > >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >>
> > >> -		for demo in
> > >> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> > >> -			cd $demo/OGLES/Build/LinuxGeneric
> > >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -			rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > >> -
> > >> -			if [ $X11BUILD -eq 1 ] ; then
> > >> -				install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > >true
> > >> -				sed -e s:NAME:$(basename $demo): \
> > >> -				    -e
> > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> > >> -				    ${WORKDIR}/sample.desktop >
> > >> ${WORKDIR}/$(basename $demo).desktop
> > >> -			else
> > >> -				install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> -			fi
> > >> -		done
> > >> -
> > >> -		for demo in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> > >> -			cd $demo/OGLES2/Build/LinuxGeneric
> > >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -			rm -f
> > >> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >> -
> > >> -			if [ $X11BUILD -eq 1 ] ; then
> > >> -				install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > >true
> > >> -				sed -e s:NAME:$(basename $demo): \
> > >> -				    -e
> > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> > >> -				    ${WORKDIR}/sample.desktop >
> > >> ${WORKDIR}/$(basename $demo).desktop
> > >> -			else
> > >> -				install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> -			fi
> > >> -		done
> > >> +		install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >>  	done
> > >>
> > >>  	find ${S} -name "*_org" -delete
> > >>
> > >>  	# Build OGLES2 Trainingcourses
> > >> -	for X11BUILD in 0 1 ; do
> > >> -		# Don't rebuild training courses with X11 support for
> > >> a non X11 distro
> > >> -		if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > >> then
> > >> -			continue
> > >> +	for training in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > >> +		if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> > >> ] ; then
> > >> +			cd $training/OGLES2/Build/LinuxGeneric
> > >>  		fi
> > >>
> > >> -		for training in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > >> -			if [ -e
> > >> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> > >> -				cd $training/OGLES2/Build/LinuxGeneric
> > >> -			fi
> > >> -
> > >> -			if [ -e
> > >> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> > >> -				cd $training/OGLES2/Build/${PLATFORM}
> > >> -			fi
> > >> +		if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> > >> ; then
> > >> +			cd $training/OGLES2/Build/${PLATFORM}
> > >> +		fi
> > >>
> > >> -			oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -			rm -f
> > >> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >> +		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +		rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >>
> > >> -			if [ $X11BUILD -eq 1 ] ; then
> > >> -				install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> > >> ${S}/trainingcourses/x11 || true
> > >> -			else
> > >> -				install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > >> ${S}/trainingcourses/raw || true
> > >> -			fi
> > >> -		done
> > >> +		install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > >> ${S}/trainingcourses/raw || true
> > >>  	done
> > >>
> > >> +
> > >>  }
> > >>
> > >>  do_install () {
> > >>  	install -d ${D}${libdir}
> > >>  	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> > >> + 	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > >> + 	rm ${D}${libdir}/libsrv_um_dri.so*
> > >> + 	rm ${D}${libdir}/pvr_drv.so*
> > >>  	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> > >>
> > >>  	install -d ${D}${bindir}/
> > >>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
> > >>  	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
> > >>  	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> > >>
> > >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -		install -m 0755 ${BINLOCATION}/xgles1test1
> > >> ${D}${bindir}/
> > >> -		install -m 0755
> > >> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> > >> ${D}${bindir}/|| true
> > >> -		cp -pPR
> > >>
> > >${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> > >> b/*X11WS* ${D}${libdir} || true
> > >> -	fi
> > >> -
> > >>  	install -d ${D}${includedir}
> > >>  	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
> > >>  	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -
> > >211,13
> > >> +166,12  <at>  <at>  do_install () {
> > >>
> > >>  	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
> > >> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
> > >> sgx_render_flip_test"
> > >>  	raw_prog="gles1test1 gles2test1 ovg_unit_test"
> > >> -	x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> > >> xovg_unit_test"
> > >>
> > >>  	for esrev in 2 3 5 6 8 ; do
> > >>  		ESLOCATION=$(eval echo $(echo
> > >> \$\{ES${esrev}LOCATION\}))
> > >>  		if [ -e ${ESLOCATION} ] ; then
> > >>  			cp -pPR ${ESLOCATION}/lib*${IMGPV}
> > >${ESLOCATION}/pvr_drv.so
> > >> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
> > >> -			for esprog in $shared_prog $raw_prog
> > >> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;
> > >do
> > >> +			for esprog in $shared_prog $raw_prog ; do
> > >>  				install -m 0755 ${ESLOCATION}/$esprog
> > >${D}${bindir}/ES${esrev}.0/
> > >> 2>/dev/null || true
> > >>  			done
> > >>  		fi
> > >>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
> > >>
> > >>  	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
> > >> ${D}${bindir}/pdsasm -f || true
> > >>
> > >> -	install -d ${D}${prefix}/share/applications
> > >> -	cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> > >> -	rm ${D}${prefix}/share/applications/sample.desktop
> > >> -
> > >> -	if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -		install -d ${D}${bindir}/SGX/demos/X11/
> > >> -		install -m 0755 ${S}/demos/x11/*
> > >> ${D}${bindir}/SGX/demos/X11/
> > >> -		install -d ${D}${bindir}/SGX/trainingcourses/X11
> > >> 2>/dev/null || true
> > >> -		install -m 0755 ${S}/trainingcourses/x11/*
> > >> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> > >> -	fi
> > >> -
> > >>  	install -d ${D}${bindir}/SGX/demos/Raw/
> > >>  	install -m 0755 ${S}/demos/raw/*
> > >> ${D}${bindir}/SGX/demos/Raw/
> > >>  	install -d ${D}${bindir}/SGX/trainingcourses/Raw
> > >> 2>/dev/null || true
> > >>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
> > >>
> > >>  }
> > >>
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > >> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"
> > >,"", d)}
> > >> \
> > >> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > >> tests"
> > >> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > >> tests"
> > >>  # Package the base libraries per silicon revision  PACKAGES =+
> > >> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
> > >>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
> > >> ${PN}-es8"
> > >>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
> > >> libIMGegl.so libsrv_um.so libOpenVG.so li
> > >>
> > >>
> > >>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
> > >> ${PN}-linuxfbwsegl"
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > >> x11wsegl ${PN}-driwsegl" ,"", d)}"
> > >> +
> > >>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
> > >>  FILES_${PN}-frontwsegl =
> > >"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
> > >>  FILES_${PN}-linuxfbwsegl =
> > >> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> > >> ${bindir}/x* ${bindir}/*x"
> > >> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > >> ${libdir}/libsrv_um_dri*"
> > >>
> > >>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> > >> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> > >> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> > >> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> > >> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> > >> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> > >> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-
> > >linuxfbwsegl- es8"
> > >>
> > >> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> > >> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> > >> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> > >> driwsegl-es6 ${PN}-driwsegl-es8 "
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11',"${X11_SEGL}" ,"", d)}"
> > >>  FILES_${PN}-blitwsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-blitwsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-blitwsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >>  FILES_${PN}-linuxfbwsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2
> > >${PN}-
> > >> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
> > >> ${PN}-linuxfbwsegl-es8"
> > >>
> > >> -FILES_${PN}-x11wsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
> > >> ${bindir}/ES2*/*x"
> > >> -FILES_${PN}-x11wsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
> > >> ${bindir}/ES3*/*x"
> > >> -FILES_${PN}-x11wsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
> > >> ${bindir}/ES5*/*x"
> > >> -FILES_${PN}-x11wsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
> > >> ${bindir}/ES6*/*x"
> > >> -FILES_${PN}-x11wsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
> > >> ${bindir}/ES8*/*x"
> > >> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> > >> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
> > >> x11wsegl-es8"
> > >> -
> > >> -FILES_${PN}-driwsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES2*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES3*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES5*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES6*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES8*/libsrv_um_dri*"
> > >> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> > >> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
> > >> driwsegl-es8"
> > >> -
> > >>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> > >>
> > >>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
> > >${bindir}/${PVR_INIT}
> > >> ${bindir}/cputype ${bindir}/*"
> > >>
> > >> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
> > >>  FILES_${PN}-tests = "${bindir}/*test*"
> > >>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
> > >>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at> 
> > >> -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
> > >> ${bindir}/.debug/* \
> > >>  	"
> > >>
> > >>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> > >> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
> > >> ${prefix}/share/applications "
> > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> > >>
> > >>  FILES_${PN}-rawtrainingcourses =
> > >> "${bindir}/SGX/trainingcourses/Raw/*"
> > >> -FILES_${PN}-x11trainingcourses =
> > >> "${bindir}/SGX/trainingcourses/X11/*"
> > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> > >>
> > >>  # The libs need the kernel-modules
> > >>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
> > >>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so
> > >staticdev"
> > >>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
> > >>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
> > >>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> > >> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
> > >>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
> > >>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
> > >>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
> > >>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
> > >"ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> > >> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
> > >>  INSANE_SKIP_${PN}-tests = "ldflags"
> > >> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> > >>
> > >>  # Quality control is really poor on these SDKs, so hack around
> > >the
> > >> latest madness:
> > >>  FILES_${PN} += "${libdir}/*.so "
> > >>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> > >> 0 1 6 ."
> > >>  # Append to update-rc.d postinst
> > >>  pkg_postinst_${PN}_append() {
> > >>  rm -f $D${sysconfdir}/powervr-esrev
> > >> -
> > >> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -	ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> > >> -	ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> > >> -fi
> > >> -
> > >>  }
> > >>
> > >>  pkg_postinst_${PN}-blitwsegl() {
> > >>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {  rm -f
> > >> $D${sysconfdir}/powervr-esrev  }
> > >>
> > >> -pkg_postinst_${PN}-x11wsegl() {
> > >> -rm -f $D${sysconfdir}/powervr-esrev
> > >> -
> > >> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo
> > >> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
> > >> $D${sysconfdir}/powervr.ini -}
> > >> -
> > >> -pkg_postinst_${PN}-driwsegl() {
> > >> -rm -f $D${sysconfdir}/powervr-esrev
> > >> -}
> > >> -
> > >> diff --git a/recipes-graphics/libgles/libgles-
> > >omap3_4.09.00.01.bb
> > >> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> index 7c6f231..165a406 100644
> > >> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> > >>  SRC_URI = "http://software-
> > >>
> > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > >> }/exports/${BINFILE} \
> > >>             file://cputype \
> > >>             file://rc.pvr \
> > >> -           file://rc_dri.pvr \
> > >> -           file://sample.desktop \
> > >>             file://99-bufferclass.rules  \  "
> > >>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
> > >>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
> > >> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> > >>
> > >>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> > >>
> > >> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
> > >d)}"
> > >> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> > >>
> > >> -do_configure_append() {
> > >> -
> > >> -    # Change PVR server's user mode library to point to DRI
> > >> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> > >> -    if [ "$drifile" != "" ]
> > >> -    then
> > >> -        dir=$(dirname ${drifile})
> > >> -        if [ "$SUPPORT_XORG" = "1" ]
> > >> -        then
> > >> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> > >> -        else
> > >> -            rm -rf ${dir}/libsrv_um_dri.so
> > >> -        fi
> > >> -    fi
> > >> -
> > >> -    done
> > >> -}
> > >> -
> > >> -do_install_append() {
> > >> -
> > >> -    # In this version of the graphics SDK the following
> > >> directories do not exist:
> > >> -    #
> > >> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> > >> (doesn't exist)
> > >> -    #
> > >>
> > >/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> > >> s.h (doesn't exist)
> > >> -    # Therefore, need to copy these files manually at the only
> > >> location that they do exist
> > >> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> > >> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> > >> -
> > >> -    rm ${D}${sysconfdir}/init.d/pvr-init
> > >> -
> > >> -    if [ "$SUPPORT_XORG" = "1" ]; then
> > >> -        cp -pP ${WORKDIR}/rc_dri.pvr
> > >> ${D}${sysconfdir}/init.d/pvr-init
> > >> -    else
> > >> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> > >> init
> > >> -    fi
> > >> -
> > >> -}
> > >> -
> > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> > >> --
> > >> 1.7.1
> > >>
> > >> _______________________________________________
> > >> meta-ti mailing list
> > >> meta-ti@...
> > >> https://lists.yoctoproject.org/listinfo/meta-ti
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@...
> > https://lists.yoctoproject.org/listinfo/meta-ti
> > 
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
meta-ti@...
https://lists.yoctoproject.org/listinfo/meta-ti
Prabindh Sundareson | 17 May 19:02 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Chase, Denys,

I have resubmitted the patches with comments incorporated. RPROVIDES clarification is pending so still keeping as it was. Please review,

regards
Prabu
From: "Sundareson, Prabindh" <prabu-l0cyMroinI0@public.gmane.org>
To: "Dmytriyenko, Denys" <denys-l0cyMroinI0@public.gmane.org>; "Maupin, Chase" <chase.maupin-l0cyMroinI0@public.gmane.org>
Cc: "meta-ti <at> yoctoproject.org" <meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org>
Sent: Wednesday, May 15, 2013 8:18 AM
Subject: Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Denys,

Thanks for the review. I will resubmit the patch-set for review - with below comments implemented.

regards,
Prabu


-----Original Message-----
From: meta-ti-bounces-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org [mailto:meta-ti-bounces-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org] On Behalf Of Dmytriyenko, Denys
Sent: Tuesday, May 14, 2013 11:17 PM
To: Maupin, Chase
Cc: meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
Subject: Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

Prabu,

I don't think I have any more comments, than for 01, 06 and 08. Will you be re-submitting the entire set later? I'll go ahead and remove this set from my queue as it will be "superseded". Thanks!

--
Denys


On Tue, May 14, 2013 at 01:23:16PM -0400, Denys Dmytriyenko wrote:
> On Fri, May 10, 2013 at 01:27:09PM +0000, Maupin, Chase wrote:
> >
> > >-----Original Message-----
> > >From: Sundareson, Prabindh
> > >Sent: Friday, May 10, 2013 4:17 AM
> > >To: Maupin, Chase; meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
> > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related build and packaging
> > >
> > >Chase, thanks for the review,
> > >
> > >1) Ok, I will add it. By "later recipe", you mean the separated
> > >x11 recipe, right ?
> >
> > Yes sir
> >
> > >
> > >2) Good point - I am ok to leave the old .inc and create a new one
> > >with the changes starting from 4.09 then. Is this ok ?
> >
> > I'm OK with the approach.  Denys, any concern here?
>
> Sounds good - there are still some users of 4.08 out there...
>
>
> > >regards,
> > >Prabu
> > >
> > >
> > >-----Original Message-----
> > >From: Maupin, Chase
> > >Sent: Wednesday, May 08, 2013 6:48 PM
> > >To: Sundareson, Prabindh; meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
> > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related build and packaging
> > >
> > >Prabu,
> > >
> > >Overall nice job.  A couple of things I noticed.
> > >
> > >1. You removed the sample.desktop file but did not put it back in
> > >a later recipe.
> > >2. You modified the common .inc file and then added the X11 pieces
> > >back for 4.09.00.01.  This would break people using the older
> > >recipes though.  So would it perhaps be a good idea to leave the
> > >.inc alone and then create a new include file for newer recipe
> > >that do this split going forward?  Or would it be simpler to
> > >provide the X11 package for the older versions as well?  This is
> > >just a thought and I'm hoping others will chime in here.
> > >
> > >Thanks for the patches, it is really good to see this work being
> > >done :)
> > >
> > >> -----Original Message-----
> > >> From: meta-ti-bounces-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org [mailto:meta-ti-
> > >> bounces-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org] On Behalf Of Sundareson, Prabindh
> > >> Sent: Thursday, May 02, 2013 8:39 AM
> > >> To: meta-ti <at> yoctoproject.org
> > >> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > >related
> > >> build and packaging
> > >>
> > >> The SGX530 driver for X11 is only buildable and testable
> > >standalone
> > >> with the pre-built X11 package provided with the Graphics SDK.
> > >> This patch removes X11 build from the default recipe, to enable
> > >moving
> > >> X11 build to a separate recipe.
> > >>
> > >> This is part of a clean up of the Graphics recipe starting from
> > >> 4.09.00.01 version of the Graphics SDK.
> > >>
> > >> Signed-off-by: Prabindh Sundareson <prabu-l0cyMroinI0@public.gmane.org>
> > >> ---
> > >>  recipes-graphics/libgles/libgles-omap3.inc        |  168 ++++-
> > >-
> > >> --------------
> > >>  .../libgles/libgles-omap3_4.09.00.01.bb            |  43 +----
> > >-
> > >>  2 files changed, 30 insertions(+), 181 deletions(-)
> > >>
> > >> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> > >> b/recipes-graphics/libgles/libgles-omap3.inc
> > >> index 9a90c56..130dc49 100644
> > >> --- a/recipes-graphics/libgles/libgles-omap3.inc
> > >> +++ b/recipes-graphics/libgles/libgles-omap3.inc
> > >> <at> <at> -7,10 +7,6 <at> <at> PR = "r35"
> > >>
> > >>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> > >>
> > >> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> > >> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
> > >> '${X11DEPENDS}', '', d)}"
> > >> -
> > >> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11', '1', '0', d)}"
> > >>  PVR_INIT ?= "pvrsrvinit"
> > >>
> > >>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
> > >> <at> <at> -22,7 +18,6 <at> <at> RREPLACES_${PN}-dbg = "libegl-dbg"
> > >>  SRC_URI = "http://software-
> > >>
> > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > >> }/exports/${BINFILE} \
> > >>            file://cputype \
> > >>            file://rc.pvr \
> > >> -          file://sample.desktop \
> > >>            file://99-bufferclass.rules  \
> > >>  "
> > >>
> > >> <at> <at> -79,87 +74,53 <at> <at> do_compile() {
> > >>      export PLAT_CPP="${CXX}"
> > >>      export PLAR_AR="${AR}"
> > >>
> > >> -    if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -        export X11ROOT="${STAGING_DIR_HOST}/usr"
> > >> -        mkdir -p ${S}/demos/x11
> > >> -        mkdir -p ${S}/trainingcourses/x11
> > >> -    fi
> > >> -
> > >>      mkdir -p ${S}/demos/raw
> > >>      mkdir -p ${S}/trainingcourses/raw
> > >>
> > >>      # Rebuild demos
> > >> -    for X11BUILD in 0 1 ; do
> > >> -        # Don't rebuild demos with X11 support for a non X11
> > >> distro
> > >> -        if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > >> then
> > >> -            continue
> > >> -        fi
> > >> +    for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> > >> do
> > >> +        cd $demo/OGLES/Build/LinuxGeneric
> > >> +        oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +        rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > >> +
> > >> +        install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> +    done
> > >> +
> > >> +    for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> > >> do
> > >> +        cd $demo/OGLES2/Build/LinuxGeneric
> > >> +        oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +        rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >>
> > >> -        for demo in
> > >> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> > >> -            cd $demo/OGLES/Build/LinuxGeneric
> > >> -            oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -            rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > >> -
> > >> -            if [ $X11BUILD -eq 1 ] ; then
> > >> -                install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > >true
> > >> -                sed -e s:NAME:$(basename $demo): \
> > >> -                    -e
> > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> > >> -                    ${WORKDIR}/sample.desktop >
> > >> ${WORKDIR}/$(basename $demo).desktop
> > >> -            else
> > >> -                install -m 0755
> > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> -            fi
> > >> -        done
> > >> -
> > >> -        for demo in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> > >> -            cd $demo/OGLES2/Build/LinuxGeneric
> > >> -            oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -            rm -f
> > >> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >> -
> > >> -            if [ $X11BUILD -eq 1 ] ; then
> > >> -                install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > >true
> > >> -                sed -e s:NAME:$(basename $demo): \
> > >> -                    -e
> > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> > >> -                    ${WORKDIR}/sample.desktop >
> > >> ${WORKDIR}/$(basename $demo).desktop
> > >> -            else
> > >> -                install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >> -            fi
> > >> -        done
> > >> +        install -m 0755
> > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > >true
> > >>      done
> > >>
> > >>      find ${S} -name "*_org" -delete
> > >>
> > >>      # Build OGLES2 Trainingcourses
> > >> -    for X11BUILD in 0 1 ; do
> > >> -        # Don't rebuild training courses with X11 support for
> > >> a non X11 distro
> > >> -        if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > >> then
> > >> -            continue
> > >> +    for training in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > >> +        if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> > >> ] ; then
> > >> +            cd $training/OGLES2/Build/LinuxGeneric
> > >>          fi
> > >>
> > >> -        for training in
> > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > >> -            if [ -e
> > >> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> > >> -                cd $training/OGLES2/Build/LinuxGeneric
> > >> -            fi
> > >> -
> > >> -            if [ -e
> > >> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> > >> -                cd $training/OGLES2/Build/${PLATFORM}
> > >> -            fi
> > >> +        if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> > >> ; then
> > >> +            cd $training/OGLES2/Build/${PLATFORM}
> > >> +        fi
> > >>
> > >> -            oe_runmake Common=1 PLATFORM=${PLATFORM}
> > >> X11BUILD=$X11BUILD
> > >> -            rm -f
> > >> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >> +        oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > >> +        rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > >>
> > >> -            if [ $X11BUILD -eq 1 ] ; then
> > >> -                install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> > >> ${S}/trainingcourses/x11 || true
> > >> -            else
> > >> -                install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > >> ${S}/trainingcourses/raw || true
> > >> -            fi
> > >> -        done
> > >> +        install -m 0755
> > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > >> ${S}/trainingcourses/raw || true
> > >>      done
> > >>
> > >> +
> > >>  }
> > >>
> > >>  do_install () {
> > >>      install -d ${D}${libdir}
> > >>      cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> > >> +     rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > >> +     rm ${D}${libdir}/libsrv_um_dri.so*
> > >> +     rm ${D}${libdir}/pvr_drv.so*
> > >>      install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> > >>
> > >>      install -d ${D}${bindir}/
> > >> <at> <at> -169,12 +130,6 <at> <at> do_install () {
> > >>      install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
> > >>      install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> > >>
> > >> -    if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -        install -m 0755 ${BINLOCATION}/xgles1test1
> > >> ${D}${bindir}/
> > >> -        install -m 0755
> > >> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> > >> ${D}${bindir}/|| true
> > >> -        cp -pPR
> > >>
> > >${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> > >> b/*X11WS* ${D}${libdir} || true
> > >> -    fi
> > >> -
> > >>      install -d ${D}${includedir}
> > >>      cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
> > >>      cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/ <at> <at> -
> > >211,13
> > >> +166,12 <at> <at> do_install () {
> > >>
> > >>      shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
> > >> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
> > >> sgx_render_flip_test"
> > >>      raw_prog="gles1test1 gles2test1 ovg_unit_test"
> > >> -    x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> > >> xovg_unit_test"
> > >>
> > >>      for esrev in 2 3 5 6 8 ; do
> > >>          ESLOCATION=$(eval echo $(echo
> > >> \$\{ES${esrev}LOCATION\}))
> > >>          if [ -e ${ESLOCATION} ] ; then
> > >>              cp -pPR ${ESLOCATION}/lib*${IMGPV}
> > >${ESLOCATION}/pvr_drv.so
> > >> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
> > >> -            for esprog in $shared_prog $raw_prog
> > >> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;
> > >do
> > >> +            for esprog in $shared_prog $raw_prog ; do
> > >>                  install -m 0755 ${ESLOCATION}/$esprog
> > >${D}${bindir}/ES${esrev}.0/
> > >> 2>/dev/null || true
> > >>              done
> > >>          fi
> > >> <at> <at> -225,17 +179,6 <at> <at> do_install () {
> > >>
> > >>      rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
> > >> ${D}${bindir}/pdsasm -f || true
> > >>
> > >> -    install -d ${D}${prefix}/share/applications
> > >> -    cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> > >> -    rm ${D}${prefix}/share/applications/sample.desktop
> > >> -
> > >> -    if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -        install -d ${D}${bindir}/SGX/demos/X11/
> > >> -        install -m 0755 ${S}/demos/x11/*
> > >> ${D}${bindir}/SGX/demos/X11/
> > >> -        install -d ${D}${bindir}/SGX/trainingcourses/X11
> > >> 2>/dev/null || true
> > >> -        install -m 0755 ${S}/trainingcourses/x11/*
> > >> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> > >> -    fi
> > >> -
> > >>      install -d ${D}${bindir}/SGX/demos/Raw/
> > >>      install -m 0755 ${S}/demos/raw/*
> > >> ${D}${bindir}/SGX/demos/Raw/
> > >>      install -d ${D}${bindir}/SGX/trainingcourses/Raw
> > >> 2>/dev/null || true
> > >> <at> <at> -251,8 +194,7 <at> <at> do_install () {
> > >>
> > >>  }
> > >>
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > >> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"
> > >,"", d)}
> > >> \
> > >> -            ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > >> tests"
> > >> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > >> tests"
> > >>  # Package the base libraries per silicon revision  PACKAGES =+
> > >> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
> > >>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
> > >> ${PN}-es8"
> > >> <at> <at> -271,18 +213,14 <at> <at> PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
> > >> libIMGegl.so libsrv_um.so libOpenVG.so li
> > >>
> > >>
> > >>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
> > >> ${PN}-linuxfbwsegl"
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > >> x11wsegl ${PN}-driwsegl" ,"", d)}"
> > >> +
> > >>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
> > >>  FILES_${PN}-frontwsegl =
> > >"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
> > >>  FILES_${PN}-linuxfbwsegl =
> > >> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> > >> ${bindir}/x* ${bindir}/*x"
> > >> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > >> ${libdir}/libsrv_um_dri*"
> > >>
> > >>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> > >> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> > >> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> > >> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> > >> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> > >> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> > >> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-
> > >linuxfbwsegl- es8"
> > >>
> > >> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> > >> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> > >> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> > >> driwsegl-es6 ${PN}-driwsegl-es8 "
> > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11',"${X11_SEGL}" ,"", d)}"
> > >>  FILES_${PN}-blitwsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-blitwsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
> > >>  FILES_${PN}-blitwsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
> > >> <at> <at> -311,25 +249,10 <at> <at> FILES_${PN}-linuxfbwsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >>  FILES_${PN}-linuxfbwsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > >>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2
> > >${PN}-
> > >> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
> > >> ${PN}-linuxfbwsegl-es8"
> > >>
> > >> -FILES_${PN}-x11wsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
> > >> ${bindir}/ES2*/*x"
> > >> -FILES_${PN}-x11wsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
> > >> ${bindir}/ES3*/*x"
> > >> -FILES_${PN}-x11wsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
> > >> ${bindir}/ES5*/*x"
> > >> -FILES_${PN}-x11wsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
> > >> ${bindir}/ES6*/*x"
> > >> -FILES_${PN}-x11wsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
> > >> ${bindir}/ES8*/*x"
> > >> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> > >> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
> > >> x11wsegl-es8"
> > >> -
> > >> -FILES_${PN}-driwsegl-es2 =
> > >> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES2*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es3 =
> > >> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES3*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es5 =
> > >> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES5*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es6 =
> > >> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES6*/libsrv_um_dri*"
> > >> -FILES_${PN}-driwsegl-es8 =
> > >> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> > >> ${libdir}/ES8*/libsrv_um_dri*"
> > >> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> > >> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
> > >> driwsegl-es8"
> > >> -
> > >>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> > >>
> > >>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
> > >${bindir}/${PVR_INIT}
> > >> ${bindir}/cputype ${bindir}/*"
> > >>
> > >> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
> > >>  FILES_${PN}-tests = "${bindir}/*test*"
> > >>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
> > >>                    ${libdir}/ES*/.debug ${bindir}/*/.debug\ <at> <at>
> > >> -338,12 +261,8 <at> <at> FILES_${PN}-dbg = "${libdir}/.debug/*
> > >> ${bindir}/.debug/* \
> > >>      "
> > >>
> > >>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> > >> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
> > >> ${prefix}/share/applications "
> > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> > >>
> > >>  FILES_${PN}-rawtrainingcourses =
> > >> "${bindir}/SGX/trainingcourses/Raw/*"
> > >> -FILES_${PN}-x11trainingcourses =
> > >> "${bindir}/SGX/trainingcourses/X11/*"
> > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> > >>
> > >>  # The libs need the kernel-modules
> > >>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
> > >> <at> <at> -358,7 +277,6 <at> <at> INSANE_SKIP_${PN}-es5 = "ldflags dev-so
> > >staticdev"
> > >>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
> > >>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
> > >>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> > >> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
> > >>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
> > >>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
> > >>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
> > >> <at> <at> -379,18 +297,7 <at> <at> INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
> > >"ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
> > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> > >> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> > >> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
> > >>  INSANE_SKIP_${PN}-tests = "ldflags"
> > >> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> > >>
> > >>  # Quality control is really poor on these SDKs, so hack around
> > >the
> > >> latest madness:
> > >>  FILES_${PN} += "${libdir}/*.so "
> > >> <at> <at> -404,12 +311,6 <at> <at> INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> > >> 0 1 6 ."
> > >>  # Append to update-rc.d postinst
> > >>  pkg_postinst_${PN}_append() {
> > >>  rm -f $D${sysconfdir}/powervr-esrev
> > >> -
> > >> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > >> -    ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> > >> -    ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> > >> -fi
> > >> -
> > >>  }
> > >>
> > >>  pkg_postinst_${PN}-blitwsegl() {
> > >> <at> <at> -427,14 +328,3 <at> <at> pkg_postinst_${PN}-linuxfbwsegl() {  rm -f
> > >> $D${sysconfdir}/powervr-esrev  }
> > >>
> > >> -pkg_postinst_${PN}-x11wsegl() {
> > >> -rm -f $D${sysconfdir}/powervr-esrev
> > >> -
> > >> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo
> > >> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
> > >> $D${sysconfdir}/powervr.ini -}
> > >> -
> > >> -pkg_postinst_${PN}-driwsegl() {
> > >> -rm -f $D${sysconfdir}/powervr-esrev
> > >> -}
> > >> -
> > >> diff --git a/recipes-graphics/libgles/libgles-
> > >omap3_4.09.00.01.bb
> > >> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> index 7c6f231..165a406 100644
> > >> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > >> <at> <at> -23,8 +23,6 <at> <at> TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> > >>  SRC_URI = "http://software-
> > >>
> > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > >> }/exports/${BINFILE} \
> > >>            file://cputype \
> > >>            file://rc.pvr \
> > >> -          file://rc_dri.pvr \
> > >> -          file://sample.desktop \
> > >>            file://99-bufferclass.rules  \  "
> > >>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
> > >> <at> <at> -32,44 +30,5 <at> <at> SRC_URI[sha256sum] =
> > >> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> > >>
> > >>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> > >>
> > >> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> > >> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
> > >d)}"
> > >> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> > >>
> > >> -do_configure_append() {
> > >> -
> > >> -    # Change PVR server's user mode library to point to DRI
> > >> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> > >> -    if [ "$drifile" != "" ]
> > >> -    then
> > >> -        dir=$(dirname ${drifile})
> > >> -        if [ "$SUPPORT_XORG" = "1" ]
> > >> -        then
> > >> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> > >> -        else
> > >> -            rm -rf ${dir}/libsrv_um_dri.so
> > >> -        fi
> > >> -    fi
> > >> -
> > >> -    done
> > >> -}
> > >> -
> > >> -do_install_append() {
> > >> -
> > >> -    # In this version of the graphics SDK the following
> > >> directories do not exist:
> > >> -    #
> > >> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> > >> (doesn't exist)
> > >> -    #
> > >>
> > >/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> > >> s.h (doesn't exist)
> > >> -    # Therefore, need to copy these files manually at the only
> > >> location that they do exist
> > >> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> > >> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> > >> -
> > >> -    rm ${D}${sysconfdir}/init.d/pvr-init
> > >> -
> > >> -    if [ "$SUPPORT_XORG" = "1" ]; then
> > >> -        cp -pP ${WORKDIR}/rc_dri.pvr
> > >> ${D}${sysconfdir}/init.d/pvr-init
> > >> -    else
> > >> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> > >> init
> > >> -    fi
> > >> -
> > >> -}
> > >> -
> > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> > >> --
> > >> 1.7.1
> > >>
> > >> _______________________________________________
> > >> meta-ti mailing list
> > >> meta-ti <at> yoctoproject.org
> > >> https://lists.yoctoproject.org/listinfo/meta-ti
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
> > https://lists.yoctoproject.org/listinfo/meta-ti
> >
> _______________________________________________
> meta-ti mailing list
> meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
> https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
meta-ti <at> yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
meta-ti-EtnWKYl6rD/WsZ/bQMPhNw@public.gmane.org
https://lists.yoctoproject.org/listinfo/meta-ti


<div><div>Chase, Denys,<br><br>I have resubmitted the patches with comments incorporated. RPROVIDES clarification is pending so still keeping as it was. Please review,<br><div><span><br></span></div>
<div>regards</div>
<div>Prabu<br>
</div>  <div> <div> <div dir="ltr">  <span>From:</span> "Sundareson, Prabindh" &lt;prabu@...&gt;<br><span>To:</span> "Dmytriyenko, Denys" &lt;denys@...&gt;; "Maupin, Chase" &lt;chase.maupin@...&gt; <br><span>Cc:</span> "meta-ti <at> yoctoproject.org" &lt;meta-ti@...&gt; <br><span>Sent:</span> Wednesday, May 15, 2013 8:18 AM<br><span>Subject:</span> Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build
 and	packaging<br> </div> <div class="y_msg_container">
<br>Denys,<br><br>Thanks for the review. I will resubmit the patch-set for review - with below comments implemented. <br><br>regards,<br>Prabu<br><br><br>-----Original Message-----<br>From: <a ymailto="mailto:meta-ti-bounces@..." href="mailto:meta-ti-bounces@...">meta-ti-bounces@...</a> [mailto:<a ymailto="mailto:meta-ti-bounces@..." href="mailto:meta-ti-bounces@...">meta-ti-bounces@...</a>] On Behalf Of Dmytriyenko, Denys<br>Sent: Tuesday, May 14, 2013 11:17 PM<br>To: Maupin, Chase<br>Cc: <a ymailto="mailto:meta-ti@..." href="mailto:meta-ti@...">meta-ti@...</a><br>Subject: Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging<br><br>Prabu,<br><br>I don't think I have any more comments, than for 01, 06 and 08. Will you be re-submitting the entire set
 later? I'll go ahead and remove this set from my queue as it will be "superseded". Thanks!<br><br>--<br>Denys<br><br><br>On Tue, May 14, 2013 at 01:23:16PM -0400, Denys Dmytriyenko wrote:<br>&gt; On Fri, May 10, 2013 at 01:27:09PM +0000, Maupin, Chase wrote:<br>&gt; &gt; <br>&gt; &gt; &gt;-----Original Message-----<br>&gt; &gt; &gt;From: Sundareson, Prabindh<br>&gt; &gt; &gt;Sent: Friday, May 10, 2013 4:17 AM<br>&gt; &gt; &gt;To: Maupin, Chase; <a ymailto="mailto:meta-ti@..." href="mailto:meta-ti <at> yoctoproject.org">meta-ti@...</a><br>&gt; &gt; &gt;Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11<br>&gt; &gt; &gt;related build and packaging<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Chase, thanks for the review,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;1) Ok, I will add it. By "later recipe", you mean the separated<br>&gt; &gt; &gt;x11 recipe, right ?<br>&gt; &gt; <br>&gt; &gt; Yes sir<br>&gt; &gt; <br>&gt; &gt; &gt;<br>&gt; &gt;
 &gt;2) Good point - I am ok to leave the old .inc and create a new one<br>&gt; &gt; &gt;with the changes starting from 4.09 then. Is this ok ?<br>&gt; &gt; <br>&gt; &gt; I'm OK with the approach.&nbsp; Denys, any concern here?<br>&gt; <br>&gt; Sounds good - there are still some users of 4.08 out there...<br>&gt; <br>&gt; <br>&gt; &gt; &gt;regards,<br>&gt; &gt; &gt;Prabu<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;-----Original Message-----<br>&gt; &gt; &gt;From: Maupin, Chase<br>&gt; &gt; &gt;Sent: Wednesday, May 08, 2013 6:48 PM<br>&gt; &gt; &gt;To: Sundareson, Prabindh; <a ymailto="mailto:meta-ti@..." href="mailto:meta-ti@...g">meta-ti@...</a><br>&gt; &gt; &gt;Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11<br>&gt; &gt; &gt;related build and packaging<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Prabu,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Overall nice job.&nbsp; A couple of things I noticed.<br>&gt;
 &gt; &gt;<br>&gt; &gt; &gt;1. You removed the sample.desktop file but did not put it back in<br>&gt; &gt; &gt;a later recipe.<br>&gt; &gt; &gt;2. You modified the common .inc file and then added the X11 pieces<br>&gt; &gt; &gt;back for 4.09.00.01.&nbsp; This would break people using the older<br>&gt; &gt; &gt;recipes though.&nbsp; So would it perhaps be a good idea to leave the<br>&gt; &gt; &gt;.inc alone and then create a new include file for newer recipe<br>&gt; &gt; &gt;that do this split going forward?&nbsp; Or would it be simpler to<br>&gt; &gt; &gt;provide the X11 package for the older versions as well?&nbsp; This is<br>&gt; &gt; &gt;just a thought and I'm hoping others will chime in here.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;Thanks for the patches, it is really good to see this work being<br>&gt; &gt; &gt;done :)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&gt; -----Original Message-----<br>&gt; &gt; &gt;&gt; From: <a ymailto="mailto:meta-ti-bounces@..." href="mailto:meta-ti-bounces@...">meta-ti-bounces@...</a> [mailto:meta-ti-≤br>&gt; &gt; &gt;&gt; <a ymailto="mailto:bounces@..." href="mailto:bounces@...">bounces@...</a>] On Behalf Of Sundareson, Prabindh<br>&gt; &gt; &gt;&gt; Sent: Thursday, May 02, 2013 8:39 AM<br>&gt; &gt; &gt;&gt; To: <a ymailto="mailto:meta-ti <at> yoctoproject.org" href="mailto:meta-ti@...">meta-ti <at> yoctoproject.org</a><br>&gt; &gt; &gt;&gt; Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11<br>&gt; &gt; &gt;related<br>&gt; &gt; &gt;&gt; build and packaging<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; The SGX530 driver for X11 is only buildable and testable<br>&gt; &gt; &gt;standalone<br>&gt; &gt; &gt;&gt; with the pre-built X11 package provided with the Graphics SDK.<br>&gt; &gt; &gt;&gt; This patch removes X11 build from the default recipe, to
 enable<br>&gt; &gt; &gt;moving<br>&gt; &gt; &gt;&gt; X11 build to a separate recipe.<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; This is part of a clean up of the Graphics recipe starting from<br>&gt; &gt; &gt;&gt; 4.09.00.01 version of the Graphics SDK.<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; Signed-off-by: Prabindh Sundareson &lt;<a ymailto="mailto:prabu@..." href="mailto:prabu@...">prabu@...</a>&gt;<br>&gt; &gt; &gt;&gt; ---<br>&gt; &gt; &gt;&gt;&nbsp; recipes-graphics/libgles/libgles-omap3.inc&nbsp; &nbsp; &nbsp; &nbsp;  |&nbsp; 168 ++++-<br>&gt; &gt; &gt;-<br>&gt; &gt; &gt;&gt; --------------<br>&gt; &gt; &gt;&gt;&nbsp; .../libgles/libgles-omap3_4.09.00.01.bb&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp;  43 +----<br>&gt; &gt; &gt;-<br>&gt; &gt; &gt;&gt;&nbsp; 2 files changed, 30 insertions(+), 181 deletions(-)<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; diff --git a/recipes-graphics/libgles/libgles-omap3.inc<br>&gt; &gt; &gt;&gt;
 b/recipes-graphics/libgles/libgles-omap3.inc<br>&gt; &gt; &gt;&gt; index 9a90c56..130dc49 100644<br>&gt; &gt; &gt;&gt; --- a/recipes-graphics/libgles/libgles-omap3.inc<br>&gt; &gt; &gt;&gt; +++ b/recipes-graphics/libgles/libgles-omap3.inc<br>&gt; &gt; &gt;&gt;  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"<br>&gt; &gt; &gt;&gt; -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',<br>&gt; &gt; &gt;&gt; '${X11DEPENDS}', '', d)}"<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',<br>&gt; &gt; &gt;&gt; 'x11', '1', '0', d)}"<br>&gt; &gt; &gt;&gt;&nbsp; PVR_INIT ?= "pvrsrvinit"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"<br>&gt; &gt; &gt;&gt;  <at>  <at>  -22,7 +18,6  <at>  <at> 
 RREPLACES_${PN}-dbg = "libegl-dbg"<br>&gt; &gt; &gt;&gt;&nbsp; SRC_URI = "<a href="http://software-/" target="_blank">http://software-</a><br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV<br>&gt; &gt; &gt;&gt; }/exports/${BINFILE} \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  file://cputype \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  file://rc.pvr \<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  file://sample.desktop \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;  file://99-bufferclass.rules&nbsp; \<br>&gt; &gt; &gt;&gt;&nbsp; "<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; export PLAT_CPP="${CXX}"<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; export PLAR_AR="${AR}"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;
 -&nbsp;&nbsp;&nbsp; if [ ${SUPPORT_XORG} -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; export X11ROOT="${STAGING_DIR_HOST}/usr"<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mkdir -p ${S}/demos/x11<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mkdir -p ${S}/trainingcourses/x11<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; mkdir -p ${S}/demos/raw<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; mkdir -p ${S}/trainingcourses/raw<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; # Rebuild demos<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; for X11BUILD in 0 1 ; do<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # Don't rebuild demos with X11 support for a non X11<br>&gt; &gt; &gt;&gt; distro<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ]
 ;<br>&gt; &gt; &gt;&gt; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; continue<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;<br>&gt; &gt; &gt;&gt; do<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $demo/OGLES/Build/LinuxGeneric<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o<br>&gt; &gt; &gt;&gt; +<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||<br>&gt; &gt; &gt;true<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt; +<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; for demo in
 ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;<br>&gt; &gt; &gt;&gt; do<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $demo/OGLES2/Build/LinuxGeneric<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for demo in<br>&gt; &gt; &gt;&gt; ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $demo/OGLES/Build/LinuxGeneric<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oe_runmake Common=1 PLATFORM=${PLATFORM}<br>&gt; &gt; &gt;&gt; X11BUILD=$X11BUILD<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o<br>&gt;
 &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ $X11BUILD -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||<br>&gt; &gt; &gt;true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sed -e s:NAME:$(basename $demo): \<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; -e<br>&gt; &gt; &gt;&gt; s:EXEC:${bindir}/SGX/demos/X11/$(basename<br>&gt; &gt; &gt;&gt; $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; ${WORKDIR}/sample.desktop &gt;<br>&gt; &gt; &gt;&gt; ${WORKDIR}/$(basename $demo).desktop<br>&gt; &gt; &gt;&gt;
 -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||<br>&gt; &gt; &gt;true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for demo in<br>&gt; &gt; &gt;&gt; ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $demo/OGLES2/Build/LinuxGeneric<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oe_runmake Common=1 PLATFORM=${PLATFORM}<br>&gt; &gt; &gt;&gt; X11BUILD=$X11BUILD<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm
 -f<br>&gt; &gt; &gt;&gt; $demo/OGLES2/Build/${PLATFORM}/Release*/*.o<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ $X11BUILD -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||<br>&gt; &gt; &gt;true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sed -e s:NAME:$(basename $demo): \<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; -e<br>&gt; &gt; &gt;&gt; s:EXEC:${bindir}/SGX/demos/X11/$(basename<br>&gt; &gt; &gt;&gt; $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; ${WORKDIR}/sample.desktop &gt;<br>&gt; &gt;
 &gt;&gt; ${WORKDIR}/$(basename $demo).desktop<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||<br>&gt; &gt; &gt;true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||<br>&gt; &gt; &gt;true<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; find ${S} -name "*_org" -delete<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; # Build OGLES2 Trainingcourses<br>&gt; &gt; &gt;&gt;
 -&nbsp;&nbsp;&nbsp; for X11BUILD in 0 1 ; do<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # Don't rebuild training courses with X11 support for<br>&gt; &gt; &gt;&gt; a non X11 distro<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;<br>&gt; &gt; &gt;&gt; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; continue<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; for training in<br>&gt; &gt; &gt;&gt; ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile<br>&gt; &gt; &gt;&gt; ] ; then<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $training/OGLES2/Build/LinuxGeneric<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; for training in<br>&gt; &gt; &gt;&gt; ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ -e<br>&gt; &gt; &gt;&gt; $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $training/OGLES2/Build/LinuxGeneric<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ -e<br>&gt; &gt; &gt;&gt; $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $training/OGLES2/Build/${PLATFORM}<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]<br>&gt; &gt; &gt;&gt; ; then<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd $training/OGLES2/Build/${PLATFORM}<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oe_runmake Common=1 PLATFORM=${PLATFORM}<br>&gt; &gt; &gt;&gt; X11BUILD=$X11BUILD<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm -f<br>&gt; &gt; &gt;&gt; $training/OGLES2/Build/${PLATFORM}/Release*/*.o<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [
 $X11BUILD -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*<br>&gt; &gt; &gt;&gt; ${S}/trainingcourses/x11 || true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*<br>&gt; &gt; &gt;&gt; ${S}/trainingcourses/raw || true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*<br>&gt; &gt; &gt;&gt; ${S}/trainingcourses/raw || true<br>&gt; &gt;
 &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; +<br>&gt; &gt; &gt;&gt;&nbsp; }<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; do_install () {<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${libdir}<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}<br>&gt; &gt; &gt;&gt; + &nbsp;&nbsp;&nbsp; rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*<br>&gt; &gt; &gt;&gt; + &nbsp;&nbsp;&nbsp; rm ${D}${libdir}/libsrv_um_dri.so*<br>&gt; &gt; &gt;&gt; + &nbsp;&nbsp;&nbsp; rm ${D}${libdir}/pvr_drv.so*<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${bindir}/<br>&gt; &gt; &gt;&gt;  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/<br>&gt; &gt; &gt;&gt;&nbsp;
 &nbsp;&nbsp;&nbsp; install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; if [ ${SUPPORT_XORG} -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755 ${BINLOCATION}/xgles1test1<br>&gt; &gt; &gt;&gt; ${D}${bindir}/<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755<br>&gt; &gt; &gt;&gt; ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx<br>&gt; &gt; &gt;&gt; ${D}${bindir}/|| true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cp -pPR<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li<br>&gt; &gt; &gt;&gt; b/*X11WS* ${D}${libdir} || true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${includedir}<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; cp -pPR
 ${S}/GFX_Linux_KM/include4 ${D}${includedir}/<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -<br>&gt; &gt; &gt;211,13<br>&gt; &gt; &gt;&gt; +166,12  <at>  <at>  do_install () {<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test<br>&gt; &gt; &gt;&gt; sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test<br>&gt; &gt; &gt;&gt; sgx_render_flip_test"<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; raw_prog="gles1test1 gles2test1 ovg_unit_test"<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest<br>&gt; &gt; &gt;&gt; xovg_unit_test"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; for esrev in 2 3 5 6 8 ; do<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ESLOCATION=$(eval echo $(echo<br>&gt; &gt; &gt;&gt; \$\{ES${esrev}LOCATION\}))<br>&gt; &gt;
 &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ -e ${ESLOCATION} ] ; then<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cp -pPR ${ESLOCATION}/lib*${IMGPV}<br>&gt; &gt; &gt;${ESLOCATION}/pvr_drv.so<br>&gt; &gt; &gt;&gt; ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for esprog in $shared_prog $raw_prog<br>&gt; &gt; &gt;&gt; ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;<br>&gt; &gt; &gt;do<br>&gt; &gt; &gt;&gt; +&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for esprog in $shared_prog $raw_prog ; do<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755 ${ESLOCATION}/$esprog<br>&gt; &gt; &gt;${D}${bindir}/ES${esrev}.0/<br>&gt; &gt; &gt;&gt; 2&gt;/dev/null || true<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; done<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt;  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm<br>&gt; &gt; &gt;&gt; ${D}${bindir}/pdsasm -f || true<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; install -d ${D}${prefix}/share/applications<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; rm ${D}${prefix}/share/applications/sample.desktop<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; if [ ${SUPPORT_XORG} -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${bindir}/SGX/demos/X11/≤br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755 ${S}/demos/x11/*<br>&gt; &gt; &gt;&gt;
 ${D}${bindir}/SGX/demos/X11/≤br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${bindir}/SGX/trainingcourses/X11<br>&gt; &gt; &gt;&gt; 2&gt;/dev/null || true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755 ${S}/trainingcourses/x11/*<br>&gt; &gt; &gt;&gt; ${D}${bindir}/SGX/trainingcourses/X11/ 2&gt;/dev/null || true<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${bindir}/SGX/demos/Raw/≤br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -m 0755 ${S}/demos/raw/*<br>&gt; &gt; &gt;&gt; ${D}${bindir}/SGX/demos/Raw/≤br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; install -d ${D}${bindir}/SGX/trainingcourses/Raw<br>&gt; &gt; &gt;&gt; 2&gt;/dev/null || true<br>&gt; &gt; &gt;&gt;  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; }<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -PACKAGES =+
 "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-<br>&gt; &gt; &gt;&gt; x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"<br>&gt; &gt; &gt;,"", d)}<br>&gt; &gt; &gt;&gt; \<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-<br>&gt; &gt; &gt;&gt; tests"<br>&gt; &gt; &gt;&gt; +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-<br>&gt; &gt; &gt;&gt; tests"<br>&gt; &gt; &gt;&gt;&nbsp; # Package the base libraries per silicon revision&nbsp; PACKAGES =+<br>&gt; &gt; &gt;&gt; "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"<br>&gt; &gt; &gt;&gt;&nbsp; RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6<br>&gt; &gt; &gt;&gt; ${PN}-es8"<br>&gt; &gt; &gt;&gt;  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so<br>&gt; &gt; &gt;&gt; libIMGegl.so libsrv_um.so libOpenVG.so li<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; PACKAGES =+
 "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl<br>&gt; &gt; &gt;&gt; ${PN}-linuxfbwsegl"<br>&gt; &gt; &gt;&gt; -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-<br>&gt; &gt; &gt;&gt; x11wsegl ${PN}-driwsegl" ,"", d)}"<br>&gt; &gt; &gt;&gt; +<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-frontwsegl =<br>&gt; &gt; &gt;"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-linuxfbwsegl =<br>&gt; &gt; &gt;&gt; "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*<br>&gt; &gt; &gt;&gt; ${bindir}/x* ${bindir}/*x"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*<br>&gt; &gt; &gt;&gt; ${libdir}/libsrv_um_dri*"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt;
 &gt;&gt;&nbsp; PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-<br>&gt; &gt; &gt;&gt; blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-<br>&gt; &gt; &gt;&gt; flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-<br>&gt; &gt; &gt;&gt; flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-<br>&gt; &gt; &gt;&gt; frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-<br>&gt; &gt; &gt;&gt; frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3<br>&gt; &gt; &gt;&gt; ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-<br>&gt; &gt; &gt;linuxfbwsegl- es8"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-<br>&gt; &gt; &gt;&gt; x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-<br>&gt; &gt; &gt;&gt; driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-<br>&gt; &gt; &gt;&gt; driwsegl-es6 ${PN}-driwsegl-es8 "<br>&gt; &gt; &gt;&gt; -PACKAGES =+
 "${ <at> base_contains('DISTRO_FEATURES',<br>&gt; &gt; &gt;&gt; 'x11',"${X11_SEGL}" ,"", d)}"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-blitwsegl-es2 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-blitwsegl-es3 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-blitwsegl-es5 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"<br>&gt; &gt; &gt;&gt;  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-linuxfbwsegl-es8 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"<br>&gt; &gt; &gt;&gt;&nbsp; RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2<br>&gt; &gt; &gt;${PN}-<br>&gt; &gt; &gt;&gt; linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6<br>&gt; &gt; &gt;&gt;
 ${PN}-linuxfbwsegl-es8"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11wsegl-es2 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*<br>&gt; &gt; &gt;&gt; ${bindir}/ES2*/*x"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11wsegl-es3 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*<br>&gt; &gt; &gt;&gt; ${bindir}/ES3*/*x"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11wsegl-es5 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*<br>&gt; &gt; &gt;&gt; ${bindir}/ES5*/*x"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11wsegl-es6 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*<br>&gt; &gt; &gt;&gt; ${bindir}/ES6*/*x"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11wsegl-es8 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*<br>&gt; &gt; &gt;&gt; ${bindir}/ES8*/*x"<br>&gt; &gt; &gt;&gt; -RRECOMMENDS_${PN}-x11wsegl = "
 ${PN}-x11wsegl-es2 ${PN}-<br>&gt; &gt; &gt;&gt; x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-<br>&gt; &gt; &gt;&gt; x11wsegl-es8"<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -FILES_${PN}-driwsegl-es2 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*<br>&gt; &gt; &gt;&gt; ${libdir}/ES2*/libsrv_um_dri*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-driwsegl-es3 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*<br>&gt; &gt; &gt;&gt; ${libdir}/ES3*/libsrv_um_dri*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-driwsegl-es5 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*<br>&gt; &gt; &gt;&gt; ${libdir}/ES5*/libsrv_um_dri*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-driwsegl-es6 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*<br>&gt; &gt; &gt;&gt; ${libdir}/ES6*/libsrv_um_dri*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-driwsegl-es8 =<br>&gt; &gt; &gt;&gt; "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*<br>&gt; &gt;
 &gt;&gt; ${libdir}/ES8*/libsrv_um_dri*"<br>&gt; &gt; &gt;&gt; -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-<br>&gt; &gt; &gt;&gt; driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-<br>&gt; &gt; &gt;&gt; driwsegl-es8"<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt;&nbsp; CONFFILES_${PN} = "${sysconfdir}/powervr.ini"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN} = "${sysconfdir} ${libdir}/*.so*≤br>&gt; &gt; &gt;${bindir}/${PVR_INIT}<br>&gt; &gt; &gt;&gt; ${bindir}/cputype ${bindir}/*"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-tests = "${bindir}/*test*"<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at> <br>&gt; &gt; &gt;&gt; -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg =
 "${libdir}/.debug/*<br>&gt; &gt; &gt;&gt; ${bindir}/.debug/* \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp; "<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*<br>&gt; &gt; &gt;&gt; ${prefix}/share/applications "<br>&gt; &gt; &gt;&gt; -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN}-rawtrainingcourses =<br>&gt; &gt; &gt;&gt; "${bindir}/SGX/trainingcourses/Raw/*"<br>&gt; &gt; &gt;&gt; -FILES_${PN}-x11trainingcourses =<br>&gt; &gt; &gt;&gt; "${bindir}/SGX/trainingcourses/X11/*"<br>&gt; &gt; &gt;&gt; -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; # The libs need the kernel-modules<br>&gt; &gt; &gt;&gt;&nbsp; RRECOMMENDS_${PN} += "omap3-sgx-modules"<br>&gt; &gt; &gt;&gt;  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 =
 "ldflags dev-so<br>&gt; &gt; &gt;staticdev"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-blitwsegl = "ldflags"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"<br>&gt; &gt; &gt;&gt;  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =<br>&gt; &gt; &gt;"ldflags"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"<br>&gt; &gt; &gt;&gt;
 -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"<br>&gt; &gt; &gt;&gt;&nbsp; INSANE_SKIP_${PN}-tests = "ldflags"<br>&gt; &gt; &gt;&gt; -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; # Quality control is really poor on these SDKs, so hack around<br>&gt; &gt;
 &gt;the<br>&gt; &gt; &gt;&gt; latest madness:<br>&gt; &gt; &gt;&gt;&nbsp; FILES_${PN} += "${libdir}/*.so "<br>&gt; &gt; &gt;&gt;  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40<br>&gt; &gt; &gt;&gt; 0 1 6 ."<br>&gt; &gt; &gt;&gt;&nbsp; # Append to update-rc.d postinst<br>&gt; &gt; &gt;&gt;&nbsp; pkg_postinst_${PN}_append() {<br>&gt; &gt; &gt;&gt;&nbsp; rm -f $D${sysconfdir}/powervr-esrev<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -if [ ${SUPPORT_XORG} -eq 1 ] ; then<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0<br>&gt; &gt; &gt;&gt; -&nbsp;&nbsp;&nbsp; ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0<br>&gt; &gt; &gt;&gt; -fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt;&nbsp; }<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; pkg_postinst_${PN}-blitwsegl() {<br>&gt; &gt; &gt;&gt;  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {&nbsp; rm -f<br>&gt; &gt; &gt;&gt;
 $D${sysconfdir}/powervr-esrev&nbsp; }<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -pkg_postinst_${PN}-x11wsegl() {<br>&gt; &gt; &gt;&gt; -rm -f $D${sysconfdir}/powervr-esrev<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -echo "[default]" &gt; $D${sysconfdir}/powervr.ini -echo<br>&gt; &gt; &gt;&gt; "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" &gt;&gt;<br>&gt; &gt; &gt;&gt; $D${sysconfdir}/powervr.ini -}<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -pkg_postinst_${PN}-driwsegl() {<br>&gt; &gt; &gt;&gt; -rm -f $D${sysconfdir}/powervr-esrev<br>&gt; &gt; &gt;&gt; -}<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; diff --git a/recipes-graphics/libgles/libgles-<br>&gt; &gt; &gt;omap3_4.09.00.01.bb<br>&gt; &gt; &gt;&gt; b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb<br>&gt; &gt; &gt;&gt; index 7c6f231..165a406 100644<br>&gt; &gt; &gt;&gt; --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb<br>&gt; &gt; &gt;&gt; +++
 b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb<br>&gt; &gt; &gt;&gt;  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"<br>&gt; &gt; &gt;&gt;&nbsp; SRC_URI = "<a href="http://software-/" target="_blank">http://software-</a><br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV<br>&gt; &gt; &gt;&gt; }/exports/${BINFILE} \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  file://cputype \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  file://rc.pvr \<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  file://rc_dri.pvr \<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  file://sample.desktop \<br>&gt; &gt; &gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  file://99-bufferclass.rules&nbsp; \&nbsp; "<br>&gt; &gt; &gt;&gt;&nbsp; SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"<br>&gt; &gt; &gt;&gt;  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum]
 =<br>&gt; &gt; &gt;&gt; "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp; S = "${WORKDIR}/Graphics_SDK_${SGXPV}"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',<br>&gt; &gt; &gt;&gt; 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",<br>&gt; &gt; &gt;d)}"<br>&gt; &gt; &gt;&gt; +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; -do_configure_append() {<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; # Change PVR server's user mode library to point to DRI<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; for drifile in $(find ${S} -name "libsrv_um_dri.so"); do<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; if [ "$drifile" != "" ]<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; then<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; dir=$(dirname ${drifile})<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp;
 &nbsp; if [ "$SUPPORT_XORG" = "1" ]<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; then<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; else<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rm -rf ${dir}/libsrv_um_dri.so<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; fi<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; done<br>&gt; &gt; &gt;&gt; -}<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -do_install_append() {<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; # In this version of the graphics SDK the following<br>&gt; &gt; &gt;&gt; directories do not exist:<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; #<br>&gt; &gt; &gt;&gt; /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h<br>&gt; &gt; &gt;&gt; (doesn't exist)<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp;
 #<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype<br>&gt; &gt; &gt;&gt; s.h (doesn't exist)<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; # Therefore, need to copy these files manually at the only<br>&gt; &gt; &gt;&gt; location that they do exist<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; rm ${D}${sysconfdir}/init.d/pvr-init<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; if [ "$SUPPORT_XORG" = "1" ]; then<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; cp -pP ${WORKDIR}/rc_dri.pvr<br>&gt; &gt; &gt;&gt; ${D}${sysconfdir}/init.d/pvr-init<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; else<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; &nbsp; &nbsp; cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-<br>&gt; &gt;
 &gt;&gt; init<br>&gt; &gt; &gt;&gt; -&nbsp; &nbsp; fi<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -}<br>&gt; &gt; &gt;&gt; -<br>&gt; &gt; &gt;&gt; -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"<br>&gt; &gt; &gt;&gt; -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"<br>&gt; &gt; &gt;&gt; --<br>&gt; &gt; &gt;&gt; 1.7.1<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; _______________________________________________<br>&gt; &gt; &gt;&gt; meta-ti mailing list<br>&gt; &gt; &gt;&gt; <a ymailto="mailto:meta-ti <at> yoctoproject.org" href="mailto:meta-ti@...">meta-ti <at> yoctoproject.org</a><br>&gt; &gt; &gt;&gt; <a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br>&gt; &gt; _______________________________________________<br>&gt; &gt; meta-ti mailing list<br>&gt; &gt; <a ymailto="mailto:meta-ti <at> yoctoproject.org" href="mailto:meta-ti@...">meta-ti@...</a><br>&gt; &gt; <a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br>&gt; &gt; <br>&gt; _______________________________________________<br>&gt; meta-ti mailing list<br>&gt; <a ymailto="mailto:meta-ti@..." href="mailto:meta-ti@...">meta-ti@...</a><br>&gt; <a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br>_______________________________________________<br>meta-ti mailing list<br><a ymailto="mailto:meta-ti@..." href="mailto:meta-ti@...">meta-ti <at> yoctoproject.org</a><br><a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br>_______________________________________________<br>meta-ti mailing list<br><a ymailto="mailto:meta-ti@..." href="mailto:meta-ti <at> yoctoproject.org">meta-ti@...</a><br><a href="https://lists.yoctoproject.org/listinfo/meta-ti" target="_blank">https://lists.yoctoproject.org/listinfo/meta-ti</a><br><br><br>
</div> </div> </div>  </div></div>
Denys Dmytriyenko | 17 May 19:07 2013
Picon

Re: [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging

On Fri, May 17, 2013 at 10:02:15AM -0700, Prabindh Sundareson wrote:
> Chase, Denys,
> 
> I have resubmitted the patches with comments incorporated. RPROVIDES 
> clarification is pending so still keeping as it was. Please review,

Thanks! I'll take a look.

-- 
Denys

> ________________________________
>  From: "Sundareson, Prabindh" <prabu@...>
> To: "Dmytriyenko, Denys" <denys@...>; "Maupin, Chase"
<chase.maupin <at> ti.com> 
> Cc: "meta-ti@..."
<meta-ti@...> 
> Sent: Wednesday, May 15, 2013 8:18 AM
> Subject: Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and	packaging
>  
> 
> Denys,
> 
> Thanks for the review. I will resubmit the patch-set for review - with below comments implemented. 
> 
> regards,
> Prabu
> 
> 
> -----Original Message-----
> From: meta-ti-bounces@...
[mailto:meta-ti-bounces <at> yoctoproject.org] On Behalf Of Dmytriyenko, Denys
> Sent: Tuesday, May 14, 2013 11:17 PM
> To: Maupin, Chase
> Cc: meta-ti@...
> Subject: Re: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11 related build and packaging
> 
> Prabu,
> 
> I don't think I have any more comments, than for 01, 06 and 08. Will you be re-submitting the entire set
later? I'll go ahead and remove this set from my queue as it will be "superseded". Thanks!
> 
> --
> Denys
> 
> 
> On Tue, May 14, 2013 at 01:23:16PM -0400, Denys Dmytriyenko wrote:
> > On Fri, May 10, 2013 at 01:27:09PM +0000, Maupin, Chase wrote:
> > > 
> > > >-----Original Message-----
> > > >From: Sundareson, Prabindh
> > > >Sent: Friday, May 10, 2013 4:17 AM
> > > >To: Maupin, Chase; meta-ti@...
> > > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > > >related build and packaging
> > > >
> > > >Chase, thanks for the review,
> > > >
> > > >1) Ok, I will add it. By "later recipe", you mean the separated
> > > >x11 recipe, right ?
> > > 
> > > Yes sir
> > > 
> > > >
> > > >2) Good point - I am ok to leave the old .inc and create a new one
> > > >with the changes starting from 4.09 then. Is this ok ?
> > > 
> > > I'm OK with the approach.  Denys, any concern here?
> > 
> > Sounds good - there are still some users of 4.08 out there...
> > 
> > 
> > > >regards,
> > > >Prabu
> > > >
> > > >
> > > >-----Original Message-----
> > > >From: Maupin, Chase
> > > >Sent: Wednesday, May 08, 2013 6:48 PM
> > > >To: Sundareson, Prabindh; meta-ti@...
> > > >Subject: RE: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > > >related build and packaging
> > > >
> > > >Prabu,
> > > >
> > > >Overall nice job.  A couple of things I noticed.
> > > >
> > > >1. You removed the sample.desktop file but did not put it back in
> > > >a later recipe.
> > > >2. You modified the common .inc file and then added the X11 pieces
> > > >back for 4.09.00.01.  This would break people using the older
> > > >recipes though.  So would it perhaps be a good idea to leave the
> > > >.inc alone and then create a new include file for newer recipe
> > > >that do this split going forward?  Or would it be simpler to
> > > >provide the X11 package for the older versions as well?  This is
> > > >just a thought and I'm hoping others will chime in here.
> > > >
> > > >Thanks for the patches, it is really good to see this work being
> > > >done :)
> > > >
> > > >> -----Original Message-----
> > > >> From: meta-ti-bounces@... [mailto:meta-ti-
> > > >> bounces@...] On Behalf Of Sundareson, Prabindh
> > > >> Sent: Thursday, May 02, 2013 8:39 AM
> > > >> To: meta-ti@...
> > > >> Subject: [meta-ti] [PATCH 01/10] libgles-omap3: Remove X11
> > > >related
> > > >> build and packaging
> > > >>
> > > >> The SGX530 driver for X11 is only buildable and testable
> > > >standalone
> > > >> with the pre-built X11 package provided with the Graphics SDK.
> > > >> This patch removes X11 build from the default recipe, to enable
> > > >moving
> > > >> X11 build to a separate recipe.
> > > >>
> > > >> This is part of a clean up of the Graphics recipe starting from
> > > >> 4.09.00.01 version of the Graphics SDK.
> > > >>
> > > >> Signed-off-by: Prabindh Sundareson <prabu@...>
> > > >> ---
> > > >>  recipes-graphics/libgles/libgles-omap3.inc         |  168 ++++-
> > > >-
> > > >> --------------
> > > >>  .../libgles/libgles-omap3_4.09.00.01.bb            |   43 +----
> > > >-
> > > >>  2 files changed, 30 insertions(+), 181 deletions(-)
> > > >>
> > > >> diff --git a/recipes-graphics/libgles/libgles-omap3.inc
> > > >> b/recipes-graphics/libgles/libgles-omap3.inc
> > > >> index 9a90c56..130dc49 100644
> > > >> --- a/recipes-graphics/libgles/libgles-omap3.inc
> > > >> +++ b/recipes-graphics/libgles/libgles-omap3.inc
> > > >>  <at>  <at>  -7,10 +7,6  <at>  <at>  PR = "r35"
> > > >>
> > > >>  COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
> > > >>
> > > >> -X11DEPENDS = "virtual/libx11 libxau libxdmcp libdrm"
> > > >> -DEPENDS = "${ <at> base_contains('DISTRO_FEATURES', 'x11',
> > > >> '${X11DEPENDS}', '', d)}"
> > > >> -
> > > >> -export SUPPORT_XORG ?= "${ <at> base_contains('DISTRO_FEATURES',
> > > >> 'x11', '1', '0', d)}"
> > > >>  PVR_INIT ?= "pvrsrvinit"
> > > >>
> > > >>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
> > > >>  <at>  <at>  -22,7 +18,6  <at>  <at>  RREPLACES_${PN}-dbg = "libegl-dbg"
> > > >>  SRC_URI = "http://software-
> > > >>
> > > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > > >> }/exports/${BINFILE} \
> > > >>             file://cputype \
> > > >>             file://rc.pvr \
> > > >> -           file://sample.desktop \
> > > >>             file://99-bufferclass.rules  \
> > > >>  "
> > > >>
> > > >>  <at>  <at>  -79,87 +74,53  <at>  <at>  do_compile() {
> > > >>      export PLAT_CPP="${CXX}"
> > > >>      export PLAR_AR="${AR}"
> > > >>
> > > >> -    if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > > >> -        export X11ROOT="${STAGING_DIR_HOST}/usr"
> > > >> -        mkdir -p ${S}/demos/x11
> > > >> -        mkdir -p ${S}/trainingcourses/x11
> > > >> -    fi
> > > >> -
> > > >>      mkdir -p ${S}/demos/raw
> > > >>      mkdir -p ${S}/trainingcourses/raw
> > > >>
> > > >>      # Rebuild demos
> > > >> -    for X11BUILD in 0 1 ; do
> > > >> -        # Don't rebuild demos with X11 support for a non X11
> > > >> distro
> > > >> -        if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > > >> then
> > > >> -            continue
> > > >> -        fi
> > > >> +    for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ;
> > > >> do
> > > >> +        cd $demo/OGLES/Build/LinuxGeneric
> > > >> +        oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > > >> +        rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > > >> +
> > > >> +        install -m 0755
> > > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > > >true
> > > >> +    done
> > > >> +
> > > >> +    for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ;
> > > >> do
> > > >> +        cd $demo/OGLES2/Build/LinuxGeneric
> > > >> +        oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > > >> +        rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > > >>
> > > >> -        for demo in
> > > >> ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
> > > >> -            cd $demo/OGLES/Build/LinuxGeneric
> > > >> -            oe_runmake Common=1 PLATFORM=${PLATFORM}
> > > >> X11BUILD=$X11BUILD
> > > >> -            rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
> > > >> -
> > > >> -            if [ $X11BUILD -eq 1 ] ; then
> > > >> -                install -m 0755
> > > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > > >true
> > > >> -                sed -e s:NAME:$(basename $demo): \
> > > >> -                    -e
> > > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > > >> $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \
> > > >> -                    ${WORKDIR}/sample.desktop >
> > > >> ${WORKDIR}/$(basename $demo).desktop
> > > >> -            else
> > > >> -                install -m 0755
> > > >> $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > > >true
> > > >> -            fi
> > > >> -        done
> > > >> -
> > > >> -        for demo in
> > > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
> > > >> -            cd $demo/OGLES2/Build/LinuxGeneric
> > > >> -            oe_runmake Common=1 PLATFORM=${PLATFORM}
> > > >> X11BUILD=$X11BUILD
> > > >> -            rm -f
> > > >> $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
> > > >> -
> > > >> -            if [ $X11BUILD -eq 1 ] ; then
> > > >> -                install -m 0755
> > > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 ||
> > > >true
> > > >> -                sed -e s:NAME:$(basename $demo): \
> > > >> -                    -e
> > > >> s:EXEC:${bindir}/SGX/demos/X11/$(basename
> > > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \
> > > >> -                    ${WORKDIR}/sample.desktop >
> > > >> ${WORKDIR}/$(basename $demo).desktop
> > > >> -            else
> > > >> -                install -m 0755
> > > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > > >true
> > > >> -            fi
> > > >> -        done
> > > >> +        install -m 0755
> > > >> $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw ||
> > > >true
> > > >>      done
> > > >>
> > > >>      find ${S} -name "*_org" -delete
> > > >>
> > > >>      # Build OGLES2 Trainingcourses
> > > >> -    for X11BUILD in 0 1 ; do
> > > >> -        # Don't rebuild training courses with X11 support for
> > > >> a non X11 distro
> > > >> -        if [ ${SUPPORT_XORG} -eq 0 -a $X11BUILD -eq 1 ] ;
> > > >> then
> > > >> -            continue
> > > >> +    for training in
> > > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > > >> +        if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile
> > > >> ] ; then
> > > >> +            cd $training/OGLES2/Build/LinuxGeneric
> > > >>          fi
> > > >>
> > > >> -        for training in
> > > >> ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
> > > >> -            if [ -e
> > > >> $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
> > > >> -                cd $training/OGLES2/Build/LinuxGeneric
> > > >> -            fi
> > > >> -
> > > >> -            if [ -e
> > > >> $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
> > > >> -                cd $training/OGLES2/Build/${PLATFORM}
> > > >> -            fi
> > > >> +        if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ]
> > > >> ; then
> > > >> +            cd $training/OGLES2/Build/${PLATFORM}
> > > >> +        fi
> > > >>
> > > >> -            oe_runmake Common=1 PLATFORM=${PLATFORM}
> > > >> X11BUILD=$X11BUILD
> > > >> -            rm -f
> > > >> $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > > >> +        oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
> > > >> +        rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
> > > >>
> > > >> -            if [ $X11BUILD -eq 1 ] ; then
> > > >> -                install -m 0755
> > > >> $training/OGLES2/Build/${PLATFORM}/ReleaseX11/*
> > > >> ${S}/trainingcourses/x11 || true
> > > >> -            else
> > > >> -                install -m 0755
> > > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > > >> ${S}/trainingcourses/raw || true
> > > >> -            fi
> > > >> -        done
> > > >> +        install -m 0755
> > > >> $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/*
> > > >> ${S}/trainingcourses/raw || true
> > > >>      done
> > > >>
> > > >> +
> > > >>  }
> > > >>
> > > >>  do_install () {
> > > >>      install -d ${D}${libdir}
> > > >>      cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
> > > >> +     rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > > >> +     rm ${D}${libdir}/libsrv_um_dri.so*
> > > >> +     rm ${D}${libdir}/pvr_drv.so*
> > > >>      install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
> > > >>
> > > >>      install -d ${D}${bindir}/
> > > >>  <at>  <at>  -169,12 +130,6  <at>  <at>  do_install () {
> > > >>      install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
> > > >>      install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
> > > >>
> > > >> -    if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > > >> -        install -m 0755 ${BINLOCATION}/xgles1test1
> > > >> ${D}${bindir}/
> > > >> -        install -m 0755
> > > >> ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx
> > > >> ${D}${bindir}/|| true
> > > >> -        cp -pPR
> > > >>
> > > >${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/li
> > > >> b/*X11WS* ${D}${libdir} || true
> > > >> -    fi
> > > >> -
> > > >>      install -d ${D}${includedir}
> > > >>      cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
> > > >>      cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/  <at>  <at>  -
> > > >211,13
> > > >> +166,12  <at>  <at>  do_install () {
> > > >>
> > > >>      shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test
> > > >> sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test
> > > >> sgx_render_flip_test"
> > > >>      raw_prog="gles1test1 gles2test1 ovg_unit_test"
> > > >> -    x11_prog="eglinfo_x xgles1test1 xgles2test1 xmultiegltest
> > > >> xovg_unit_test"
> > > >>
> > > >>      for esrev in 2 3 5 6 8 ; do
> > > >>          ESLOCATION=$(eval echo $(echo
> > > >> \$\{ES${esrev}LOCATION\}))
> > > >>          if [ -e ${ESLOCATION} ] ; then
> > > >>              cp -pPR ${ESLOCATION}/lib*${IMGPV}
> > > >${ESLOCATION}/pvr_drv.so
> > > >> ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
> > > >> -            for esprog in $shared_prog $raw_prog
> > > >> ${ <at> base_contains('DISTRO_FEATURES', 'x11',"$x11_prog","",d)} ;
> > > >do
> > > >> +            for esprog in $shared_prog $raw_prog ; do
> > > >>                  install -m 0755 ${ESLOCATION}/$esprog
> > > >${D}${bindir}/ES${esrev}.0/
> > > >> 2>/dev/null || true
> > > >>              done
> > > >>          fi
> > > >>  <at>  <at>  -225,17 +179,6  <at>  <at>  do_install () {
> > > >>
> > > >>      rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm
> > > >> ${D}${bindir}/pdsasm -f || true
> > > >>
> > > >> -    install -d ${D}${prefix}/share/applications
> > > >> -    cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
> > > >> -    rm ${D}${prefix}/share/applications/sample.desktop
> > > >> -
> > > >> -    if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > > >> -        install -d ${D}${bindir}/SGX/demos/X11/
> > > >> -        install -m 0755 ${S}/demos/x11/*
> > > >> ${D}${bindir}/SGX/demos/X11/
> > > >> -        install -d ${D}${bindir}/SGX/trainingcourses/X11
> > > >> 2>/dev/null || true
> > > >> -        install -m 0755 ${S}/trainingcourses/x11/*
> > > >> ${D}${bindir}/SGX/trainingcourses/X11/ 2>/dev/null || true
> > > >> -    fi
> > > >> -
> > > >>      install -d ${D}${bindir}/SGX/demos/Raw/
> > > >>      install -m 0755 ${S}/demos/raw/*
> > > >> ${D}${bindir}/SGX/demos/Raw/
> > > >>      install -d ${D}${bindir}/SGX/trainingcourses/Raw
> > > >> 2>/dev/null || true
> > > >>  <at>  <at>  -251,8 +194,7  <at>  <at>  do_install () {
> > > >>
> > > >>  }
> > > >>
> > > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > > >> x11demos ${PN}-x11trainingcourses xserver-kdrive-powervrsgx"
> > > >,"", d)}
> > > >> \
> > > >> -             ${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > > >> tests"
> > > >> +PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-
> > > >> tests"
> > > >>  # Package the base libraries per silicon revision  PACKAGES =+
> > > >> "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
> > > >>  RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6
> > > >> ${PN}-es8"
> > > >>  <at>  <at>  -271,18 +213,14  <at>  <at>  PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so
> > > >> libIMGegl.so libsrv_um.so libOpenVG.so li
> > > >>
> > > >>
> > > >>  PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl
> > > >> ${PN}-linuxfbwsegl"
> > > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES', 'x11',"${PN}-
> > > >> x11wsegl ${PN}-driwsegl" ,"", d)}"
> > > >> +
> > > >>  FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
> > > >>  FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
> > > >>  FILES_${PN}-frontwsegl =
> > > >"${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
> > > >>  FILES_${PN}-linuxfbwsegl =
> > > >> "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > > >> -FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*
> > > >> ${bindir}/x* ${bindir}/*x"
> > > >> -FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*
> > > >> ${libdir}/libsrv_um_dri*"
> > > >>
> > > >>  PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-
> > > >> blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-
> > > >> flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-
> > > >> flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-
> > > >> frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-
> > > >> frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3
> > > >> ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-
> > > >linuxfbwsegl- es8"
> > > >>
> > > >> -X11_SEGL = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-
> > > >> x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-
> > > >> driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-
> > > >> driwsegl-es6 ${PN}-driwsegl-es8 "
> > > >> -PACKAGES =+ "${ <at> base_contains('DISTRO_FEATURES',
> > > >> 'x11',"${X11_SEGL}" ,"", d)}"
> > > >>  FILES_${PN}-blitwsegl-es2 =
> > > >> "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
> > > >>  FILES_${PN}-blitwsegl-es3 =
> > > >> "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
> > > >>  FILES_${PN}-blitwsegl-es5 =
> > > >> "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
> > > >>  <at>  <at>  -311,25 +249,10  <at>  <at>  FILES_${PN}-linuxfbwsegl-es6 =
> > > >> "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > > >>  FILES_${PN}-linuxfbwsegl-es8 =
> > > >> "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
> > > >>  RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2
> > > >${PN}-
> > > >> linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6
> > > >> ${PN}-linuxfbwsegl-es8"
> > > >>
> > > >> -FILES_${PN}-x11wsegl-es2 =
> > > >> "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES2*/x*
> > > >> ${bindir}/ES2*/*x"
> > > >> -FILES_${PN}-x11wsegl-es3 =
> > > >> "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES3*/x*
> > > >> ${bindir}/ES3*/*x"
> > > >> -FILES_${PN}-x11wsegl-es5 =
> > > >> "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES5*/x*
> > > >> ${bindir}/ES5*/*x"
> > > >> -FILES_${PN}-x11wsegl-es6 =
> > > >> "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES6*/x*
> > > >> ${bindir}/ES6*/*x"
> > > >> -FILES_${PN}-x11wsegl-es8 =
> > > >> "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.* ${bindir}/ES8*/x*
> > > >> ${bindir}/ES8*/*x"
> > > >> -RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-
> > > >> x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-
> > > >> x11wsegl-es8"
> > > >> -
> > > >> -FILES_${PN}-driwsegl-es2 =
> > > >> "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*
> > > >> ${libdir}/ES2*/libsrv_um_dri*"
> > > >> -FILES_${PN}-driwsegl-es3 =
> > > >> "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*
> > > >> ${libdir}/ES3*/libsrv_um_dri*"
> > > >> -FILES_${PN}-driwsegl-es5 =
> > > >> "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*
> > > >> ${libdir}/ES5*/libsrv_um_dri*"
> > > >> -FILES_${PN}-driwsegl-es6 =
> > > >> "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*
> > > >> ${libdir}/ES6*/libsrv_um_dri*"
> > > >> -FILES_${PN}-driwsegl-es8 =
> > > >> "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*
> > > >> ${libdir}/ES8*/libsrv_um_dri*"
> > > >> -RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-
> > > >> driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-
> > > >> driwsegl-es8"
> > > >> -
> > > >>  CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
> > > >>
> > > >>  FILES_${PN} = "${sysconfdir} ${libdir}/*.so*
> > > >${bindir}/${PVR_INIT}
> > > >> ${bindir}/cputype ${bindir}/*"
> > > >>
> > > >> -FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
> > > >>  FILES_${PN}-tests = "${bindir}/*test*"
> > > >>  FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
> > > >>                     ${libdir}/ES*/.debug ${bindir}/*/.debug\  <at>  <at> 
> > > >> -338,12 +261,8  <at>  <at>  FILES_${PN}-dbg = "${libdir}/.debug/*
> > > >> ${bindir}/.debug/* \
> > > >>      "
> > > >>
> > > >>  FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
> > > >> -FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/*
> > > >> ${prefix}/share/applications "
> > > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
> > > >>
> > > >>  FILES_${PN}-rawtrainingcourses =
> > > >> "${bindir}/SGX/trainingcourses/Raw/*"
> > > >> -FILES_${PN}-x11trainingcourses =
> > > >> "${bindir}/SGX/trainingcourses/X11/*"
> > > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
> > > >>
> > > >>  # The libs need the kernel-modules
> > > >>  RRECOMMENDS_${PN} += "omap3-sgx-modules"
> > > >>  <at>  <at>  -358,7 +277,6  <at>  <at>  INSANE_SKIP_${PN}-es5 = "ldflags dev-so
> > > >staticdev"
> > > >>  INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
> > > >>  INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
> > > >>  INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
> > > >> -INSANE_SKIP_${PN}-x11demos = "ldflags dev-so useless-rpaths"
> > > >>  INSANE_SKIP_${PN}-blitwsegl = "ldflags"
> > > >>  INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
> > > >>  INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
> > > >>  <at>  <at>  -379,18 +297,7  <at>  <at>  INSANE_SKIP_${PN}-linuxfbwsegl-es3 =
> > > >"ldflags"
> > > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
> > > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
> > > >>  INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
> > > >> -INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-x11wsegl-es3 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-x11wsegl-es5 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-x11wsegl-es6 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-x11wsegl-es8 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-driwsegl-es3 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-driwsegl-es5 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-driwsegl-es6 = "ldflags dev-so"
> > > >> -INSANE_SKIP_${PN}-driwsegl-es8 = "ldflags dev-so"
> > > >>  INSANE_SKIP_${PN}-tests = "ldflags"
> > > >> -INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
> > > >>
> > > >>  # Quality control is really poor on these SDKs, so hack around
> > > >the
> > > >> latest madness:
> > > >>  FILES_${PN} += "${libdir}/*.so "
> > > >>  <at>  <at>  -404,12 +311,6  <at>  <at>  INITSCRIPT_PARAMS = "start 30 5 2 . stop 40
> > > >> 0 1 6 ."
> > > >>  # Append to update-rc.d postinst
> > > >>  pkg_postinst_${PN}_append() {
> > > >>  rm -f $D${sysconfdir}/powervr-esrev
> > > >> -
> > > >> -if [ ${SUPPORT_XORG} -eq 1 ] ; then
> > > >> -    ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
> > > >> -    ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
> > > >> -fi
> > > >> -
> > > >>  }
> > > >>
> > > >>  pkg_postinst_${PN}-blitwsegl() {
> > > >>  <at>  <at>  -427,14 +328,3  <at>  <at>  pkg_postinst_${PN}-linuxfbwsegl() {  rm -f
> > > >> $D${sysconfdir}/powervr-esrev  }
> > > >>
> > > >> -pkg_postinst_${PN}-x11wsegl() {
> > > >> -rm -f $D${sysconfdir}/powervr-esrev
> > > >> -
> > > >> -echo "[default]" > $D${sysconfdir}/powervr.ini -echo
> > > >> "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >>
> > > >> $D${sysconfdir}/powervr.ini -}
> > > >> -
> > > >> -pkg_postinst_${PN}-driwsegl() {
> > > >> -rm -f $D${sysconfdir}/powervr-esrev
> > > >> -}
> > > >> -
> > > >> diff --git a/recipes-graphics/libgles/libgles-
> > > >omap3_4.09.00.01.bb
> > > >> b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > > >> index 7c6f231..165a406 100644
> > > >> --- a/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > > >> +++ b/recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb
> > > >>  <at>  <at>  -23,8 +23,6  <at>  <at>  TI_BIN_UNPK_WDEXT := "/Graphics_SDK_${SGXPV}"
> > > >>  SRC_URI = "http://software-
> > > >>
> > > >dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV
> > > >> }/exports/${BINFILE} \
> > > >>             file://cputype \
> > > >>             file://rc.pvr \
> > > >> -           file://rc_dri.pvr \
> > > >> -           file://sample.desktop \
> > > >>             file://99-bufferclass.rules  \  "
> > > >>  SRC_URI[md5sum] = "bd35e9d8843aff3a2aca9d41e7db1c7d"
> > > >>  <at>  <at>  -32,44 +30,5  <at>  <at>  SRC_URI[sha256sum] =
> > > >> "eb37f75ddde4640b09e760fa86e689beb394330ecdf68786188c34f249
> > > >>
> > > >>  S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
> > > >>
> > > >> -LIBGLESWINDOWSYSTEM ?= "${ <at> base_contains('DISTRO_FEATURES',
> > > >> 'x11',"libpvrPVR2D_DRIWSEGL.so" ,"libpvrPVR2D_FRONTWSEGL.so.1",
> > > >d)}"
> > > >> +LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
> > > >>
> > > >> -do_configure_append() {
> > > >> -
> > > >> -    # Change PVR server's user mode library to point to DRI
> > > >> -    for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
> > > >> -    if [ "$drifile" != "" ]
> > > >> -    then
> > > >> -        dir=$(dirname ${drifile})
> > > >> -        if [ "$SUPPORT_XORG" = "1" ]
> > > >> -        then
> > > >> -            mv ${dir}/libsrv_um_dri.so ${dir}/libsrv_um.so
> > > >> -        else
> > > >> -            rm -rf ${dir}/libsrv_um_dri.so
> > > >> -        fi
> > > >> -    fi
> > > >> -
> > > >> -    done
> > > >> -}
> > > >> -
> > > >> -do_install_append() {
> > > >> -
> > > >> -    # In this version of the graphics SDK the following
> > > >> directories do not exist:
> > > >> -    #
> > > >> /GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/pvr2d.h
> > > >> (doesn't exist)
> > > >> -    #
> > > >>
> > > >/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/GLES/egltype
> > > >> s.h (doesn't exist)
> > > >> -    # Therefore, need to copy these files manually at the only
> > > >> location that they do exist
> > > >> -    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
> > > >> -    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/
> > > >> -
> > > >> -    rm ${D}${sysconfdir}/init.d/pvr-init
> > > >> -
> > > >> -    if [ "$SUPPORT_XORG" = "1" ]; then
> > > >> -        cp -pP ${WORKDIR}/rc_dri.pvr
> > > >> ${D}${sysconfdir}/init.d/pvr-init
> > > >> -    else
> > > >> -        cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-
> > > >> init
> > > >> -    fi
> > > >> -
> > > >> -}
> > > >> -
> > > >> -RRECOMMENDS_${PN}-x11demos = "${PN}-driwsegl"
> > > >> -RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-driwsegl"
> > > >> --
> > > >> 1.7.1
> > > >>
> > > >> _______________________________________________
> > > >> meta-ti mailing list
> > > >> meta-ti@...
> > > >> https://lists.yoctoproject.org/listinfo/meta-ti
> > > _______________________________________________
> > > meta-ti mailing list
> > > meta-ti@...
> > > https://lists.yoctoproject.org/listinfo/meta-ti
> > > 
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@...
> > https://lists.yoctoproject.org/listinfo/meta-ti
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti
> _______________________________________________
> meta-ti mailing list
> meta-ti@...
> https://lists.yoctoproject.org/listinfo/meta-ti

Gmane