default.nix: also use BIF format to contain bitstream for SZL
This commit is contained in:
parent
e4b17f9473
commit
dec245e637
16
default.nix
16
default.nix
@ -72,24 +72,17 @@ let
|
|||||||
bifdir=`mktemp -d`
|
bifdir=`mktemp -d`
|
||||||
cd $bifdir
|
cd $bifdir
|
||||||
ln -s ${firmware}/szl.elf szl.elf
|
ln -s ${firmware}/szl.elf szl.elf
|
||||||
|
ln -s ${gateware}/top.bit top.bit
|
||||||
cat > boot.bif << EOF
|
cat > boot.bif << EOF
|
||||||
the_ROM_image:
|
the_ROM_image:
|
||||||
{
|
{
|
||||||
[bootloader]szl.elf
|
[bootloader]szl.elf
|
||||||
|
top.bit
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
mkdir $out
|
mkdir $out $out/nix-support
|
||||||
mkbootimage boot.bif $out/boot.bin
|
mkbootimage boot.bif $out/boot.bin
|
||||||
ln -s ${gateware}/top.bit $out
|
echo file binary-dist $out/boot.bin >> $out/nix-support/hydra-build-products
|
||||||
'';
|
|
||||||
sd-zip = pkgs.runCommand "zc706-${variant}-sd-zip"
|
|
||||||
{
|
|
||||||
buildInputs = [ pkgs.zip ];
|
|
||||||
}
|
|
||||||
''
|
|
||||||
mkdir -p $out $out/nix-support
|
|
||||||
zip -j $out/sd.zip ${sd}/*
|
|
||||||
echo file binary-dist $out/sd.zip >> $out/nix-support/hydra-build-products
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# FSBL startup
|
# FSBL startup
|
||||||
@ -121,7 +114,6 @@ let
|
|||||||
"zc706-${variant}-gateware" = gateware;
|
"zc706-${variant}-gateware" = gateware;
|
||||||
"zc706-${variant}-jtag" = jtag;
|
"zc706-${variant}-jtag" = jtag;
|
||||||
"zc706-${variant}-sd" = sd;
|
"zc706-${variant}-sd" = sd;
|
||||||
"zc706-${variant}-sd-zip" = sd-zip;
|
|
||||||
"zc706-${variant}-fsbl-sd" = fsbl-sd;
|
"zc706-${variant}-fsbl-sd" = fsbl-sd;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user