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 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | # tag 2.44 |
| 8 | SRCREV = "96344ff7125182989f98d3be8d111952a8f74e15" |
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 \ |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 14 | " |
| 15 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | COMPATIBLE_MACHINE = "^rpi$" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 17 | |
Patrick Williams | b2e6a9b | 2017-02-23 20:31:26 -0600 | [diff] [blame] | 18 | CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib " |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 19 | |
| 20 | EXTRA_OEMAKE += "'INCLUDE_DIR=${D}${includedir}' 'LIB_DIR=${D}${libdir}'" |
| 21 | EXTRA_OEMAKE += "'DESTDIR=${D}/usr' 'PREFIX=""'" |
| 22 | |
| 23 | do_compile() { |
| 24 | oe_runmake -C devLib |
| 25 | oe_runmake -C wiringPi |
| 26 | oe_runmake -C gpio 'LDFLAGS=${LDFLAGS} -L${S}/wiringPi -L${S}/devLib' |
| 27 | } |
| 28 | |
| 29 | do_install() { |
| 30 | oe_runmake -C devLib install |
| 31 | oe_runmake -C wiringPi install |
| 32 | oe_runmake -C gpio install |
| 33 | } |