diff options
| -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 | } | ||
