[oe-commits] Koen Kooi : libgles-omap3: prepare initscript for ES5.x ( DM37xx and OMAP36xx)3

git version control git at git.openembedded.org
Tue Mar 9 20:21:40 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 9fa5bd8ff0fceac54273850140b71319bc2c3b7e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=9fa5bd8ff0fceac54273850140b71319bc2c3b7e

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Mar  9 19:39:56 2010 +0100

libgles-omap3: prepare initscript for ES5.x (DM37xx and OMAP36xx)3

---

 recipes/powervr-drivers/libgles-omap3/rc.pvr |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/recipes/powervr-drivers/libgles-omap3/rc.pvr b/recipes/powervr-drivers/libgles-omap3/rc.pvr
index ecf5f4a..b0b9043 100755
--- a/recipes/powervr-drivers/libgles-omap3/rc.pvr
+++ b/recipes/powervr-drivers/libgles-omap3/rc.pvr
@@ -53,19 +53,18 @@ if [ $CPUTYPE = "OMAP3530" ]; then
 	touch /etc/powervr-esrev
 
 	SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
-	ES_REVISION="$(cat /proc/cpuinfo | grep "CPU revision" | awk -F: '{print $2}')"
+
+	devmem2 0x48004B48 w 0x2 > /dev/null
+	devmem2 0x48004B10 w 0x1 > /dev/null
+	devmem2 0x48004B00 w 0x2 > /dev/null
+
+	ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x10205:5: -e s:0x10201:3: -e s:0x10003:2: | tail -n1 | awk -F': ' '{print $2}')"
 
 	if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
 		echo -n "Starting SGX fixup for"
-		if [ "${ES_REVISION}" = " 3" ] ; then
-			echo " ES3.x"
-			cp -a /usr/lib/ES3.0/* /usr/lib
-			cp -a /usr/bin/ES3.0/* /usr/bin	
-		else
-			echo "ES 2.x"
-			cp -a /usr/lib/ES2.0/* /usr/lib
-			cp -a /usr/bin/ES2.0/* /usr/bin	
-		fi
+		echo " ES${ES_REVISION}.x"
+		cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
+		cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin	
 		echo "${ES_REVISION}" > /etc/powervr-esrev
 	fi
 	/usr/bin/pvrsrvinit





More information about the Openembedded-commits mailing list