Skip to content
Snippets Groups Projects
Commit 520d4927 authored by Astro's avatar Astro :gear:
Browse files

rm obsolete openocd.nix

this repo is now l0dable-only and l0dables can't be debugged?
parent 705bf29f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ let
in
with pkgs;
let
openocd = callPackage ./openocd.nix {};
rust = rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabi" ];
rustPlatform = makeRustPlatform {
rustc = rust;
......
{ stdenv, makeWrapper, openocd, fetchFromGitHub, autoreconfHook, git, which }:
let
maxim-openocd = openocd.overrideAttrs (oa: {
name = "maxim-openocd";
src = fetchFromGitHub {
owner = "maximmbed";
repo = "openocd";
rev = "e71ac88c9dbfa4ee1405d7a86376119dcc887ed1";
sha256 = "18yc1wyclmjxqg6jilfcm60hi01pgqc4dilsmksqbhg23m6x4ycw";
fetchSubmodules = true;
};
nativeBuildInputs = oa.nativeBuildInputs ++ [
autoreconfHook
git
which
];
enableParallelBuilding = true;
});
card10-scripts = stdenv.mkDerivation {
name = "card10-scripts";
src = ./c/openocd/scripts;
dontBuild = true;
installPhase = ''
mkdir -p $out/share/openocd
cp -ar . $out/share/openocd/scripts
'';
};
in
stdenv.mkDerivation {
name = "openocd-card10";
src = maxim-openocd;
phases = [ "unpackPhase" "installPhase" ];
buildInputs = [ makeWrapper maxim-openocd card10-scripts ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${maxim-openocd}/bin/openocd $out/bin/openocd-card10 \
--add-flags "-f ${card10-scripts}/share/openocd/scripts/interface/cmsis-dap.cfg" \
--add-flags "-f ${card10-scripts}/share/openocd/scripts/target/max32665.cfg"
'';
}
......@@ -10,7 +10,6 @@ stdenv.mkDerivation {
glibc_multi
rust
pkgsCross.arm-embedded.stdenv.cc
openocd
];
LIBCLANG_PATH="${llvmPackages.libclang}/lib";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment