Merge pull request #139752 from mayflower/openocd-libgpiod

openocd: enable libgpiod bit-banging driver
This commit is contained in:
Robert Scott 2021-09-28 21:37:34 +01:00 committed by GitHub
commit 4c682874dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"
];