[oe] [meta-oe][PATCH v2] recipes-support: Add handling for libgpiod
Marek Belisko
marek.belisko at open-nandra.com
Thu May 18 19:22:39 UTC 2017
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 at open-nandra.com>
---
V2: Fixed comments from Martin Jansa
meta/recipes-support/libgpiod/libgpiod.bb | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 meta/recipes-support/libgpiod/libgpiod.bb
diff --git a/meta/recipes-support/libgpiod/libgpiod.bb b/meta/recipes-support/libgpiod/libgpiod.bb
new file mode 100644
index 0000000..fe56f7b
--- /dev/null
+++ b/meta/recipes-support/libgpiod/libgpiod.bb
@@ -0,0 +1,30 @@
+SUMMARY = "C library and tools for interacting with the linux GPIO character device"
+HOMEPAGE = "https://github.com/brgl/libgpiod"
+
+LICENSE = "LGPLv2.1+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
+
+UPSTREAM_CHECK_URI = "git://github.com/brgl/libgpiod/releases"
+
+SRC_URI = "git://github.com/brgl/libgpiod.git"
+
+SRCREV = "7ab5e53b69cce313ba87033a442cabd417f5d895"
+
+PV = "0.2+git${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+SRC_URI[md5sum] = "68f039487e940c15bbfc50a10ab4715b"
+SRC_URI[sha256sum] = "7d7085d4e9cb811742ca8c5fe03458067efaeaa8abc23968d2e3c56bcc2d2ef8"
+
+inherit autotools pkgconfig
+
+# enable tools
+PACKAGECONFIG ?= "tools"
+
+PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
+PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,"
+
+PACKAGES += " ${PN}-tools"
+
+FILES_${PN}-tools = "${bindir}/*"
--
2.7.4
More information about the Openembedded-devel
mailing list