blob: c337b19f4a33331aad1ab5070fe442acf88483e0 [file] [log] [blame]
Patrick Williams8b8bc412016-08-17 15:02:23 -05001DESCRIPTION = "A library to control Raspberry Pi GPIO channels"
2HOMEPAGE = "https://projects.drogon.net/raspberry-pi/wiringpi/"
3SECTION = "devel/libs"
4LICENSE = "LGPLv3+"
5LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
6
Patrick Williamsb2e6a9b2017-02-23 20:31:26 -06007# tag 2.32
8SRCREV = "b0a60c3302973ca1878d149d61f2f612c8f27fac"
Patrick Williams8b8bc412016-08-17 15:02:23 -05009
10S = "${WORKDIR}/git"
11
12SRC_URI = "git://git.drogon.net/wiringPi \
13 file://0001-Add-initial-cross-compile-support.patch \
14 file://0001-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch \
15 "
16
17COMPATIBLE_MACHINE = "raspberrypi"
18
Patrick Williamsb2e6a9b2017-02-23 20:31:26 -060019CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib "
Patrick Williams8b8bc412016-08-17 15:02:23 -050020
21EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'"
22EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'"
23
24do_compile() {
25 oe_runmake -C devLib
26 oe_runmake -C wiringPi
27 oe_runmake -C gpio 'LDFLAGS=${LDFLAGS} -L${S}/wiringPi -L${S}/devLib'
28}
29
30do_install() {
31 oe_runmake -C devLib install
32 oe_runmake -C wiringPi install
33 oe_runmake -C gpio install
34}