summaryrefslogtreecommitdiffstats
path: root/rules/libgpiod.in
diff options
context:
space:
mode:
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