Skip to contentSkip to conversation

vivante-gpu-sdk: Contribute recipe for Vivante GPU Samples

PATCH In review Diego Rondini 2 participants 12 messages May 21, 2013 – May 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vivante-gpu-sdk: Contribute recipe for Vivante GPU Samples

Initial contribution of a recipe for Vivate GPU Samples from Vivante GPU Sdk.

---
 ...ation-of-the-GLES1.1-X11-Samples-in-Yocto.patch |  594 ++++++++++++++++++++
 .../0002-Don-t-build-missing-samples.patch         |   28 +
 .../vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb        |   35 ++
 3 files changed, 657 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-samples.patch
 create mode 100644 recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +594 -0
new file mode 100644
index 0000000..dacfd36
@@ -0,0 +1,594 @@
+From 72ba888f8e33a95343be834d5d9f12ce5d8c00f2 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+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)
+---
+ 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
+
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch new file +28 -0
new file mode 100644
index 0000000..1503848
@@ -0,0 +1,28 @@
+From 97f3af7a44b41f3e46c54765ba415ba9f511fb81 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+Date: Tue, 30 Apr 2013 12:46:38 +0200
+Subject: [PATCH 2/2] Don't build missing samples
+
+Samples 18_VertexBufferObjects and 19_Beizer are not included in the package, so don't try to compile them.
+---
+ 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
+
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +35 -0
new file mode 100644
index 0000000..69bcd01
@@ -0,0 +1,35 @@
+SUMMARY = "Vivante GPU SDK Samples"
+DESCRIPTION = "Freescale's adaptation of Jeff Molofee demos"
+LICENSE = "Proprietary"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b3ed4253a63ac8555ccab7c4c0aa29a1"
+
+PR = "r0"
+
+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;striplevel=1 \
+	file://0002-Don-t-build-missing-samples.patch;striplevel=1"
+
+SRC_URI[md5sum] = "344c9a260b46a00f86eb5cb73bf729e0"
+SRC_URI[sha256sum] = "0f0a576ce1a08719ee1018832ae808ee723fad27a534c9739b5feec6d7435c57"
+
+S = "${WORKDIR}/${PN}-${PV}"
+GLES11DIR = "${S}/Samples/GLES1.1"
+VIVANTE_INSTALL_DIR = "/opt/${PN}"
+VIVANTE_INSTALL_DEST_DIR = "${D}${VIVANTE_INSTALL_DIR}"
+
+do_compile () {
+	cd "${GLES11DIR}"
+	oe_runmake -f Makefile.x11
+}
+
+do_install () {
+	cd "${GLES11DIR}"
+	install -d "${VIVANTE_INSTALL_DEST_DIR}"
+	oe_runmake -f Makefile.x11 install
+	cp -r bin/ "${VIVANTE_INSTALL_DEST_DIR}"
+}
+
+FILES_${PN} += "${VIVANTE_INSTALL_DIR}"
+FILES_${PN}-dbg = "${VIVANTE_INSTALL_DIR}/*/*/.debug"
Signature · 1 line
1.7.9.5
author
#1 lore raw

In data martedì 21 maggio 2013 15:57:37, Diego Rondini ha scritto:

Quoted 3 lines

Initial contribution of a recipe for Vivate GPU Samples from Vivante GPU Sdk.

Hi guys!

I've sent the patch for initial review. This is my first contribution to Yocto so I might be getting something wrong.

This first revision is still missing framebuffer support and GLES2.0 and OpenVG support, so the only working combination at the moment is GLES1.1 and X11.

Thanks for any review!

Diego

#2 lore raw
In reply to Diego Rondini
Quoted 5 lines · Diego Rondini

Initial contribution of a recipe for Vivate GPU Samples from Vivante GPU Sdk.

Please change the commit log to be more assertive; something like:

---
vivante-gpu-sdk: Add recipe for GPU samples

Provides the samples provided by Vivante for use with the GPU.
---

Or something like that.

Quoted 30 lines
---
 ...ation-of-the-GLES1.1-X11-Samples-in-Yocto.patch |  594
++++++++++++++++++++
 .../0002-Don-t-build-missing-samples.patch         |   28 +
 .../vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb        |   35 ++
 3 files changed, 657 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-samples.patch
 create mode 100644 recipes-graphics/vivante-gpu-sdk/

vivante-gpu-sdk_1.00.bb

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..dacfd36
--- /dev/null
+++
b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +8 -0
@@ -0,0 +1,594 @@
+From 72ba888f8e33a95343be834d5d9f12ce5d8c00f2 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+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
Quoted 4 lines

