diff options
author | Koen Kooi <k-kooi@ti.com> | 2010-03-26 13:31:56 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:30 +0200 |
commit | 815e3891d829d6c8f29a32362e615683c4552fcf (patch) | |
tree | e794e9cfe69c722e1a793ab8eccdc9b829e1835b /recipes/powervr-drivers | |
parent | 311312722b9e2f02deec0f5f64ca67ef90975fc1 (diff) |
libgles-omap3: use udev rule to change permissions on bccat and v4l nodes
Diffstat (limited to 'recipes/powervr-drivers')
5 files changed, 15 insertions, 11 deletions
diff --git a/recipes/powervr-drivers/libgles-omap3.inc b/recipes/powervr-drivers/libgles-omap3.inc index 2adcb8b1f8..3a6d243154 100644 --- a/recipes/powervr-drivers/libgles-omap3.inc +++ b/recipes/powervr-drivers/libgles-omap3.inc @@ -24,7 +24,8 @@ SRC_URI = "file://OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \ file://cputype \ file://rc.pvr \ file://sample.desktop \ - " + file://99-bufferclass.rules \ +" S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}" @@ -197,6 +198,10 @@ do_install () { # Delete objects and linker scripts hidden between the headers find ${D} -name "*.o" -delete find ${D} -name "*.o.cmd" -delete + + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/99-bufferclass.rules ${D}${sysconfdir}/udev/rules.d/ + } PACKAGES =+ "${PN}-rawdemos \ diff --git a/recipes/powervr-drivers/libgles-omap3/99-bufferclass.rules b/recipes/powervr-drivers/libgles-omap3/99-bufferclass.rules new file mode 100644 index 0000000000..780423b961 --- /dev/null +++ b/recipes/powervr-drivers/libgles-omap3/99-bufferclass.rules @@ -0,0 +1,7 @@ +# Give everyone access to bufferclass nodes and make a compatibility symlink for the first one +SUBSYSTEM=="bccat", MODE="0666" +KERNEL=="bccat0", SYMLINK+="bc_cat", MODE="0666" + +# Give everyone access to v4l nodes +SUBSYSTEM=="video4linux", MODE="0666" + diff --git a/recipes/powervr-drivers/libgles-omap3/rc.pvr b/recipes/powervr-drivers/libgles-omap3/rc.pvr index 4fbda014f9..b84225e775 100755 --- a/recipes/powervr-drivers/libgles-omap3/rc.pvr +++ b/recipes/powervr-drivers/libgles-omap3/rc.pvr @@ -33,7 +33,6 @@ fbset -vyres $(expr $YRES \* 3) if [ $CPUTYPE = "OMAP3530" ]; then echo Starting PVR insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko") - #modprobe bc_example modprobe omaplfb modprobe bufferclass_ti @@ -47,13 +46,6 @@ if [ $CPUTYPE = "OMAP3530" ]; then mknod /dev/pvrsrvkm c $pvr_maj 0 chmod 666 /dev/pvrsrvkm - if [ -e /dev/bc_cat ] ; then - rm -f /dev/bc_cat - fi - - mknod /dev/bc_cat c $bc_maj 0 - chmod 666 /dev/bc_cat - touch /etc/powervr-esrev SAVED_ESREVISION="$(cat /etc/powervr-esrev)" diff --git a/recipes/powervr-drivers/libgles-omap3_3.01.00.02.bb b/recipes/powervr-drivers/libgles-omap3_3.01.00.02.bb index 725e8bb5b9..129db3f6e2 100644 --- a/recipes/powervr-drivers/libgles-omap3_3.01.00.02.bb +++ b/recipes/powervr-drivers/libgles-omap3_3.01.00.02.bb @@ -2,7 +2,7 @@ BINLOCATION = "${S}/gfx_rel_es3.x" require libgles-omap3.inc -PR = "r6" +PR = "r7" # download required binary distribution from: # http://software-dl.ti.com/dsps/forms/export.html?prod_no=/OMAP35x_Graphics_SDK_setuplinux_3_01_00_02.bin diff --git a/recipes/powervr-drivers/libgles-omap3_3.01.00.05.bb b/recipes/powervr-drivers/libgles-omap3_3.01.00.05.bb index daac041c75..3264a0897d 100644 --- a/recipes/powervr-drivers/libgles-omap3_3.01.00.05.bb +++ b/recipes/powervr-drivers/libgles-omap3_3.01.00.05.bb @@ -1,6 +1,6 @@ DEFAULT_PREFERENCE = "-1" -PR = "r1" +PR = "r2" BINLOCATION = "${S}/gfx_rel_es3.x" |