diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-08-27 16:44:57 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-08-29 00:05:21 +0300 |
commit | cc199637a7f82f3b0fab9db563071b7c0790b62a (patch) | |
tree | 36b8b129a41b6c60c5e329b2eed0597a645c082a | |
parent | 3e0cf999e8fe547a52cb8af28eefdf0f8482daba (diff) | |
download | meta-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-x | recipes-bcm/vc-graphics/files/vchiq.sh | 24 | ||||
-rw-r--r-- | recipes-bcm/vc-graphics/vc-graphics.inc | 17 |
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 | |||
13 | rm -f /dev/vchiq | ||
14 | |||
15 | #Get the major number | ||
16 | major=$(awk "\$2==\"vchiq\" {print \$1}" /proc/devices) | ||
17 | |||
18 | if [ -z "$major" ]; then | ||
19 | echo "Error: Cannot find vchiq in /proc/devices" | ||
20 | exit 2 | ||
21 | else | ||
22 | mknod /dev/vchiq c "$major" 0 | ||
23 | chmod a+w /dev/vchiq | ||
24 | fi | ||
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 | ||
4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" | 4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" |
5 | 5 | ||
6 | PROVIDES += "virtual/egl" | 6 | PROVIDES = "virtual/libgl virtual/libgles2 virtual/egl" |
7 | COMPATIBLE_MACHINE = "raspberrypi" | ||
7 | 8 | ||
8 | include ../common/firmware.inc | 9 | include ../common/firmware.inc |
9 | 10 | ||
10 | SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ | 11 | SRC_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 | ||
13 | S = "${WORKDIR}/git/${VCDIR}" | 15 | S = "${WORKDIR}/git/${VCDIR}" |
14 | 16 | ||
15 | INCPR = "r0" | 17 | INCPR = "r0" |
16 | 18 | ||
17 | inherit pkgconfig | 19 | inherit pkgconfig update-rc.d |
18 | 20 | ||
19 | do_install () { | 21 | do_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 |
37 | INSANE_SKIP_${PN} = "ldflags" | 42 | INSANE_SKIP_${PN} = "ldflags" |
38 | 43 | ||
44 | INITSCRIPT_NAME = "vchiq.sh" | ||
45 | INITSCRIPT_PARAMS = "start 03 S ." | ||
46 | |||
39 | FILES_${PN} = "${bindir}/* \ | 47 | FILES_${PN} = "${bindir}/* \ |
40 | ${sbindir}/* \ | 48 | ${sbindir}/* \ |
41 | ${libdir}/lib*.so" | 49 | ${libdir}/lib*.so \ |
50 | ${sysconfdir}/init.d" | ||
42 | FILES_${PN}-dev = "${libdir}/pkgconfig \ | 51 | FILES_${PN}-dev = "${libdir}/pkgconfig \ |
43 | ${includedir}" | 52 | ${includedir}" |