diff options
| author | Hugo Hromic <hhromic@gmail.com> | 2018-06-19 15:11:01 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2018-06-27 13:38:23 +0100 |
| commit | 3b6549a5e016efe63c9d1463948b9de1ee5d89ed (patch) | |
| tree | 5f96b8af6cad27b71201a0b72b7be1a67903f8f6 /recipes-devtools/wiringpi/wiringpi_git.bb | |
| parent | efa81bff3ee6eeaeee50801989c5feade8c0f974 (diff) | |
| download | meta-raspberrypi-3b6549a5e016efe63c9d1463948b9de1ee5d89ed.tar.gz | |
wiringpi: use lower-case in recipe directory name
Keep naming consistency.
Signed-off-by: Hugo Hromic <hhromic@gmail.com>
Diffstat (limited to 'recipes-devtools/wiringpi/wiringpi_git.bb')
| -rw-r--r-- | recipes-devtools/wiringpi/wiringpi_git.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/wiringpi/wiringpi_git.bb b/recipes-devtools/wiringpi/wiringpi_git.bb new file mode 100644 index 0000000..f1b01db --- /dev/null +++ b/recipes-devtools/wiringpi/wiringpi_git.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 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 | |||
| 7 | # tag 2.44 | ||
| 8 | SRCREV = "96344ff7125182989f98d3be8d111952a8f74e15" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | SRC_URI = "git://git.drogon.net/wiringPi \ | ||
| 13 | file://0001-Add-initial-cross-compile-support.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | COMPATIBLE_MACHINE = "^rpi$" | ||
| 17 | |||
| 18 | CFLAGS_prepend = "-I${S}/wiringPi -I${S}/devLib " | ||
| 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 | } | ||
