git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d9d7b5
)
libgles-omap3: use udev rule to change permissions on bccat and v4l nodes
author
Koen Kooi
<k-kooi@ti.com>
Fri, 26 Mar 2010 12:31:56 +0000
(13:31 +0100)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 22 Jan 2011 22:14:30 +0000
(
00:14
+0200)
recipes/powervr-drivers/libgles-omap3.inc
patch
|
blob
|
history
recipes/powervr-drivers/libgles-omap3/99-bufferclass.rules
[new file with mode: 0644]
patch
|
blob
recipes/powervr-drivers/libgles-omap3/rc.pvr
patch
|
blob
|
history
recipes/powervr-drivers/libgles-omap3_3.01.00.02.bb
patch
|
blob
|
history
recipes/powervr-drivers/libgles-omap3_3.01.00.05.bb
patch
|
blob
|
history
diff --git
a/recipes/powervr-drivers/libgles-omap3.inc
b/recipes/powervr-drivers/libgles-omap3.inc
index
2adcb8b
..
3a6d243
100644
(file)
--- 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://cputype \
file://rc.pvr \
file://sample.desktop \
- "
+ file://99-bufferclass.rules \
+"
S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
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
# 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 \
}
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
(file)
index 0000000..
780423b
--- /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
4fbda01
..
b84225e
100755
(executable)
--- 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")
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
modprobe omaplfb
modprobe bufferclass_ti
@@
-47,13
+46,6
@@
if [ $CPUTYPE = "OMAP3530" ]; then
mknod /dev/pvrsrvkm c $pvr_maj 0
chmod 666 /dev/pvrsrvkm
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)"
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
725e8bb
..
129db3f
100644
(file)
--- 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
require libgles-omap3.inc
-PR = "r
6
"
+PR = "r
7
"
# 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
# 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
daac041
..
3264a08
100644
(file)
--- 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"
DEFAULT_PREFERENCE = "-1"
-PR = "r
1
"
+PR = "r
2
"
BINLOCATION = "${S}/gfx_rel_es3.x"
BINLOCATION = "${S}/gfx_rel_es3.x"