variables)
+- unknown include and library paths (caused by forcing paths when not needed)

Missed signed-off-by and upstream-status.

Quoted 634 lines
+---
+ 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(-)

(quoted diff) +2 -0
+
+diff --git a/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11

b/Samples/GLES1.1/01_SimpleTriangle/Makefile.x11

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +34 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +33 -1
+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

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +35 -1
+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-samples.patch b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch new file mode 100644
index 0000000..1503848
--- /dev/null
+++
b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch new file +6 -0
@@ -0,0 +1,28 @@
+From 97f3af7a44b41f3e46c54765ba415ba9f511fb81 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+Date: Tue, 30 Apr 2013 12:46:38 +0200
+Subject: [PATCH 2/2] Don't build missing samples
+
+Samples 18_VertexBufferObjects and 19_Beizer are not included in the
Quoted 2 lines

package, so don't try to compile them.

Missed signed-off-by and upstream-status.

Quoted 30 lines
+---
+ Samples/GLES1.1/Makefile.x11 |    4 +---

+ 1 file changed, 1 insertion(+), 3 deletions(-)

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch new file +19 -0
+
+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
+
(quoted diff) +0 -0

vivante-gpu-sdk_1.00.bb
new file mode 100644
index 0000000..69bcd01

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 2

Quoted 2 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
@@ -0,0 +1,35 @@
+SUMMARY = "Vivante GPU SDK Samples"
+DESCRIPTION = "Freescale's adaptation of Jeff Molofee demos"

Is this description accurate?

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 6

Quoted 5 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+LICENSE = "Proprietary"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b3ed4253a63ac8555ccab7c4c0aa29a1"
+
+PR = "r0"

Drop PR assignment.

Quoted 8 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+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;striplevel=1 \
+ file://0002-Don-t-build-missing-samples.patch;striplevel=1"

The striplevel 1 is the default so you can remove it.

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 18

Quoted 7 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
+SRC_URI[md5sum] = "344c9a260b46a00f86eb5cb73bf729e0"
+SRC_URI[sha256sum] =

"0f0a576ce1a08719ee1018832ae808ee723fad27a534c9739b5feec6d7435c57"

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +3 -0
+
+S = "${WORKDIR}/${PN}-${PV}"
+GLES11DIR = "${S}/Samples/GLES1.1"

You can avoid this setting:

WORKDIR = "${S}/Samples/GLES1.1"

Quoted 1 line

+VIVANTE_INSTALL_DIR = "/opt/${PN}"

+VIVANTE_INSTALL_DEST_DIR = "${D}${VIVANTE_INSTALL_DIR}"

I'd use these explicitly as the variable name is bigger than the content of it ;-)

Quoted 2 lines

+do_compile () {

Quoted 2 lines

+ cd "${GLES11DIR}"

This can be removed.

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 28

Quoted 6 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +5 -0
+       oe_runmake -f Makefile.x11
+}
+
+do_install () {
+       cd "${GLES11DIR}"

This can be removed.

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 31

Quoted 4 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +3 -0
+       install -d "${VIVANTE_INSTALL_DEST_DIR}"
+       oe_runmake -f Makefile.x11 install
+       cp -r bin/ "${VIVANTE_INSTALL_DEST_DIR}"

Uh? make install does not handle this?

Quoted 4 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+}
+
+FILES_${PN} += "${VIVANTE_INSTALL_DIR}"
+FILES_${PN}-dbg = "${VIVANTE_INSTALL_DIR}/*/*/.debug"
Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
author
#3 lore raw

In data martedì 21 maggio 2013 11:34:54, Otavio Salvador ha scritto:

Quoted 8 lines · Diego Rondini
Quoted 4 lines

Initial contribution of a recipe for Vivate GPU Samples from Vivante GPU Sdk.

Please change the commit log to be more assertive; something like:

Quoted 8 lines

---
vivante-gpu-sdk: Add recipe for GPU samples

Provides the samples provided by Vivante for use with the GPU.
---

Or something like that.

Ack.

Quoted 36 lines
Quoted 36 lines

---

 ...ation-of-the-GLES1.1-X11-Samples-in-Yocto.patch |  594

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

 .../0002-Don-t-build-missing-samples.patch         |   28 +
 .../vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb        |   35 ++
 3 files changed, 657 insertions(+)
 create mode 100644

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-t he-GLES1.1-X11-Samples-in-Yocto.patch>

 create mode 100644

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing- samples.patch>

 create mode 100644 recipes-graphics/vivante-gpu-sdk/

