summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}