diff options
author | Phil Blundell <philb@gnu.org> | 2009-06-16 16:42:27 +0100 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2009-06-16 16:42:27 +0100 |
commit | 4e0f69867535f4a93e0af3ffb26336e1a3a85f65 (patch) | |
tree | c4e1f45e61cc101564036737ba3518de74c5ed01 /recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr | |
parent | 73bdf9cc0c931f8d49596bc89ceb632e2e464d84 (diff) | |
parent | e2b659db223fca8b5e3e8c3241da0d8a3399f25e (diff) |
Merge branch 'org.openembedded.dev' of git@new.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr')
-rwxr-xr-x | recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr b/recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr new file mode 100755 index 0000000000..3505e63dfa --- /dev/null +++ b/recipes/powervr-drivers/libgles-omap3-3.00.00.08/rc.pvr @@ -0,0 +1,41 @@ +#!/bin/sh + +#rmmod bc_example +rmmod omaplfb +rmmod pvrsrvkm + +insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko") +#modprobe bc_example +modprobe omaplfb + +pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3` + +if [ -e /dev/pvrsrvkm ] ; then + rm -f /dev/pvrsrvkm +fi + +mknod /dev/pvrsrvkm c $pvr_maj 0 +chmod 666 /dev/pvrsrvkm + +touch /etc/powervr-esrev + +SAVED_ESREVISION="$(cat /etc/powervr-esrev)" +ES_REVISION="$(cat /proc/cpuinfo | grep "CPU revision" | 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_REVISION}" > /etc/powervr-esrev +fi + +/usr/bin/pvrsrvinit + |