summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-08-27 16:44:57 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-08-29 00:05:21 +0300
commitcc199637a7f82f3b0fab9db563071b7c0790b62a (patch)
tree36b8b129a41b6c60c5e329b2eed0597a645c082a
parent3e0cf999e8fe547a52cb8af28eefdf0f8482daba (diff)
downloadmeta-raspberrypi-cc199637a7f82f3b0fab9db563071b7c0790b62a.tar.gz
vc-graphics.inc: New provides, compatible machine and init for vchiq
1. Add COMPATIBLE_MACHINE=raspberrypi. 2. This package provides libgl libgles2 and libegl. Add these to PROVIDES. 3. Add an init script to create vchiq device node while booting. This device is needed by vc_tvservice_*. Package this init script in ${PN}. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rwxr-xr-xrecipes-bcm/vc-graphics/files/vchiq.sh24
-rw-r--r--recipes-bcm/vc-graphics/vc-graphics.inc17
2 files changed, 37 insertions, 4 deletions
diff --git a/recipes-bcm/vc-graphics/files/vchiq.sh b/recipes-bcm/vc-graphics/files/vchiq.sh
new file mode 100755
index 0000000..c73e3a9
--- /dev/null
+++ b/recipes-bcm/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
diff --git a/recipes-bcm/vc-graphics/vc-graphics.inc b/recipes-bcm/vc-graphics/vc-graphics.inc
index 44f42a8..112f620 100644
--- a/recipes-bcm/vc-graphics/vc-graphics.inc
+++ b/recipes-bcm/vc-graphics/vc-graphics.inc
@@ -3,18 +3,20 @@ LICENSE = "Proprietary"
3 3
4LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" 4LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780"
5 5
6PROVIDES += "virtual/egl" 6PROVIDES = "virtual/libgl virtual/libgles2 virtual/egl"
7COMPATIBLE_MACHINE = "raspberrypi"
7 8
8include ../common/firmware.inc 9include ../common/firmware.inc
9 10
10SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ 11SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\
11 file://egl.pc" 12 file://egl.pc \
13 file://vchiq.sh"
12 14
13S = "${WORKDIR}/git/${VCDIR}" 15S = "${WORKDIR}/git/${VCDIR}"
14 16
15INCPR = "r0" 17INCPR = "r0"
16 18
17inherit pkgconfig 19inherit pkgconfig update-rc.d
18 20
19do_install () { 21do_install () {
20 install -d ${D}${bindir} 22 install -d ${D}${bindir}
@@ -31,13 +33,20 @@ do_install () {
31 33
32 install -d ${D}${libdir}/pkgconfig 34 install -d ${D}${libdir}/pkgconfig
33 install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ 35 install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/
36
37 install -d ${D}/${sysconfdir}/init.d
38 install -m 0755 ${WORKDIR}/vchiq.sh ${D}${sysconfdir}/init.d/
34} 39}
35 40
36# These are proprietary binaries generated elsewhere so don't check ldflags 41# These are proprietary binaries generated elsewhere so don't check ldflags
37INSANE_SKIP_${PN} = "ldflags" 42INSANE_SKIP_${PN} = "ldflags"
38 43
44INITSCRIPT_NAME = "vchiq.sh"
45INITSCRIPT_PARAMS = "start 03 S ."
46
39FILES_${PN} = "${bindir}/* \ 47FILES_${PN} = "${bindir}/* \
40 ${sbindir}/* \ 48 ${sbindir}/* \
41 ${libdir}/lib*.so" 49 ${libdir}/lib*.so \
50 ${sysconfdir}/init.d"
42FILES_${PN}-dev = "${libdir}/pkgconfig \ 51FILES_${PN}-dev = "${libdir}/pkgconfig \
43 ${includedir}" 52 ${includedir}"