Patchwork [meta-fsl-demos] vivante-gpu-sdk: Add recipe for GPU samples

login
register
mail settings
Submitter Diego Rondini
Date May 22, 2013, 9:47 a.m.
Message ID <1369216079-8765-1-git-send-email-diego.ml@zoho.com>
Download mbox | patch
Permalink /patch/50305/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Diego Rondini - May 22, 2013, 9:47 a.m.
Provides the samples provided by Vivante for use with the GPU.

Signed-off-by: Diego Rondini <diego.ml@zoho.com>
---
 ...ation-of-the-GLES1.1-X11-Samples-in-Yocto.patch |  598 ++++++++++++++++++++
 ...d-missing-GLES1.1-samples-in-X11-Makefile.patch |   32 ++
 .../vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb        |   36 ++
 3 files changed, 666 insertions(+)
 create mode 100644 recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch
 create mode 100644 recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-GLES1.1-samples-in-X11-Makefile.patch
 create mode 100644 recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb
Otavio Salvador - May 22, 2013, 12:55 p.m.
On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <diego.ml@zoho.com> wrote:

> Provides the samples provided by Vivante for use with the GPU.
>
> Signed-off-by: Diego Rondini <diego.ml@zoho.com>
>

The patch seems good. Do you wish to get this in and add the other API
later or want to hold it until you finish the others?
Diego Rondini - May 22, 2013, 1:28 p.m.
Otavio Salvador <otavio@ossystems.com.br> ha scritto:

>On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <diego.ml@zoho.com>
>wrote:
>
>> Provides the samples provided by Vivante for use with the GPU.
>>
>> Signed-off-by: Diego Rondini <diego.ml@zoho.com>
>>
>
>The patch seems good. Do you wish to get this in and add the other API
>later or want to hold it until you finish the others?

Hi Otavio,

Please get this in, as there's still some work to do to support GLES2.0!

Thanks,
Diego
Otavio Salvador - May 22, 2013, 1:32 p.m.
On Wed, May 22, 2013 at 10:28 AM, Diego <diego.ml@zoho.com> wrote:

>
>
> Otavio Salvador <otavio@ossystems.com.br> ha scritto:
>
> >On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <diego.ml@zoho.com>
> >wrote:
> >
> >> Provides the samples provided by Vivante for use with the GPU.
> >>
> >> Signed-off-by: Diego Rondini <diego.ml@zoho.com>
> >>
> >
> >The patch seems good. Do you wish to get this in and add the other API
> >later or want to hold it until you finish the others?
>
> Hi Otavio,
>
> Please get this in, as there's still some work to do to support GLES2.0!
>

I will wait until tomorrow to give some time for others to comment and
merge it.

Thanks ;-)
Otavio Salvador - May 23, 2013, 4:26 p.m.
On Wed, May 22, 2013 at 10:32 AM, Otavio Salvador
<otavio@ossystems.com.br>wrote:

>
>
>
> On Wed, May 22, 2013 at 10:28 AM, Diego <diego.ml@zoho.com> wrote:
>
>>
>>
>> Otavio Salvador <otavio@ossystems.com.br> ha scritto:
>>
>> >On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <diego.ml@zoho.com>
>> >wrote:
>> >
>> >> Provides the samples provided by Vivante for use with the GPU.
>> >>
>> >> Signed-off-by: Diego Rondini <diego.ml@zoho.com>
>> >>
>> >
>> >The patch seems good. Do you wish to get this in and add the other API
>> >later or want to hold it until you finish the others?
>>
>> Hi Otavio,
>>
>> Please get this in, as there's still some work to do to support GLES2.0!
>>
>
> I will wait until tomorrow to give some time for others to comment and
> merge it.
>

I went to apply it  and noticed your author name is not complete. Please
fix it in the commit and send a new version of patch.
Diego Rondini - May 23, 2013, 8:01 p.m.
In data giovedì 23 maggio 2013 13:26:57, Otavio Salvador ha scritto:
> On Wed, May 22, 2013 at 10:32 AM, Otavio Salvador
> 
> <otavio@ossystems.com.br>wrote:
> > On Wed, May 22, 2013 at 10:28 AM, Diego <diego.ml@zoho.com> wrote:
> >> Otavio Salvador <otavio@ossystems.com.br> ha scritto:
> >> >On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <diego.ml@zoho.com>
> >> >
> >> >wrote:
> >> >> Provides the samples provided by Vivante for use with the GPU.
> >> >> 
> >> >> Signed-off-by: Diego Rondini <diego.ml@zoho.com>
> >> >
> >> >The patch seems good. Do you wish to get this in and add the other API
> >> >later or want to hold it until you finish the others?
> >> 
> >> Hi Otavio,
> >> 
> >> Please get this in, as there's still some work to do to support GLES2.0!
> > 
> > I will wait until tomorrow to give some time for others to comment and
> > merge it.
> 
> I went to apply it  and noticed your author name is not complete. Please
> fix it in the commit and send a new version of patch.

Hi,

I've double checked, but the author here looks fine to me:
https://lists.yoctoproject.org/pipermail/meta-freescale/2013-May/002816.html

Bye,
Diego
Otavio Salvador - May 23, 2013, 8:10 p.m.
On Thu, May 23, 2013 at 5:01 PM, Diego <diego.ml@zoho.com> wrote:

> In data giovedì 23 maggio 2013 13:26:57, Otavio Salvador ha scritto:
> > On Wed, May 22, 2013 at 10:32 AM, Otavio Salvador
> >
> > <otavio@ossystems.com.br>wrote:
> > > On Wed, May 22, 2013 at 10:28 AM, Diego <diego.ml@zoho.com> wrote:
> > >> Otavio Salvador <otavio@ossystems.com.br> ha scritto:
> > >> >On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <diego.ml@zoho.com>
> > >> >
> > >> >wrote:
> > >> >> Provides the samples provided by Vivante for use with the GPU.
> > >> >>
> > >> >> Signed-off-by: Diego Rondini <diego.ml@zoho.com>
> > >> >
> > >> >The patch seems good. Do you wish to get this in and add the other
> API
> > >> >later or want to hold it until you finish the others?
> > >>
> > >> Hi Otavio,
> > >>
> > >> Please get this in, as there's still some work to do to support
> GLES2.0!
> > >
> > > I will wait until tomorrow to give some time for others to comment and
> > > merge it.
> >
> > I went to apply it  and noticed your author name is not complete. Please
> > fix it in the commit and send a new version of patch.
>
> Hi,
>
> I've double checked, but the author here looks fine to me:
>
> https://lists.yoctoproject.org/pipermail/meta-freescale/2013-May/002816.html


It does but patchwork didn't agree:
http://patchwork.openembedded.org/patch/50305/

In any case I fixed it byhand. I think your e-mail client sending messages
without your surname makes patchwork change it.

It is applied in master.

Thanks

Patch

