forked from M-Labs/zynq-rs
default.nix: build crates for all targets
This commit is contained in:
parent
0714162113
commit
7bbd16f143
17
default.nix
17
default.nix
@ -31,13 +31,16 @@ let
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
targetCrates = target: {
|
||||||
|
"${target}-experiments" = build-crate "${target}-experiments" "experiments" "target_${target}" cargoSha256Experiments;
|
||||||
|
"${target}-szl" = build-crate "${target}-szl" "szl" "target_${target}" cargoSha256SZL;
|
||||||
|
};
|
||||||
|
targets = ["zc706" "coraz7" "redpitaya"];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit cargo-xbuild;
|
inherit cargo-xbuild;
|
||||||
zc706-experiments = build-crate "zc706-experiments" "experiments" "target_zc706" cargoSha256Experiments;
|
zc706-fsbl = import ./nix/fsbl.nix { inherit pkgs; };
|
||||||
cora-experiments = build-crate "cora-experiments" "experiments" "target_cora_z7_10" cargoSha256Experiments;
|
} // (builtins.foldl' (results: target:
|
||||||
redpitaya-experiments = build-crate "redpitaya-experiments" "experiments" "target_redpitaya" cargoSha256Experiments;
|
results // targetCrates target
|
||||||
zc706-fsbl = (import ./nix/fsbl.nix { inherit pkgs; });
|
) {} targets)
|
||||||
zc706-szl = build-crate "zc706-szl" "szl" "target_zc706" cargoSha256SZL;
|
|
||||||
redpitaya-szl = build-crate "redpitaya-szl" "szl" "target_redpitaya" cargoSha256SZL;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user