openocd: enable libgpiod bit-banging driver

This commit is contained in:
Linus Heckemann 2021-09-28 13:28:21 +02:00
parent 31ffc50c57
commit b1cf40d228

View file

@ -5,6 +5,7 @@
, hidapi
, libftdi1
, libusb1
, libgpiod
}:
stdenv.mkDerivation rec {
@ -17,7 +18,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ hidapi libftdi1 libusb1 ];
buildInputs = [ hidapi libftdi1 libusb1 libgpiod ];
configureFlags = [
"--enable-jtag_vpi"
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
(lib.enableFeature (! stdenv.isDarwin) "oocd_trace")
"--enable-buspirate"
(lib.enableFeature stdenv.isLinux "sysfsgpio")
(lib.enableFeature stdenv.isLinux "linuxgpiod")
"--enable-remote-bitbang"
];