diff --git a/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch
new file mode 100644
index 0000000..07d561f
--- /dev/null
+++ b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch
@@ -0,0 +1,598 @@ 
+From 1d18aae77f0c2ff411d19ed5bd8c0b96bfd90190 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <diego.ml@zoho.com>
+Date: Tue, 30 Apr 2013 10:52:25 +0200
+Subject: [PATCH 1/2] Fix compilation of the GLES1.1 X11 Samples in Yocto
+
+This commit fixes the following build problems:
+- gcc 4.7 compatibility (remove unsupported "-Wl" option);
+- wrong compiler binary name (caused by an overwrite of CC and AR variables)
+- unknown include and library paths (caused by forcing paths when not needed)
+
+Upstream-Status: Pending
+
+Signed-off-by: Diego Rondini <diego.ml@zoho.com>
+---
+ Samples/GLES1.1/01_SimpleTriangle/Makefile.x11     |    9 +--------
+ Samples/GLES1.1/02_VertexColors/Makefile.x11       |    7 +------
+ .../GLES1.1/03_VertexTransformation/Makefile.x11   |    7 +------
+ .../04_ColoredVerticesInterpolation/Makefile.x11   |    7 +------
+ Samples/GLES1.1/05_GeometricObjects/Makefile.x11   |    7 +------
+ Samples/GLES1.1/06_Projection/Makefile.x11         |    7 +------
+ Samples/GLES1.1/07_BasicTexturing/Makefile.x11     |    7 +------
+ Samples/GLES1.1/08_Multitexturing/Makefile.x11     |    7 +------
+ Samples/GLES1.1/09_Alphablending/Makefile.x11      |    7 +------
+ Samples/GLES1.1/10_FilteringLights/Makefile.x11    |    7 +------
+ Samples/GLES1.1/11_LightingFog/Makefile.x11        |    7 +------
+ Samples/GLES1.1/12_Stencil/Makefile.x11            |    7 +------
+ Samples/GLES1.1/13_3DFonts/Makefile.x11            |    7 +------
+ .../14_ParticlesSpritesAnimation/Makefile.x11      |    7 +------
+ .../GLES1.1/15_ParticleAccelerator/Makefile.x11    |    7 +------
+ .../GLES1.1/16_VertexBufferObjects/Makefile.x11    |    7 +------
+ Samples/GLES1.1/17_Beizer/Makefile.x11             |    7 +------
+ 17 files changed, 17 insertions(+), 104 deletions(-)
+
+diff --git a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11 b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11
+index 1b86dbf..54c09ab 100755
+--- a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11
++++ b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11
+@@ -2,12 +2,6 @@ APPNAME			:= 01_SimpleTriangle
+ DESTDIR			?= .
+ 
+ 
+-# Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+-
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +15,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -30,7 +23,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/glu3.o
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL  -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL  -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/02_VertexColors/Makefile.x11 b/Samples/GLES1.1/02_VertexColors/Makefile.x11
+index 6d9d063..d2294e8 100755
+--- a/Samples/GLES1.1/02_VertexColors/Makefile.x11
++++ b/Samples/GLES1.1/02_VertexColors/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -30,7 +25,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/glu3.o
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL  -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL  -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/03_VertexTransformation/Makefile.x11 b/Samples/GLES1.1/03_VertexTransformation/Makefile.x11
+index b5574e0..8f41874 100755
+--- a/Samples/GLES1.1/03_VertexTransformation/Makefile.x11
++++ b/Samples/GLES1.1/03_VertexTransformation/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -30,7 +25,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/glu3.o
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL  -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL  -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11 b/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11
+index c9346f2..9092b2b 100755
+--- a/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11
++++ b/Samples/GLES1.1/04_ColoredVerticesInterpolation/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -29,7 +24,7 @@ OBJECTS_TUT += \
+ 	ColoredVerticesInterpolation.o \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/05_GeometricObjects/Makefile.x11 b/Samples/GLES1.1/05_GeometricObjects/Makefile.x11
+index a2cec68..295fd77 100755
+--- a/Samples/GLES1.1/05_GeometricObjects/Makefile.x11
++++ b/Samples/GLES1.1/05_GeometricObjects/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -30,7 +25,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/glu3.o
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/06_Projection/Makefile.x11 b/Samples/GLES1.1/06_Projection/Makefile.x11
+index 84b674f..a33dcef 100755
+--- a/Samples/GLES1.1/06_Projection/Makefile.x11
++++ b/Samples/GLES1.1/06_Projection/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -30,7 +25,7 @@ OBJECTS_TUT += \
+ 	render.o \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/07_BasicTexturing/Makefile.x11 b/Samples/GLES1.1/07_BasicTexturing/Makefile.x11
+index a22a236..1278393 100755
+--- a/Samples/GLES1.1/07_BasicTexturing/Makefile.x11
++++ b/Samples/GLES1.1/07_BasicTexturing/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -33,7 +28,7 @@ OBJECTS_TUT += \
+ 
+ ASSETS	= BasicTexturing.bmp
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/08_Multitexturing/Makefile.x11 b/Samples/GLES1.1/08_Multitexturing/Makefile.x11
+index f8d244f..d8a3841 100755
+--- a/Samples/GLES1.1/08_Multitexturing/Makefile.x11
++++ b/Samples/GLES1.1/08_Multitexturing/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ ASSETS	= data
+@@ -32,7 +27,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/fslutil.o\
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/09_Alphablending/Makefile.x11 b/Samples/GLES1.1/09_Alphablending/Makefile.x11
+index aa9ab43..39c964a 100755
+--- a/Samples/GLES1.1/09_Alphablending/Makefile.x11
++++ b/Samples/GLES1.1/09_Alphablending/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -33,7 +28,7 @@ OBJECTS_TUT += \
+ 
+ ASSETS	= Alphablending.bmp
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/10_FilteringLights/Makefile.x11 b/Samples/GLES1.1/10_FilteringLights/Makefile.x11
+index d5f17c7..9ac6886 100755
+--- a/Samples/GLES1.1/10_FilteringLights/Makefile.x11
++++ b/Samples/GLES1.1/10_FilteringLights/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -33,7 +28,7 @@ OBJECTS_TUT += \
+ 
+ ASSETS	= FilteringLights.bmp
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/11_LightingFog/Makefile.x11 b/Samples/GLES1.1/11_LightingFog/Makefile.x11
+index a284335..d2f57c2 100755
+--- a/Samples/GLES1.1/11_LightingFog/Makefile.x11
++++ b/Samples/GLES1.1/11_LightingFog/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ ASSETS	= data	
+@@ -32,7 +27,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/12_Stencil/Makefile.x11 b/Samples/GLES1.1/12_Stencil/Makefile.x11
+index 7d86842..1823434 100755
+--- a/Samples/GLES1.1/12_Stencil/Makefile.x11
++++ b/Samples/GLES1.1/12_Stencil/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -30,7 +25,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/glu3.o
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/13_3DFonts/Makefile.x11 b/Samples/GLES1.1/13_3DFonts/Makefile.x11
+index 7075616..0499002 100755
+--- a/Samples/GLES1.1/13_3DFonts/Makefile.x11
++++ b/Samples/GLES1.1/13_3DFonts/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -24,7 +20,6 @@ ASSETS	= data
+ 
+ 	
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -35,7 +30,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/fslutil.o\
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11 b/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11
+index ccf7a75..7be1e6d 100755
+--- a/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11
++++ b/Samples/GLES1.1/14_ParticlesSpritesAnimation/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -33,7 +28,7 @@ OBJECTS_TUT += \
+ 
+ ASSETS	= ParticlesSpritesAnimation.bmp
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11 b/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11
+index 67bae20..72c557e 100755
+--- a/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11
++++ b/Samples/GLES1.1/15_ParticleAccelerator/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 
+ ASSETS	= data
+@@ -37,7 +32,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/fslutil.o\
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11 b/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11
+index 418f37d..a96e982 100755
+--- a/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11
++++ b/Samples/GLES1.1/16_VertexBufferObjects/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			?= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 
+ ASSETS	= data
+@@ -36,7 +31,7 @@ OBJECTS_TUT += \
+ 	$(COMMON_DIR)/src/fsl_egl.o\
+ 	$(COMMON_DIR)/src/fslutil.o\
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+diff --git a/Samples/GLES1.1/17_Beizer/Makefile.x11 b/Samples/GLES1.1/17_Beizer/Makefile.x11
+index 7fba8ce..1e18c51 100755
+--- a/Samples/GLES1.1/17_Beizer/Makefile.x11
++++ b/Samples/GLES1.1/17_Beizer/Makefile.x11
+@@ -3,11 +3,7 @@ DESTDIR			= .
+ 
+ 
+ # Make command to use for dependencies
+-CC = $(CROSS_COMPILE)gcc
+-AR = $(CROSS_COMPILE)ar
+ 
+-TARGET_PATH_LIB = $(ROOTFS)/usr/lib
+-TARGET_PATH_INCLUDE = $(ROOTFS)/usr/include
+ COMMON_DIR=../common
+ 
+ BIN_TUT = $(DESTDIR)/$(APPNAME)
+@@ -21,7 +17,6 @@ CFLAGS_TUT += \
+ 	-DEGL_USE_X11 \
+ 
+ CFLAGS_TUT += \
+-	-I$(TARGET_PATH_INCLUDE) \
+ 	-I$(COMMON_DIR)/inc \
+ 	
+ 
+@@ -33,7 +28,7 @@ OBJECTS_TUT += \
+ 
+ ASSETS	= Beizer.bmp
+ 
+-DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl -Wl,--library-path=$(TARGET_PATH_LIB),-rpath-link=$(TARGET_PATH_LIB)
++DEPS_TUT = -lstdc++ -lm -lGLESv1_CM -lEGL -lX11 -ldl
+ 
+ $(BIN_TUT) : $(OBJECTS_TUT)
+ 	@echo " LD " $@
+-- 
+1.7.9.5
+
diff --git a/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-GLES1.1-samples-in-X11-Makefile.patch b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-GLES1.1-samples-in-X11-Makefile.patch
new file mode 100644
index 0000000..36566f9
--- /dev/null
+++ b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-GLES1.1-samples-in-X11-Makefile.patch
@@ -0,0 +1,32 @@ 
+From 390db03809834919d8d49faf9a0a528321684ac5 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <diego.ml@zoho.com>
+Date: Tue, 30 Apr 2013 12:46:38 +0200
+Subject: [PATCH 2/2] Don't build missing GLES1.1 samples in X11 Makefile
+
+GLES1.1 samples 18_VertexBufferObjects and 19_Beizer are not included in the package, so don't try to compile them in X11 Makefile
+
+Upstream-Status: Pending
+
+Signed-off-by: Diego Rondini <diego.ml@zoho.com>
+---
+ Samples/GLES1.1/Makefile.x11 |    4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/Samples/GLES1.1/Makefile.x11 b/Samples/GLES1.1/Makefile.x11
+index 003763d..1c95158 100755
+--- a/Samples/GLES1.1/Makefile.x11
++++ b/Samples/GLES1.1/Makefile.x11
+@@ -17,9 +17,7 @@ SUB_PROJECTS= \
+ 	14_ParticlesSpritesAnimation \
+ 	15_ParticleAccelerator \
+ 	16_VertexBufferObjects \
+-	17_Beizer \
+-	18_VertexBufferObjects \
+-	19_Beizer
++	17_Beizer
+ 	
+ 
+ .PHONY: all
+-- 
+1.7.9.5
+
diff --git a/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb
new file mode 100644
index 0000000..6527ea9
--- /dev/null
+++ b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb
@@ -0,0 +1,36 @@ 
+SUMMARY = "Vivante GPU SDK Samples"
+DESCRIPTION = "Set of sample applications compatible with Vivante GPU"
+LICENSE = "Proprietary"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b3ed4253a63ac8555ccab7c4c0aa29a1"
+
+inherit fsl-eula-unpack
+
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+	file://0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch \
+	file://0002-Don-t-build-missing-GLES1.1-samples-in-X11-Makefile.patch"
+
+SRC_URI[md5sum] = "344c9a260b46a00f86eb5cb73bf729e0"
+SRC_URI[sha256sum] = "0f0a576ce1a08719ee1018832ae808ee723fad27a534c9739b5feec6d7435c57"
+
+S = "${WORKDIR}/${PN}-${PV}"
+# TODO: Support for building GLES1.1 is ready, GLES2.0 and OpenVG is not ready yet
+SUPPORTED_APIS = "GLES1.1"
+
+do_compile () {
+	for API in "${SUPPORTED_APIS}"; do
+		cd "${S}/Samples/${API}"
+		oe_runmake -f Makefile.x11
+	done
+}
+
+do_install () {
+	for API in "${SUPPORTED_APIS}"; do
+		cd "${S}/Samples/${API}"
+		install -d "${D}/opt/${PN}"
+		oe_runmake -f Makefile.x11 install
+		cp -r bin/ "${D}/opt/${PN}"
+	done
+}
+
+FILES_${PN} += "/opt/${PN}"
+FILES_${PN}-dbg = "/opt/${PN}/*/*/.debug"