Made openocd work with ft2232 jtag chipset, that of the Sheevaplug.

svn path=/nixpkgs/trunk/; revision=17407
This commit is contained in:
Lluís Batlle i Rossell 2009-09-24 21:28:27 +00:00
parent 15afc2fa04
commit f9035543d5
3 changed files with 31 additions and 2 deletions

View file

@ -0,0 +1,20 @@
{stdenv, fetchurl, libusb}:
stdenv.mkDerivation rec {
name = "libftdi-0.16";
src = fetchurl {
url = "http://www.intra2net.com/en/developer/libftdi/download/${name}.tar.gz";
sha256 = "1n12lcvpzmkph12gmg7i7560s0yly2gjgwhxh2h2inq93agg1xv2";
};
buildInputs = [ libusb ];
propagatedBuildInputs = [ libusb ];
meta = {
description = "A library to talk to FTDI chips using libusb";
homepage = http://www.intra2net.com/en/developer/libftdi/;
license = "LGPLv2.1";
};
}

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, libftdi}:
stdenv.mkDerivation {
name = "openocd-0.2.0";
@ -8,6 +8,11 @@ stdenv.mkDerivation {
sha256 = "1qdl2a2mxhl07xz32l9nxjvmf16b0717aqlrhd28akn6si3jps54";
};
configureFlags = [ "--enable-ft2232_libftdi" "--disable-werror" ];
buildInputs = [ libftdi ];
meta = {
homepage = http://openocd.berlios.de;
description = "Open On Chip Debugger";

View file

@ -2702,7 +2702,7 @@ let
};
openocd = import ../development/tools/misc/openocd {
inherit fetchurl stdenv;
inherit fetchurl stdenv libftdi;
};
oprofile = import ../development/tools/profiling/oprofile {
@ -3617,6 +3617,10 @@ let
inherit fetchurl stdenv;
};
libftdi = import ../development/libraries/libftdi {
inherit fetchurl stdenv libusb;
};
libgcrypt = import ../development/libraries/libgcrypt {
inherit fetchurl stdenv libgpgerror;
};