openocd: 0.10.0 -> 2020-09-02
latest release is 3.5 years old but the project is still active
This commit is contained in:
parent
96bc644e2e
commit
0e79ce0751
@ -1,24 +1,17 @@
|
|||||||
{ stdenv, lib, fetchurl, fetchpatch, libftdi1, libusb1, pkgconfig, hidapi }:
|
{ stdenv, lib, fetchgit, libftdi1, libusb1, pkgconfig, hidapi, autoreconfHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "openocd";
|
pname = "openocd";
|
||||||
version = "0.10.0";
|
version = "2020-09-02";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchgit {
|
||||||
url = "mirror://sourceforge/openocd/openocd-${version}.tar.bz2";
|
url = "https://git.code.sf.net/p/openocd/code";
|
||||||
sha256 = "1bhn2c85rdz4gf23358kg050xlzh7yxbbwmqp24c0akmh3bff4kk";
|
rev = "d46f28c2ea2611f5fbbc679a5eed253d3dcd2fe3";
|
||||||
|
sha256 = "1256qqhn3pxmijfk1x0y5b5kc5ar88ivykkvx0h1m7pdwqfs6zm9";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||||
# 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 ];
|
|
||||||
buildInputs = [ libftdi1 libusb1 hidapi ];
|
buildInputs = [ libftdi1 libusb1 hidapi ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
@ -34,14 +27,9 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-remote-bitbang"
|
"--enable-remote-bitbang"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [
|
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
|
||||||
"-Wno-implicit-fallthrough"
|
|
||||||
"-Wno-format-truncation"
|
|
||||||
"-Wno-format-overflow"
|
|
||||||
"-Wno-error=tautological-compare"
|
|
||||||
"-Wno-error=array-bounds"
|
|
||||||
"-Wno-error=cpp"
|
"-Wno-error=cpp"
|
||||||
]);
|
];
|
||||||
|
|
||||||
postInstall = lib.optionalString stdenv.isLinux ''
|
postInstall = lib.optionalString stdenv.isLinux ''
|
||||||
mkdir -p "$out/etc/udev/rules.d"
|
mkdir -p "$out/etc/udev/rules.d"
|
||||||
@ -64,7 +52,7 @@ stdenv.mkDerivation rec {
|
|||||||
"remote target" for source-level debugging of embedded systems using the
|
"remote target" for source-level debugging of embedded systems using the
|
||||||
GNU GDB program.
|
GNU GDB program.
|
||||||
'';
|
'';
|
||||||
homepage = "http://openocd.sourceforge.net/";
|
homepage = "https://openocd.sourceforge.net/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ bjornfor ];
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user