[Buildroot] [git commit] package/libgpiod: enable the kernel GPIO ABI v1

Arnout Vandecappelle arnout at rnout.be
Tue May 5 20:09:38 UTC 2026


commit: https://gitlab.com/buildroot.org/buildroot/-/commit/3d937c4a8e646777c134b9fa215c8c151e432b5c
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master

Unlike libgpiod2, this version of libgpiod relies on the deprecated GPIO
ABI version 1. This ABI used to be enabled by default. However, since
Linux 7.1-rc1 (commit 7673e4c7f7f9 "Do not enable the v1 uAPI by
default"), this is not the case anymore. Failing to enable the ABI
results in a non-functional libgpiod. For instance:

    # gpioinfo
    gpioinfo: error creating line iterator: Invalid argument

Fix this by enabling the ABI v1 in LIBGPIOD_LINUX_CONFIG_FIXUPS.

Signed-off-by: Edgar Bonet <bonet at grenoble.cnrs.fr>
Signed-off-by: Arnout Vandecappelle <arnout at rnout.be>
---
 package/libgpiod/libgpiod.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libgpiod/libgpiod.mk b/package/libgpiod/libgpiod.mk
index f669643b39..4df26074d2 100644
--- a/package/libgpiod/libgpiod.mk
+++ b/package/libgpiod/libgpiod.mk
@@ -24,6 +24,10 @@ else
 LIBGPIOD_CONF_OPTS += --disable-tools
 endif
 
+define LIBGPIOD_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_GPIO_CDEV_V1)
+endef
+
 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
 LIBGPIOD_CONF_OPTS += --enable-bindings-cxx
 else


More information about the buildroot mailing list