diff options
Diffstat (limited to 'recipes-bcm/bcm2835/bcm2835_1.36.bb')
| -rw-r--r-- | recipes-bcm/bcm2835/bcm2835_1.36.bb | 41 |
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 @@ | |||
| 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 = "GPLv2" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 10 | |||
| 11 | |||
| 12 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 13 | |||
| 14 | SRC_URI = "http://www.open.com.au/mikem/bcm2835/bcm2835-${PV}.tar.gz" | ||
| 15 | |||
| 16 | SRC_URI[md5sum] = "3299ddaef60f80b7f85de3318f08dee7" | ||
| 17 | SRC_URI[sha256sum] = "b4dfcdb453d44ba9ff55634ce7e0ddca21b96355ab61e40b4c3afb9406d4b8d2" | ||
| 18 | |||
| 19 | PACKAGES += "${PN}-tests" | ||
| 20 | |||
| 21 | FILES_${PN} = "" | ||
| 22 | FILES_${PN}-tests = "${libdir}/${BPN}" | ||
| 23 | FILES_${PN}-dbg += "${libdir}/${BPN}/.debug" | ||
| 24 | |||
| 25 | inherit autotools | ||
| 26 | |||
| 27 | do_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 | |||
| 35 | do_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 | } | ||
