libgles-omap3: work around bug in opkg
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 2 May 2012 12:33:26 +0000 (14:33 +0200)
committerDenys Dmytriyenko <denys@ti.com>
Thu, 3 May 2012 04:03:18 +0000 (00:03 -0400)
All the EGL_BADALLOC failures that user have been reporting turn out to be
a bug in opkg:
http://groups.google.com/group/opkg-devel/browse_thread/thread/741d18b0ef31435e#

Opkg decides to relink symlinks to the wrong files. As a workaround we check
the symlink during every bootup and fix it if needed.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
recipes-graphics/libgles/libgles-omap3.inc
recipes-graphics/libgles/libgles-omap3/rc.pvr

index c64a882b13ee7d10636d42d082d977f9609cd232..664a64941687e167e68e7b0e704e12ca9f8dbe6e 100644 (file)
@@ -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 = "r30"
+PR = "r31"
 
 COMPATIBLE_MACHINE = "(omap3|ti816x|ti33x)"
 
index 07efa663326f7a30d1587a2d4f11226c240c16c5..00cd994b875e046036bcdc0e9e73cfeeb7c27af4 100755 (executable)
@@ -61,6 +61,12 @@ sgxprepare () {
 }
 
 sgxfinish () {
+       # Fix up a bug in opkg
+       if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
+               cd /usr/lib
+               ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
+       fi
+
        if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
                echo -n "Starting SGX fixup for"
                echo " ES${ES_REVISION}.x"
@@ -68,6 +74,7 @@ sgxfinish () {
                cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
                echo "${ES_REVISION}" > /etc/powervr-esrev
        fi
+
        /usr/bin/pvrsrvinit
 }