]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blob - system/script/dist.tcl
sja1000: IP fixes, corrected device-tree entry, it works now
[fpga/zynq/canbench-sw.git] / system / script / dist.tcl
1 # post-write_bitstream script
2 # executed in impl_1 directory
3
4 #set dir [get_property DIRECTORY [current_project]]
5 #set impl_dir [get_property DIRECTORY [current_run]]
6 set _pwd [pwd]
7 set impl_dir .
8 set dir ../..
9 puts "Current dir: $_pwd"
10 puts "Project dir: $dir"
11 puts "Impl dir: $impl_dir"
12 file copy -force $impl_dir/top_wrapper.hwdef $dir/../system.hdf
13 file copy -force $impl_dir/top_wrapper.bit $dir/../system.bit
14 file copy -force $dir/../system.hdf /tftpboot/system.hdf
15 file copy -force $dir/../system.bit /tftpboot/system.bit
16
17 cd $dir/..
18 exec bootgen -image system.bif -w -process_bitstream bin
19 cd $_pwd
20
21 file copy -force $dir/../system.bit.bin /export/canbench/system.bit.bin
22 exec gzip -f /export/canbench/system.bit.bin