diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-02 14:33:26 +0200 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2012-05-03 00:03:18 -0400 |
| commit | 6014fc75c0663e13c1272d0f66ff1cd7caceba80 (patch) | |
| tree | 08fb4f6b0b5d13bd660c3a88476bd054b2e02ef6 | |
| parent | 405ce1996520cf3ec9a095d310f2cfeb2db80a0b (diff) | |
| download | meta-ti-6014fc75c0663e13c1272d0f66ff1cd7caceba80.tar.gz | |
libgles-omap3: work around bug in opkg
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>
| -rw-r--r-- | recipes-graphics/libgles/libgles-omap3.inc | 2 | ||||
| -rwxr-xr-x | recipes-graphics/libgles/libgles-omap3/rc.pvr | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc index c64a882b..664a6494 100644 --- a/recipes-graphics/libgles/libgles-omap3.inc +++ b/recipes-graphics/libgles/libgles-omap3.inc | |||
| @@ -3,7 +3,7 @@ LICENSE = "proprietary-binary" | |||
| 3 | # 'TSPA.txt' might not be the best file to md5sum | 3 | # 'TSPA.txt' might not be the best file to md5sum |
| 4 | LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1" | 4 | LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1" |
| 5 | 5 | ||
| 6 | PR = "r30" | 6 | PR = "r31" |
| 7 | 7 | ||
| 8 | COMPATIBLE_MACHINE = "(omap3|ti816x|ti33x)" | 8 | COMPATIBLE_MACHINE = "(omap3|ti816x|ti33x)" |
| 9 | 9 | ||
diff --git a/recipes-graphics/libgles/libgles-omap3/rc.pvr b/recipes-graphics/libgles/libgles-omap3/rc.pvr index 07efa663..00cd994b 100755 --- a/recipes-graphics/libgles/libgles-omap3/rc.pvr +++ b/recipes-graphics/libgles/libgles-omap3/rc.pvr | |||
| @@ -61,6 +61,12 @@ sgxprepare () { | |||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | sgxfinish () { | 63 | sgxfinish () { |
| 64 | # Fix up a bug in opkg | ||
| 65 | if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then | ||
| 66 | cd /usr/lib | ||
| 67 | ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so | ||
| 68 | fi | ||
| 69 | |||
| 64 | if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then | 70 | if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then |
| 65 | echo -n "Starting SGX fixup for" | 71 | echo -n "Starting SGX fixup for" |
| 66 | echo " ES${ES_REVISION}.x" | 72 | echo " ES${ES_REVISION}.x" |
| @@ -68,6 +74,7 @@ sgxfinish () { | |||
| 68 | cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin | 74 | cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin |
| 69 | echo "${ES_REVISION}" > /etc/powervr-esrev | 75 | echo "${ES_REVISION}" > /etc/powervr-esrev |
| 70 | fi | 76 | fi |
| 77 | |||
| 71 | /usr/bin/pvrsrvinit | 78 | /usr/bin/pvrsrvinit |
| 72 | } | 79 | } |
| 73 | 80 | ||
