summaryrefslogtreecommitdiffstats
path: root/recipes-bcm/bcm2835/bcm2835_1.36.bb
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2014-01-19 20:28:39 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2014-01-19 20:28:39 +0200
commitda3e1574084a2e64939ebf629f5c6fdf3211e7d2 (patch)
tree1607bacc5df328c9c755653f2b34caf1588804bd /recipes-bcm/bcm2835/bcm2835_1.36.bb
parent49c08724483da00d6cd0ed7d00561cfa14edf2f2 (diff)
downloadmeta-raspberrypi-da3e1574084a2e64939ebf629f5c6fdf3211e7d2.tar.gz
bcm2835: Update to v1.36
Change-Id: I8b55d7233919b6ebe68b9504eb2504bedb1846e1 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-bcm/bcm2835/bcm2835_1.36.bb')
-rw-r--r--recipes-bcm/bcm2835/bcm2835_1.36.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-bcm/bcm2835/bcm2835_1.36.bb b/recipes-bcm/bcm2835/bcm2835_1.36.bb
new file mode 100644
index 0000000..b5d9992
--- /dev/null
+++ b/recipes-bcm/bcm2835/bcm2835_1.36.bb
@@ -0,0 +1,41 @@
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 = "GPLv2"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
10
11
12COMPATIBLE_MACHINE = "raspberrypi"
13
14SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz"
15
16SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7"
17SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2"
18
19PACKAGES += "${PN}-tests"
20
21FILES_${PN} = ""
22FILES_${PN}-tests = "${libdir}/${BPN}"
23FILES_${PN}-dbg += "${libdir}/${BPN}/.debug"
24
25inherit autotools
26
27do_compile_append() {
28 #Now compiling the examples provided by the package
29 for file in examples/*
30 do
31 ${CC} ${file}/${file##*/}.c -o ${file}/${file##*/} -Bstatic -L${S}/src -lbcm2835 -I${S}/src
32 done
33}
34
35do_install_append() {
36 install -d ${D}/${libdir}/${BPN}
37 for file in examples/*
38 do
39 install -m 0755 ${file}/${file##*/} ${D}/${libdir}/${BPN}
40 done
41}