summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelian Zanoschi <aurelian17@gmail.com>2012-08-31 11:48:34 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-09-06 01:15:54 +0300
commitf76ad1e006e4255325ccb3197a0112cef7d4c9b3 (patch)
treeb9db8b2880e8fdc572ed600889351b1e07e1f640
parent7b57199e0e2894d22283eb96021216faa9781e9e (diff)
downloadmeta-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.bb40
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 @@
1DESCRIPTION = "Package that provides access to GPIO and other IO\
2functions on the Broadcom BCM 2835 chip, allowing access to the\
3GPIO pins on the 26 pin IDE plug on the RPi board"
4SECTION = "base"
5HOMEPAGE = "http://www.open.com.au/mikem/bcm2835"
6AUTHOR = "Mike McCauley (mikem@open.com.au)"
7
8LICENSE = "GPL-2.0"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
10
11PR = "r0"
12
13SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-1.8.tar.gz"
14
15SRC_URI[md5sum] = "cca8500049d4ebf9087de4bd1601d185"
16SRC_URI[sha256sum] = "64be77b10aaf48ecb2a9022e13057f3b564093916875c0fc56373b4142dd5cae"
17
18PACKAGES += "${PN}-tests"
19
20FILES_${PN} = ""
21FILES_${PN}-tests = "${libdir}/${BPN}"
22FILES_${PN}-dbg += "${libdir}/${BPN}/.debug"
23
24inherit autotools
25
26do_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
34do_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}