vivante-gpu-sdk_1.00.bb

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-o f-the-GLES1.1-X11-Samples-in-Yocto.patch new file mode 100644 index 0000000..dacfd36
--- /dev/null
+++
b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +5 -1
-the-GLES1.1-X11-Samples-in-Yocto.patch @@ -0,0 +1,594 @@
+From 72ba888f8e33a95343be834d5d9f12ce5d8c00f2 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+Date: Tue, 30 Apr 2013 10:52:25 +0200
+Subject: [PATCH 1/2] Fix compilation of the GLES1.1 X11 Samples in Yocto
+
Quoted 9 lines
Quoted 6 lines

+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)

Missed signed-off-by and upstream-status.

Ok, will add.

Quoted 4 lines
Quoted 4 lines
+---
+ Samples/GLES1.1/01_SimpleTriangle/Makefile.x11     |    9 +--------
+ Samples/GLES1.1/02_VertexColors/Makefile.x11       |    7 +------
+ .../GLES1.1/03_VertexTransformation/Makefile.x11   |    7 +------

[snip]

Quoted 11 lines
Quoted 11 lines

diff --git a/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missin g-samples.patch b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missi ng-samples.patch new file mode 100644
index 0000000..1503848
--- /dev/null
+++
b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missin g-samples.patch @@ -0,0 +1,28 @@
+From 97f3af7a44b41f3e46c54765ba415ba9f511fb81 Mon Sep 17 00:00:00 2001

Quoted 9 lines
Quoted 6 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch new file +5 -0
+From: Diego Rondini <[email protected]>
+Date: Tue, 30 Apr 2013 12:46:38 +0200
+Subject: [PATCH 2/2] Don't build missing samples
+
+Samples 18_VertexBufferObjects and 19_Beizer are not included in the

package, so don't try to compile them.

Missed signed-off-by and upstream-status.

Ok, will add.

Quoted 26 lines
Quoted 26 lines
+---
+ Samples/GLES1.1/Makefile.x11 |    4 +---

+ 1 file changed, 1 insertion(+), 3 deletions(-)

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-samples.patch new file +19 -0
+
+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.bbb/recipes-graph ics/vivante-gpu-sdk/ vivante-gpu-sdk_1.00.bb
new file mode 100644

Quoted 9 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 2

Quoted 6 lines

index 0000000..69bcd01

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
@@ -0,0 +1,35 @@
+SUMMARY = "Vivante GPU SDK Samples"
+DESCRIPTION = "Freescale's adaptation of Jeff Molofee demos"

Is this description accurate?

These are the first lines of every source file:
/*
* This code was created by Jeff Molofee '99
* (ported to Linux by Ti Leggett '01)
* (ported to i.mx51, i.mx31 and x11 by Freescale '10)
* If you've found this code useful, please let him know. *
* Visit Jeff at http://nehe.gamedev.net/
*
*/

I know the description is not the best one can produce, but this is not an established project, nor a one man/enterprise work. At least the X11 part is not Vivante's nor Freescale's specific at all.

Quoted 7 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 6

Quoted 4 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+LICENSE = "Proprietary"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b3ed4253a63ac8555ccab7c4c0aa29a1"
+
+PR = "r0"

Drop PR assignment.

Ok, will do.

Quoted 10 lines
Quoted 7 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+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;stri plevel=1 \
+ file://0002-Don-t-build-missing-samples.patch;striplevel=1"

The striplevel 1 is the default so you can remove it.

Ok, will do.

Quoted 11 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 18

Quoted 6 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
+SRC_URI[md5sum] = "344c9a260b46a00f86eb5cb73bf729e0"
+SRC_URI[sha256sum] =

"0f0a576ce1a08719ee1018832ae808ee723fad27a534c9739b5feec6d7435c57"

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +3 -0
+
+S = "${WORKDIR}/${PN}-${PV}"
+GLES11DIR = "${S}/Samples/GLES1.1"

You can avoid this setting:

WORKDIR = "${S}/Samples/GLES1.1"

I'll have multiple "workdirs", as this initial version is just for GLES1.1, but Samples folder has three subfolders:
GLES1.1
GLES2.0
OpenVG
each one has its own Makefile, and no common Makefile. I'm not interested in creating a common Makefile with a patch, as they might even get packaged separately in the future according to chipset support.
According to that, would you still use just:
WORKDIR = "${S}/Samples/GLES1.1"

Quoted 8 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 20

Quoted 3 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
+VIVANTE_INSTALL_DIR = "/opt/${PN}"
 
+VIVANTE_INSTALL_DEST_DIR = "${D}${VIVANTE_INSTALL_DIR}"

I'd use these explicitly as the variable name is bigger than the content of it ;-)

Shorter code is not necessarily better or clearer code. However if you want I'll follow your suggestion.

Quoted 9 lines

+do_compile () {

Quoted 1 line

+ cd "${GLES11DIR}"

This can be removed.

This is related to the multiple subfolders (GLES1.1, GLES2.0, OpenVG) which will come later, so let's discuss the "WORKDIR" issue.

Quoted 8 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 28

Quoted 5 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +5 -0
+       oe_runmake -f Makefile.x11
+}
+
+do_install () {
+       cd "${GLES11DIR}"

This can be removed.

As above.

Quoted 6 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 31

Quoted 3 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +3 -0
+       install -d "${VIVANTE_INSTALL_DEST_DIR}"
+       oe_runmake -f Makefile.x11 install
+       cp -r bin/ "${VIVANTE_INSTALL_DEST_DIR}"

Uh? make install does not handle this?

This is not in any way an "established project which installs in standard paths". It's more a "bunch of samples patched in the years, started quite some time ago, and intended just to be compiled and started locally by the learning developer".

Quoted 4 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 35

Quoted 4 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+}
+
+FILES_${PN} += "${VIVANTE_INSTALL_DIR}"
+FILES_${PN}-dbg = "${VIVANTE_INSTALL_DIR}/*/*/.debug"

Thanks for your review. If you can clear out the WORKDIR vs multiple Makefiles in subdirs issue I'll post the updated patch.

Bests,
Diego

#4 lore raw
Quoted 22 lines · Diego

In data martedì 21 maggio 2013 11:34:54, Otavio Salvador ha scritto:
...

Quoted 7 lines

+++ b/recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 2

Quoted 3 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
@@ -0,0 +1,35 @@
+SUMMARY = "Vivante GPU SDK Samples"
+DESCRIPTION = "Freescale's adaptation of Jeff Molofee demos"

Is this description accurate?

These are the first lines of every source file:
/*
* This code was created by Jeff Molofee '99
* (ported to Linux by Ti Leggett '01)
* (ported to i.mx51, i.mx31 and x11 by Freescale '10)
* If you've found this code useful, please let him know. *
* Visit Jeff at http://nehe.gamedev.net/
*
*/

Quoted 4 lines

I know the description is not the best one can produce, but this is not an established project, nor a one man/enterprise work. At least the X11 part is
not Vivante's nor Freescale's specific at all.

What about:

"Set of sample applications compatible with Vivante GPU"

?

...

Quoted 13 lines
Quoted 10 lines

+SRC_URI[md5sum] = "344c9a260b46a00f86eb5cb73bf729e0"

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 18

Quoted 5 lines
(quoted diff) +1 -0
+SRC_URI[sha256sum] =

"0f0a576ce1a08719ee1018832ae808ee723fad27a534c9739b5feec6d7435c57"

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +3 -0
+
+S = "${WORKDIR}/${PN}-${PV}"
+GLES11DIR = "${S}/Samples/GLES1.1"

You can avoid this setting:

Quoted 2 lines

WORKDIR = "${S}/Samples/GLES1.1"

Quoted 12 lines

I'll have multiple "workdirs", as this initial version is just for GLES1.1, but Samples folder has three subfolders:
GLES1.1
GLES2.0
OpenVG
each one has its own Makefile, and no common Makefile. I'm not interested in
creating a common Makefile with a patch, as they might even get packaged separately in the future according to chipset support. According to that, would you still use just:
WORKDIR = "${S}/Samples/GLES1.1"

I agree here; you can try to get the patch already supporting them. I'd use a 'for' loop to handle it, if possible.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
+VIVANTE_INSTALL_DIR = "/opt/${PN}"
 
+VIVANTE_INSTALL_DEST_DIR = "${D}${VIVANTE_INSTALL_DIR}"
Quoted 8 lines
Quoted 1 line

I'd use these explicitly as the variable name is bigger than the content

of

Quoted 2 lines

it ;-)

Shorter code is not necessarily better or clearer code. However if you want I'll follow your suggestion.

The problem with this is someone looking in the recipe needs to go there and check what is the value of it. I think it is an indirection which does not make it easier to read. We shouldn't keep changing this values so an indirection here does not add much I think.

...

Quoted 9 lines
Quoted 8 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +2 -0
+       install -d "${VIVANTE_INSTALL_DEST_DIR}"
 
+       oe_runmake -f Makefile.x11 install
Quoted 1 line

+ cp -r bin/ "${VIVANTE_INSTALL_DEST_DIR}"

Uh? make install does not handle this?

Quoted 6 lines

This is not in any way an "established project which installs in standard paths". It's more a "bunch of samples patched in the years, started quite some
time ago, and intended just to be compiled and started locally by the learning
developer".

Arrg! I see.

Quoted 9 lines
Quoted 4 lines

recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb line 35

Quoted 4 lines
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +4 -0
+}
+
+FILES_${PN} += "${VIVANTE_INSTALL_DIR}"
+FILES_${PN}-dbg = "${VIVANTE_INSTALL_DIR}/*/*/.debug"

Thanks for your review. If you can clear out the WORKDIR vs multiple Makefiles
in subdirs issue I'll post the updated patch.

Thanks by working on this; this will be of great value for users :-)

Regards,

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

PATCH 1/1 vivante-gpu-sdk: Add recipe for GPU samples

In reply to Diego Rondini

Provides the samples provided by Vivante for use with the GPU.

---
 ...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
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0001-Fix-compilation-of-the-GLES1.1-X11-Samples-in-Yocto.patch new file +598 -0
new file mode 100644
index 0000000..07d561f
@@ -0,0 +1,598 @@
+From 1d18aae77f0c2ff411d19ed5bd8c0b96bfd90190 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+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 <[email protected]>
+---
+ 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
+
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk/0002-Don-t-build-missing-GLES1.1-samples-in-X11-Makefile.patch new file +32 -0
new file mode 100644
index 0000000..36566f9
@@ -0,0 +1,32 @@
+From 390db03809834919d8d49faf9a0a528321684ac5 Mon Sep 17 00:00:00 2001
+From: Diego Rondini <[email protected]>
+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 <[email protected]>
+---
+ 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
+
recipes-graphics/vivante-gpu-sdk/vivante-gpu-sdk_1.00.bb new file +36 -0
new file mode 100644
index 0000000..6527ea9
@@ -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"
Signature · 1 line
1.7.9.5
#6 lore raw

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

Quoted 4 lines · Diego Rondini

Provides the samples provided by Vivante for use with the GPU.

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?

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

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

Otavio Salvador <[email protected]> ha scritto:

Quoted 10 lines
Quoted 4 lines · Diego Rondini

Provides the samples provided by Vivante for use with the GPU.

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

#8 lore raw

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

Quoted 12 lines · Diego

Otavio Salvador <[email protected]> ha scritto:

Quoted 8 lines
Quoted 4 lines · Diego Rondini

Provides the samples provided by Vivante for use with the GPU.

Quoted 7 lines
Quoted 2 lines

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 ;-)

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

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

Quoted 20 lines · Otavio Salvador
Quoted 15 lines · Diego

Otavio Salvador <[email protected]> ha scritto:

Quoted 10 lines
Quoted 4 lines · Diego Rondini

Provides the samples provided by Vivante for use with the GPU.

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?

Quoted 8 lines
Quoted 4 lines

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.

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

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

In data giovedì 23 maggio 2013 13:26:57, Otavio Salvador ha scritto:

Quoted 17 lines

On Wed, May 22, 2013 at 10:32 AM, Otavio Salvador

Quoted 14 lines · <[email protected]>wrote:
Quoted 13 lines · Diego

Otavio Salvador <[email protected]> ha scritto:

Quoted 9 lines

On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <[email protected]>

Quoted 3 lines · wrote:

Provides the samples provided by Vivante for use with the GPU.

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,

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

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

#11 lore raw

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

Quoted 25 lines · Diego

In data giovedì 23 maggio 2013 13:26:57, Otavio Salvador ha scritto:

Quoted 13 lines

On Wed, May 22, 2013 at 10:32 AM, Otavio Salvador

Quoted 10 lines · <[email protected]>wrote:
Quoted 9 lines · Diego

Otavio Salvador <[email protected]> ha scritto:

Quoted 8 lines

On Wed, May 22, 2013 at 6:47 AM, Diego Rondini <[email protected]>

Quoted 3 lines · wrote:

Provides the samples provided by Vivante for use with the GPU.

The patch seems good. Do you wish to get this in and add the other

API

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

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!

Quoted 4 lines
Quoted 3 lines

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

Quoted 8 lines
Quoted 2 lines

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

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