summaryrefslogtreecommitdiffstats
path: root/rules/libgpiod.in
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2017-05-24 17:09:19 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-01 09:49:19 +0200
commit157cd9c23667d7525628d60596a718a802a0cf84 (patch)
treed86cf96d6ec36c580b3f4a99a123dd85c1a5b5e7 /rules/libgpiod.in
parent810db9bc0603ee8179189910b478f672e4d6e22d (diff)
downloadptxdist-157cd9c23667d7525628d60596a718a802a0cf84.tar.gz
ptxdist-157cd9c23667d7525628d60596a718a802a0cf84.tar.xz
libgpiod: new package
libgpiod is a C library with tools for interacting with the Linux GPIO character device. Add a package for it. Note: Requires kernel-headers >= 4.8. Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libgpiod.in')
-rw-r--r--rules/libgpiod.in58
1 files changed, 58 insertions, 0 deletions
diff --git a/rules/libgpiod.in b/rules/libgpiod.in
new file mode 100644
index 000000000..23625ed49
--- /dev/null
+++ b/rules/libgpiod.in
@@ -0,0 +1,58 @@
+## SECTION=system_libraries
+
+menuconfig LIBGPIOD
+ tristate
+ prompt "libgpiod"
+ help
+ libgpiod is a library accompanied by a set of tools for
+ interacting with the Linux GPIO character device.
+ Requires kernel-headers >= 4.8.
+
+if LIBGPIOD
+
+config LIBGPIOD_TOOLS
+ bool
+
+config LIBGPIOD_GPIODETECT
+ bool
+ prompt "Install gpiodetect"
+ select LIBGPIOD_TOOLS
+ help
+ Lists all gpiochips present on the system
+
+config LIBGPIOD_GPIOINFO
+ bool
+ prompt "Install gpioinfo"
+ select LIBGPIOD_TOOLS
+ help
+ Lists all lines of specified gpiochips
+
+config LIBGPIOD_GPIOGET
+ bool
+ prompt "Install gpioget"
+ select LIBGPIOD_TOOLS
+ help
+ Reads values of specified GPIO lines
+
+config LIBGPIOD_GPIOSET
+ bool
+ prompt "Install gpioset"
+ select LIBGPIOD_TOOLS
+ help
+ Sets values of specified GPIO lines
+
+config LIBGPIOD_GPIOFIND
+ bool
+ prompt "Install gpiofind"
+ select LIBGPIOD_TOOLS
+ help
+ Finds the gpiochip given the line name
+
+config LIBGPIOD_GPIOMON
+ bool
+ prompt "Install gpiomon"
+ select LIBGPIOD_TOOLS
+ help
+ Waits for events on a GPIO line
+
+endif