Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
m
rust-card10
Commits
520d4927
Commit
520d4927
authored
Aug 24, 2019
by
Astro
⚙
Browse files
rm obsolete openocd.nix
this repo is now l0dable-only and l0dables can't be debugged?
parent
705bf29f
Changes
3
Hide whitespace changes
Inline
Side-by-side
default.nix
View file @
520d4927
...
...
@@ -4,7 +4,6 @@ let
in
with
pkgs
;
let
openocd
=
callPackage
./openocd.nix
{};
rust
=
rustChannelOfTargets
"nightly"
null
[
"thumbv7em-none-eabi"
];
rustPlatform
=
makeRustPlatform
{
rustc
=
rust
;
...
...
openocd.nix
deleted
100644 → 0
View file @
705bf29f
{
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"
''
;
}
shell.nix
View file @
520d4927
...
...
@@ -10,7 +10,6 @@ stdenv.mkDerivation {
glibc_multi
rust
pkgsCross
.
arm-embedded
.
stdenv
.
cc
openocd
];
LIBCLANG_PATH
=
"
${
llvmPackages
.
libclang
}
/lib"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment