forked from M-Labs/zynq-rs
default.nix: fix name, rm debug
This commit is contained in:
parent
266b0dec1a
commit
d3142ab6fa
|
@ -32,7 +32,6 @@ let
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
nativeBuildInputs ++ [ pkgs.cargo-xbuild ];
|
nativeBuildInputs ++ [ pkgs.cargo-xbuild ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
set -x
|
|
||||||
pushd ${crateSubdir}
|
pushd ${crateSubdir}
|
||||||
cargo xbuild --release --frozen \
|
cargo xbuild --release --frozen \
|
||||||
--no-default-features \
|
--no-default-features \
|
||||||
|
@ -46,7 +45,7 @@ let
|
||||||
cp target/armv7-none-eabihf/release/${name} $out/${name}.elf
|
cp target/armv7-none-eabihf/release/${name} $out/${name}.elf
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
xbuildCrate = crate: features: xbuildRustPackage rec {
|
xbuildCrate = name: crate: features: xbuildRustPackage rec {
|
||||||
name = "${crate}";
|
name = "${crate}";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
crateSubdir = crate;
|
crateSubdir = crate;
|
||||||
|
@ -57,7 +56,7 @@ let
|
||||||
in {
|
in {
|
||||||
inherit pkgs rustPlatform rustcSrc gcc;
|
inherit pkgs rustPlatform rustcSrc gcc;
|
||||||
zc706 = {
|
zc706 = {
|
||||||
zc706-experiments = xbuildCrate "experiments" "target_zc706";
|
experiments-zc706 = xbuildCrate "experiments-zc706" "experiments" "target_zc706";
|
||||||
cora-experiments = xbuildCrate "experiments" "target_cora_z7_10";
|
experiments-cora = xbuildCrate "experiments-cora" "experiments" "target_cora_z7_10";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue