Skip to contentSkip to conversation

libgles-omap3: Pull in changes from arago to meta-ti

PATCH Superseded Franklin S. Cooper Jr 3 participants 3 messages Sep 3, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libgles-omap3: Pull in changes from arago to meta-ti

* Package additional include files from pvr2d and OGLES/GLES. This is required when trying to build qt4-embedded-gles (currently being developed)
* Other minor tweaks.

---
 recipes-graphics/libgles/libgles-omap3.inc    |   32 +++++++++++++-----------
 recipes-graphics/libgles/libgles-omap3/rc.pvr |    7 +++++
 2 files changed, 24 insertions(+), 15 deletions(-)
recipes-graphics/libgles/libgles-omap3.inc +17 -15
index 4525285..0857c46 100644
@@ -3,7 +3,7 @@ LICENSE = "proprietary-binary"
 # 'TSPA.txt' might not be the best file to md5sum
 LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1"
 
-PR = "r32"
+PR = "r33"
 
 COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
 
@@ -15,10 +15,10 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gf
 		   file://cputype \
 		   file://rc.pvr \
 		   file://sample.desktop \
-		   file://99-bufferclass.rules  \
+		   file://99-bufferclass.rules \
 "
 
-S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
+S ?= "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
 
 # Logic to unpack installjammer file
 TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
@@ -31,11 +31,13 @@ export ES5LOCATION ?= "${S}/gfx_rel_es5.x"
 export ES6LOCATION ?= "${S}/gfx_rel_es6.x"
 export ES8LOCATION ?= "${S}/gfx_rel_es8.x"
 
+LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
+
 do_configure() {
 	# Attempt to fix up the worst offenders for file permissions
 	for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do
 		chmod 0644 $i
-	done 
+	done
 
 	# Attempt to create proper library softlinks
 	for sofile in $(find ${S} -name "lib*Open*.so") $(find ${S} -name "lib*srv*.so") $(find ${S} -name "lib*gl*.so") $(find ${S} -name "libpvr*.so") $(find ${S} -name "lib*GL*.so"); do
@@ -112,7 +114,7 @@ do_compile() {
 
 			if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
 				cd $training/OGLES2/Build/${PLATFORM}
-			fi			
+			fi
 
 			oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD
 			rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
@@ -120,7 +122,6 @@ do_compile() {
 			install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true
 		done
 	done
-
 }
 
 do_install () {
@@ -133,8 +134,7 @@ do_install () {
 
 	install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/
 	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
-	install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/
-
+	install -m 0755 ${BINLOCATION}/p[dv]* ${D}${bindir}/
 	install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/
 
 	install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true
@@ -152,23 +152,25 @@ do_install () {
 	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ || true
 	cp -pPr ${S}/include/*.h ${D}${includedir} || true
 	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
-	
+    cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir} || true
+    cp -pPr ${S}/include/OGLES/GLES ${D}${includedir}/ || true
+
 	install -d ${D}${sysconfdir}/init.d/
 	cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
 
 	install -d ${D}${sysconfdir}
 	echo "[default]" > ${D}${sysconfdir}/powervr.ini
-	echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so.1" >> ${D}${sysconfdir}/powervr.ini
+	echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini
 
 	# The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace
 
-	install -d ${D}${libdir}/ES8.0
+    install -d ${D}${libdir}/ES8.0
 	install -d ${D}${libdir}/ES6.0
 	install -d ${D}${libdir}/ES5.0
 	install -d ${D}${libdir}/ES3.0
 	install -d ${D}${libdir}/ES2.0
 
-	install -d ${D}${bindir}/ES8.0
+    install -d ${D}${bindir}/ES8.0
 	install -d ${D}${bindir}/ES6.0
 	install -d ${D}${bindir}/ES5.0
 	install -d ${D}${bindir}/ES3.0
@@ -177,7 +179,7 @@ do_install () {
 	for esrev in 2 3 5 6 8 ; do
 		ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\}))
 		if [ -e ${ESLOCATION} ] ; then
-			cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
+			cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/p[dv]* ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
 			for esprog in eglinfo eglinfo_x gles1test1 gles2test1 ovg_unit_test pvr2d_test pvrsrvinit services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test xgles1test1 xgles2test1 xmultiegltest xovg_unit_test ; do
 				install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ || true
 			done
@@ -287,7 +289,7 @@ RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driws
 
 CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
 
-FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*"
+FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*"
 
 FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
 FILES_${PN}-tests = "${bindir}/*test*"
@@ -335,7 +337,7 @@ INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ."
 pkg_postinst_${PN}_append() {
 rm -f $D${sysconfdir}/powervr-esrev
 
-ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 
+ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0
 ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
 }
 
recipes-graphics/libgles/libgles-omap3/rc.pvr +7 -0
index 00cd994..e5a4cd1 100755
@@ -42,6 +42,13 @@ fbset -vyres $(expr $YRES \* 3)
 sgxprepare () {
 	echo Starting PVR
 	insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
+
+    if [ "$?" != "0" ]
+    then
+        echo "Could not find pvrsrvkm driver"
+        exit 1
+    fi
+
 	modprobe omaplfb
 	modprobe bufferclass_ti
 
Signature · 1 line
1.7.0.4
#1 lore raw

Op 3 sep. 2012, om 10:53 heeft "Franklin S. Cooper Jr" <[email protected]> het volgende geschreven:

Quoted 13 lines

* Package additional include files from pvr2d and OGLES/GLES. This is required when trying to build qt4-embedded-gles (currently being developed)
* Other minor tweaks.

---
recipes-graphics/libgles/libgles-omap3.inc | 32 +++++++++++++-----------
recipes-graphics/libgles/libgles-omap3/rc.pvr | 7 +++++

2 files changed, 24 insertions(+), 15 deletions(-)
recipes-graphics/libgles/libgles-omap3.inc +0 -0

do_install () {

recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 138

Quoted 7 lines
recipes-graphics/libgles/libgles-omap3.inc +1 -2
@@ -133,8 +134,7 @@ do_install () {
 
 	install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/
 	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
-	install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/
-
+	install -m 0755 ${BINLOCATION}/p[dv]* ${D}${bindir}/
 	install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/

You're reverting an older commit here without explaining why.

#2 lore raw

Valid point. I looked at commit 6cff7f12d22523b44803b5e191dc18e4d9c93784 and the message wasn't clear why this was changed and looked like the tweak could of left out something. Looking closer I can see that this wasn't the case. I will send an updated patch shortly.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Monday, September 03, 2012 3:44 AM
To: [email protected]
Subject: Re: [meta-ti] [PATCH] libgles-omap3: Pull in changes from arago to meta-ti

Op 3 sep. 2012, om 10:53 heeft "Franklin S. Cooper Jr" <[email protected]> het volgende geschreven:

Quoted 15 lines

* Package additional include files from pvr2d and OGLES/GLES. This is required when trying to build qt4-embedded-gles (currently being developed)
* Other minor tweaks.

---
recipes-graphics/libgles/libgles-omap3.inc | 32 +++++++++++++-----------
recipes-graphics/libgles/libgles-omap3/rc.pvr | 7 +++++

2 files changed, 24 insertions(+), 15 deletions(-)
recipes-graphics/libgles/libgles-omap3.inc +0 -0

do_install () {

recipes-graphics/libgles/libgles-omap3.inc do_install () { · line 138

Quoted 7 lines
recipes-graphics/libgles/libgles-omap3.inc +1 -2
@@ -133,8 +134,7 @@ do_install () {
 
 	install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/
 	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
-	install -m 0755 ${BINLOCATION}/pvrsrvinit ${D}${bindir}/
-
+	install -m 0755 ${BINLOCATION}/p[dv]* ${D}${bindir}/
 	install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/

You're reverting an older commit here without explaining why.
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti