diff options
author | Aurelian Zanoschi <aurelian17@gmail.com> | 2012-08-31 11:48:34 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-09-06 01:15:54 +0300 |
commit | f76ad1e006e4255325ccb3197a0112cef7d4c9b3 (patch) | |
tree | b9db8b2880e8fdc572ed600889351b1e07e1f640 | |
parent | 7b57199e0e2894d22283eb96021216faa9781e9e (diff) | |
download | meta-raspberrypi-f76ad1e006e4255325ccb3197a0112cef7d4c9b3.tar.gz |
bcm2835: Integrate version 1.8
The first integration of bcm2835 package was done. The package version
is 1.8. BCM2835 package provides access to GPIO and other IO functions
on the Broadcom BCM 2835 chip, allowing access to the GPIO pins on the
26 pin IDE plug on the RPi board.
[GITHUB #35]
Signed-off-by: Aurelian Zanoschi <aurelian17@gmail.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-bcm/bcm2835/bcm2835_1.8.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-bcm/bcm2835/bcm2835_1.8.bb b/recipes-bcm/bcm2835/bcm2835_1.8.bb new file mode 100644 index 0000000..bad1d63 --- /dev/null +++ b/recipes-bcm/bcm2835/bcm2835_1.8.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "Package that provides access to GPIO and other IO\ | ||
2 | functions on the Broadcom BCM 2835 chip, allowing access to the\ | ||
3 | GPIO pins on the 26 pin IDE plug on the RPi board" | ||
4 | SECTION = "base" | ||
5 | HOMEPAGE = "http://www.open.com.au/mikem/bcm2835" | ||
6 | AUTHOR = "Mike McCauley (mikem@open.com.au)" | ||
7 | |||
8 | LICENSE = "GPL-2.0" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
10 | |||
11 | PR = "r0" | ||
12 | |||
13 | SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-1.8.tar.gz" | ||
14 | |||
15 | SRC_URI[md5sum] = "cca8500049d4ebf9087de4bd1601d185" | ||
16 | SRC_URI[sha256sum] = "64be77b10aaf48ecb2a9022e13057f3b564093916875c0fc56373b4142dd5cae" | ||
17 | |||
18 | PACKAGES += "${PN}-tests" | ||
19 | |||
20 | FILES_${PN} = "" | ||
21 | FILES_${PN}-tests = "${libdir}/${BPN}" | ||
22 | FILES_${PN}-dbg += "${libdir}/${BPN}/.debug" | ||
23 | |||
24 | inherit autotools | ||
25 | |||
26 | do_compile_append() { | ||
27 | #Now compiling the examples provided by the package | ||
28 | for file in examples/* | ||
29 | do | ||
30 | ${CC} ${file}/${file##*/}.c -o ${file}/${file##*/} -Bstatic -L${S}/src -lbcm2835 -I${S}/src | ||
31 | done | ||
32 | } | ||
33 | |||
34 | do_install_append() { | ||
35 | install -d ${D}/${libdir}/${BPN} | ||
36 | for file in examples/* | ||
37 | do | ||
38 | install -m 0755 ${file}/${file##*/} ${D}/${libdir}/${BPN} | ||
39 | done | ||
40 | } | ||