include Sayma RTM bitstream in output
This commit is contained in:
parent
a02af3e857
commit
b47517897c
|
@ -2,7 +2,10 @@
|
||||||
# nix.sandboxPaths = ["/opt"];
|
# nix.sandboxPaths = ["/opt"];
|
||||||
|
|
||||||
{ pkgs ? import <nixpkgs> {}}:
|
{ pkgs ? import <nixpkgs> {}}:
|
||||||
{ target, variant, buildCommand ? "python -m artiq.gateware.targets.${target} -V ${variant}" }:
|
{ target
|
||||||
|
, variant
|
||||||
|
, buildCommand ? "python -m artiq.gateware.targets.${target} -V ${variant}"
|
||||||
|
, extraInstallCommands ? ""}:
|
||||||
|
|
||||||
let
|
let
|
||||||
fetchcargo = import ./fetchcargo.nix {
|
fetchcargo = import ./fetchcargo.nix {
|
||||||
|
@ -60,5 +63,6 @@ in pkgs.python3Packages.buildPythonPackage rec {
|
||||||
then cp artiq_${target}/${variant}/software/runtime/runtime.{elf,fbi} $TARGET_DIR
|
then cp artiq_${target}/${variant}/software/runtime/runtime.{elf,fbi} $TARGET_DIR
|
||||||
else cp artiq_${target}/${variant}/software/satman/satman.{elf,fbi} $TARGET_DIR
|
else cp artiq_${target}/${variant}/software/satman/satman.{elf,fbi} $TARGET_DIR
|
||||||
fi
|
fi
|
||||||
|
${extraInstallCommands}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ let
|
||||||
target = "sayma";
|
target = "sayma";
|
||||||
variant = "satellite";
|
variant = "satellite";
|
||||||
buildCommand = "python -m artiq.gateware.targets.sayma_rtm && python -m artiq.gateware.targets.sayma_amc -V satellite";
|
buildCommand = "python -m artiq.gateware.targets.sayma_rtm && python -m artiq.gateware.targets.sayma_amc -V satellite";
|
||||||
|
extraInstallCommands = "cp artiq_sayma/rtm_gateware/rtm.bit $TARGET_DIR";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue