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

rm more eabihf remnants

parent 70166d4e
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ in ...@@ -5,7 +5,7 @@ in
with pkgs; with pkgs;
let let
openocd = callPackage ./openocd.nix {}; openocd = callPackage ./openocd.nix {};
rust = rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabihf" ]; rust = rustChannelOfTargets "nightly" null [ "thumbv7em-none-eabi" ];
rustPlatform = makeRustPlatform { rustPlatform = makeRustPlatform {
rustc = rust; rustc = rust;
cargo = rust; cargo = rust;
...@@ -27,7 +27,7 @@ let ...@@ -27,7 +27,7 @@ let
version = "0.0.0"; version = "0.0.0";
src = ./.; src = ./.;
cargoSha256 = "10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd"; cargoSha256 = "10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd";
buildInputs = [ pkgsCross.armhf-embedded.stdenv.cc glibc_multi ]; buildInputs = [ pkgsCross.arm-embedded.stdenv.cc glibc_multi ];
prePatch = '' prePatch = ''
cp ${epic-stubs}/client.c l0dable/src/ cp ${epic-stubs}/client.c l0dable/src/
''; '';
...@@ -40,7 +40,7 @@ let ...@@ -40,7 +40,7 @@ let
doCheck = false; doCheck = false;
installPhase = '' installPhase = ''
mkdir -p $out/lib mkdir -p $out/lib
cp target/thumbv7em-none-eabihf/release/example $out/lib/example.elf cp target/thumbv7em-none-eabi/release/example $out/lib/example.elf
''; '';
}; };
in { in {
......
[target.thumbv7em-none-eabihf] [target.thumbv7em-none-eabihf]
rustflags = [ rustflags = [
"-C", "linker=arm-none-eabihf-gcc", "-C", "linker=arm-none-eabi-gcc",
"-C", "link-args=-Tl0dable.ld -n -pie -fPIC", "-C", "link-args=-Tl0dable.ld -n -pie -fPIC",
"-C", "relocation-model=pic", "-C", "relocation-model=pic",
] ]
[build] [build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU) target = "thumbv7em-none-eabi" # Cortex-M4F and Cortex-M7F (with FPU)
...@@ -8,7 +8,7 @@ multiStdenv.mkDerivation { ...@@ -8,7 +8,7 @@ multiStdenv.mkDerivation {
buildInputs = [ buildInputs = [
gdb gdb
rust rust
pkgsCross.armhf-embedded.stdenv.cc pkgsCross.arm-embedded.stdenv.cc
openocd openocd
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment