package/libgpiod: enable the kernel GPIO ABI v1

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@grenoble.cnrs.fr>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Edgar Bonet
2026-04-30 16:09:53 +02:00
committed by Arnout Vandecappelle
parent 8cde69e101
commit 3d937c4a8e

View File

@@ -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