openocd: Fix FTDI channel configuration for SheevaPlug
This commit is contained in:
parent
4b877fb11b
commit
2b3975d5d2
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchurl, libftdi1, libusb1, pkgconfig, hidapi }:
|
{ stdenv, lib, fetchurl, fetchpatch, libftdi1, libusb1, pkgconfig, hidapi }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "openocd";
|
pname = "openocd";
|
||||||
|
@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1bhn2c85rdz4gf23358kg050xlzh7yxbbwmqp24c0akmh3bff4kk";
|
sha256 = "1bhn2c85rdz4gf23358kg050xlzh7yxbbwmqp24c0akmh3bff4kk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix FTDI channel configuration for SheevaPlug
|
||||||
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837989
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://salsa.debian.org/electronics-team/openocd/raw/9a94335daa332a37a51920f87afbad4d36fad2d5/debian/patches/fix-sheeva.patch";
|
||||||
|
sha256 = "01x021fagwvgxdpzk7psap7ryqiya4m4mi4nqr27asbmb3q46g5r";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ libftdi1 libusb1 hidapi ];
|
buildInputs = [ libftdi1 libusb1 hidapi ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue