Skip to content

Commit 82d0aac

Browse files
mheiborneoa
authored andcommitted
jtag: linuxgpiod: add macro HAVE_LIBGPIOD_V1
To prepare the support for libgpiod v2, add a macro to report the old version v1 of the library. Extracted part of 8226: jtag: linuxgpiod: finalize emulation of libgpiod v2 API for older versions Link: https://review.openocd.org/c/openocd/+/8226 Change-Id: Ib9c4e495b326770fabadbc752df8aa0a920b1831 Signed-off-by: Michael Heimpold <[email protected]> Signed-off-by: Tomas Vanek <[email protected]> Signed-off-by: Antonio Borneo <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/9118 Tested-by: jenkins
1 parent 601d478 commit 82d0aac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ PKG_CHECK_MODULES([LIBFTDI], [libftdi1], [
585585

586586
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod < 2.0], [
587587
use_libgpiod=yes
588+
AC_DEFINE([HAVE_LIBGPIOD_V1], [1], [define if libgpiod is version v1.x])
588589
PKG_CHECK_EXISTS([libgpiod >= 1.5],
589590
[AC_DEFINE([HAVE_LIBGPIOD1_FLAGS_BIAS], [1], [define if libgpiod v1 has line request flags bias])])
590591
], [use_libgpiod=no])

0 commit comments

Comments
 (0)