Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | DESCRIPTION = "A library to control Raspberry Pi GPIO channels" |
| 2 | HOMEPAGE = "https://projects.drogon.net/raspberry-pi/wiringpi/" |
| 3 | SECTION = "devel/libs" |
| 4 | LICENSE = "LGPLv3+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" |
| 6 | |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame^] | 7 | # tag 2.32 |
| 8 | SRCREV = "b0a60c3302973ca1878d149d61f2f612c8f27fac" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 9 | |
| 10 | S = "${WORKDIR}/git" |
| 11 | |
| 12 | SRC_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 | |
| 17 | COMPATIBLE_MACHINE = "raspberrypi" |
| 18 | |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame^] | 19 | CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib " |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 20 | |
| 21 | EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'" |
| 22 | EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'" |
| 23 | |
| 24 | do_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 | |
| 30 | do_install() { |
| 31 | oe_runmake -C devLib install |
| 32 | oe_runmake -C wiringPi install |
| 33 | oe_runmake -C gpio install |
| 34 | } |