diff options
author | Tomas Frydrych <tomas@sleepfive.com> | 2012-06-14 22:47:59 +0100 |
---|---|---|
committer | Tomas Frydrych <tomas@sleepfive.com> | 2012-06-20 20:28:00 +0100 |
commit | fac94bf7de6ee76b8ef1f74bc1dba565eeaabf2a (patch) | |
tree | ad2de9645016cf588d80a08ec20d5d66661f4809 | |
parent | 2bd08428ce69f8654ab8b69604008bb7c21bd972 (diff) | |
download | meta-raspberrypi-fac94bf7de6ee76b8ef1f74bc1dba565eeaabf2a.tar.gz |
vc-graphics: package firmware for VC graphics
This package adds a egl.pc file for use with libEGL (it is necessary to
specify a custom include paths for the compiler due to brokenness in the
firmware header files).
-rw-r--r-- | recipes-bcm/vc-graphics/files/egl.pc | 10 | ||||
-rw-r--r-- | recipes-bcm/vc-graphics/vc-graphics-hardfp.bb | 8 | ||||
-rwxr-xr-x | recipes-bcm/vc-graphics/vc-graphics.bb | 8 | ||||
-rw-r--r-- | recipes-bcm/vc-graphics/vc-graphics.inc | 38 |
4 files changed, 64 insertions, 0 deletions
diff --git a/recipes-bcm/vc-graphics/files/egl.pc b/recipes-bcm/vc-graphics/files/egl.pc new file mode 100644 index 0000000..c314202 --- /dev/null +++ b/recipes-bcm/vc-graphics/files/egl.pc | |||
@@ -0,0 +1,10 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=${exec_prefix}/lib | ||
4 | includedir=${prefix}/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: egl for RaspberryPI | ||
8 | Version: 0.0 | ||
9 | Libs: -L${libdir} -lEGL -lGLESv2 | ||
10 | Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads | ||
diff --git a/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb b/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb new file mode 100644 index 0000000..e96c291 --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | |||
2 | CONFLICTS = "vc-graphics" | ||
3 | |||
4 | VCDIR = "hardfp/opt/vc" | ||
5 | require vc-graphics.inc | ||
6 | |||
7 | PR = "${INCPR}.0" | ||
8 | |||
diff --git a/recipes-bcm/vc-graphics/vc-graphics.bb b/recipes-bcm/vc-graphics/vc-graphics.bb new file mode 100755 index 0000000..e78a80b --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | |||
2 | CONFLICTS = "vc-graphics-hardfp" | ||
3 | |||
4 | VCDIR = "opt/vc" | ||
5 | require vc-graphics.inc | ||
6 | |||
7 | PR = "${INCPR}.0" | ||
8 | |||
diff --git a/recipes-bcm/vc-graphics/vc-graphics.inc b/recipes-bcm/vc-graphics/vc-graphics.inc new file mode 100644 index 0000000..dcb0984 --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics.inc | |||
@@ -0,0 +1,38 @@ | |||
1 | DESCRIPTION = "Graphics libraries for BCM2835." | ||
2 | LICENSE = "proprietary-binary" | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" | ||
5 | |||
6 | PROVIDES += "virtual/egl" | ||
7 | |||
8 | SRCREV = "1178c4db57e8676f331fdacfb37ff1662430ea5f" | ||
9 | |||
10 | SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ | ||
11 | file://egl.pc" | ||
12 | |||
13 | S = "${WORKDIR}/git/${VCDIR}" | ||
14 | |||
15 | INCPR = "r0" | ||
16 | |||
17 | inherit pkgconfig | ||
18 | |||
19 | do_install () { | ||
20 | install -d ${D}${bindir} | ||
21 | cp -R bin/* ${D}${bindir} | ||
22 | |||
23 | install -d ${D}${sbindir} | ||
24 | cp -R sbin/* ${D}${sbindir} | ||
25 | |||
26 | install -d ${D}${libdir} | ||
27 | cp -R lib/* ${D}${libdir} | ||
28 | |||
29 | install -d ${D}${includedir} | ||
30 | cp -R include/* ${D}${includedir} | ||
31 | |||
32 | install -d ${D}${libdir}/pkgconfig | ||
33 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ | ||
34 | } | ||
35 | |||
36 | |||
37 | FILES_${PN} = "${bindir}/* ${sbindir}/* ${libdir}/lib*.so*" | ||
38 | FILES_${PN}-dev += "${libdir}/pkgconfig" | ||