forked from M-Labs/zynq-rs
add SZL multi-board package
This commit is contained in:
parent
040d41fd76
commit
8dbe2cf9f3
13
default.nix
13
default.nix
@ -39,10 +39,17 @@ let
|
|||||||
"${target}-szl" = build-crate "${target}-szl" "szl" "target_${target}" cargoSha256SZL;
|
"${target}-szl" = build-crate "${target}-szl" "szl" "target_${target}" cargoSha256SZL;
|
||||||
};
|
};
|
||||||
targets = ["zc706" "coraz7" "redpitaya" "kasli_soc"];
|
targets = ["zc706" "coraz7" "redpitaya" "kasli_soc"];
|
||||||
|
allTargetCrates = (builtins.foldl' (results: target:
|
||||||
|
results // targetCrates target
|
||||||
|
) {} targets);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit cargo-xbuild;
|
inherit cargo-xbuild;
|
||||||
zc706-fsbl = import ./nix/fsbl.nix { inherit pkgs; };
|
zc706-fsbl = import ./nix/fsbl.nix { inherit pkgs; };
|
||||||
} // (builtins.foldl' (results: target:
|
szl = pkgs.runCommand "szl" {} (builtins.foldl' (commands: target:
|
||||||
results // targetCrates target
|
let
|
||||||
) {} targets)
|
szlResult = builtins.getAttr "${target}-szl" allTargetCrates;
|
||||||
|
in
|
||||||
|
commands + "ln -s ${szlResult}/szl.elf $out/szl-${target}.elf\n"
|
||||||
|
) "mkdir $out\n" targets);
|
||||||
|
} // allTargetCrates
|
||||||
|
Loading…
Reference in New Issue
Block a user