forked from M-Labs/nix-servo
rename board specific packages
This commit is contained in:
parent
0ff299aa55
commit
3d98549fd1
@ -257,6 +257,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
u-boot = (pkgs-armv7l.buildUBoot {
|
u-boot = (pkgs-armv7l.buildUBoot {
|
||||||
|
name = "${board}-u-boot";
|
||||||
defconfig = "xilinx_zynq_virt_defconfig";
|
defconfig = "xilinx_zynq_virt_defconfig";
|
||||||
patches = [] ++ pkgs.lib.optional (board == "fast-servo") ./fast-servo/u-boot.patch;
|
patches = [] ++ pkgs.lib.optional (board == "fast-servo") ./fast-servo/u-boot.patch;
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -310,7 +311,7 @@
|
|||||||
echo file binary-dist $out/boot.bin >> $out/nix-support/hydra-build-products
|
echo file binary-dist $out/boot.bin >> $out/nix-support/hydra-build-products
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dtb = pkgs.runCommand "dtb"
|
dtb = pkgs.runCommand "${board}-dtb"
|
||||||
{
|
{
|
||||||
buildInputs = [ pkgs.gcc pkgs.dtc ];
|
buildInputs = [ pkgs.gcc pkgs.dtc ];
|
||||||
}
|
}
|
||||||
@ -337,7 +338,7 @@
|
|||||||
firmwareSize = 30;
|
firmwareSize = 30;
|
||||||
firmwarePartitionOffset = 8;
|
firmwarePartitionOffset = 8;
|
||||||
in pkgs.stdenv.mkDerivation {
|
in pkgs.stdenv.mkDerivation {
|
||||||
name = "sd-image";
|
name = "${board}-sd-image";
|
||||||
nativeBuildInputs = with pkgs; [ dosfstools mtools libfaketime util-linux parted ];
|
nativeBuildInputs = with pkgs; [ dosfstools mtools libfaketime util-linux parted ];
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/nix-support $out/sd-image
|
mkdir -p $out/nix-support $out/sd-image
|
||||||
@ -402,7 +403,7 @@
|
|||||||
|
|
||||||
rm -rf $IMGDIR
|
rm -rf $IMGDIR
|
||||||
'';
|
'';
|
||||||
in pkgs.runCommand "not-os-qemu" {
|
in pkgs.runCommand "${board}-qemu" {
|
||||||
inherit qemuScript;
|
inherit qemuScript;
|
||||||
passAsFile = [ "qemuScript" ];
|
passAsFile = [ "qemuScript" ];
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user