diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2017-05-18 21:22:39 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-05-23 15:59:31 +0200 |
commit | b063789560bfb9c60a7a15277b5b3a9839b5ba74 (patch) | |
tree | f4312942b7045a6acf22dc7145b16c3b694af24a /meta | |
parent | acbbd49577d049bf049a5c27e75777cdc2ad3c66 (diff) | |
download | meta-openembedded-b063789560bfb9c60a7a15277b5b3a9839b5ba74.tar.gz |
libgpiod: add new recipe
libgpiod - C library and tools for interacting with the linux GPIO
character device
Since linux 4.8 the GPIO sysfs interface is deprecated.
User space should use the character device instead.
This library encapsulates the ioctl calls and data structures behind a
straightforward API.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/libgpiod/libgpiod.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-support/libgpiod/libgpiod.bb b/meta/recipes-support/libgpiod/libgpiod.bb new file mode 100644 index 000000000..fe56f7b5c --- /dev/null +++ b/meta/recipes-support/libgpiod/libgpiod.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "C library and tools for interacting with the linux GPIO character device" | ||
2 | HOMEPAGE = "https://github.com/brgl/libgpiod" | ||
3 | |||
4 | LICENSE = "LGPLv2.1+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" | ||
6 | |||
7 | UPSTREAM_CHECK_URI = "git://github.com/brgl/libgpiod/releases" | ||
8 | |||
9 | SRC_URI = "git://github.com/brgl/libgpiod.git" | ||
10 | |||
11 | SRCREV = "7ab5e53b69cce313ba87033a442cabd417f5d895" | ||
12 | |||
13 | PV = "0.2+git${SRCPV}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | SRC_URI[md5sum] = "68f039487e940c15bbfc50a10ab4715b" | ||
18 | SRC_URI[sha256sum] = "7d7085d4e9cb811742ca8c5fe03458067efaeaa8abc23968d2e3c56bcc2d2ef8" | ||
19 | |||
20 | inherit autotools pkgconfig | ||
21 | |||
22 | # enable tools | ||
23 | PACKAGECONFIG ?= "tools" | ||
24 | |||
25 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" | ||
26 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," | ||
27 | |||
28 | PACKAGES += " ${PN}-tools" | ||
29 | |||
30 | FILES_${PN}-tools = "${bindir}/*" | ||