libgles-omap3: exit if kernel module doesn't load
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 10 Feb 2012 14:09:18 +0000 (16:09 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 10 Feb 2012 23:14:51 +0000 (01:14 +0200)
otherwise those dev2mem hacks further in the script
will f*ck up suspend on later kernels.

recipes/powervr-drivers/libgles-omap3/rc.pvr
recipes/powervr-drivers/libgles-omap3_4.00.00.01.bb

index b84225e..cf3d904 100755 (executable)
@@ -36,6 +36,11 @@ if [ $CPUTYPE = "OMAP3530" ]; then
        modprobe omaplfb
        modprobe bufferclass_ti
 
+       if ! lsmod | grep -q pvrsrvkm; then
+               echo pvrsrvkm failed to load
+               exit 1
+       fi
+
        pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
         bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
 
index fbecccc..69be2af 100644 (file)
@@ -10,6 +10,8 @@ require libgles-omap3.inc
 # http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
 # see libgles-omap3.inc for detailed installation instructions
 
+PR = "r2"
+
 SGXPV = "4_00_00_01"
 IMGPV = "1.4.14.2616"
 BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin"