summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/vc-graphics/files
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2015-03-02 00:06:19 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2015-03-12 22:20:51 +0100
commitd1fa1c0b75a8de15ae27a9a2f9eaa496a5fe6de9 (patch)
tree439b4a56ded9efafa4889d3106cbbb4a8432e271 /recipes-graphics/vc-graphics/files
parentddd1f033733a34b68da5e1e8c6a315b18234b86f (diff)
downloadmeta-raspberrypi-d1fa1c0b75a8de15ae27a9a2f9eaa496a5fe6de9.tar.gz
vc-graphics: Move to recipes-graphics
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-graphics/vc-graphics/files')
-rw-r--r--recipes-graphics/vc-graphics/files/egl.pc10
-rw-r--r--recipes-graphics/vc-graphics/files/vchiq.sh24
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes-graphics/vc-graphics/files/egl.pc b/recipes-graphics/vc-graphics/files/egl.pc
new file mode 100644
index 0000000..c314202
--- /dev/null
+++ b/recipes-graphics/vc-graphics/files/egl.pc
@@ -0,0 +1,10 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=${exec_prefix}/lib
4includedir=${prefix}/include
5
6Name: egl
7Description: egl for RaspberryPI
8Version: 0.0
9Libs: -L${libdir} -lEGL -lGLESv2
10Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads
diff --git a/recipes-graphics/vc-graphics/files/vchiq.sh b/recipes-graphics/vc-graphics/files/vchiq.sh
new file mode 100644
index 0000000..c73e3a9
--- /dev/null
+++ b/recipes-graphics/vc-graphics/files/vchiq.sh
@@ -0,0 +1,24 @@
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: vchiq.sh
4# Required-Start: $remote_fs rmnologin
5# Required-Stop:
6# Default-Start: S
7# Default-Stop:
8# Short-Description: Create /dev/vchiq.
9# Description: Get the major number from /proc/devices and use it
10# ti create /dev/vchiq
11### END INIT INFO
12
13rm -f /dev/vchiq
14
15#Get the major number
16major=$(awk "\$2==\"vchiq\" {print \$1}" /proc/devices)
17
18if [ -z "$major" ]; then
19 echo "Error: Cannot find vchiq in /proc/devices"
20 exit 2
21else
22 mknod /dev/vchiq c "$major" 0
23 chmod a+w /dev/vchiq
24fi