1
0
Fork 0

remote-run: use CRC for rsync of pure build products

This commit is contained in:
Sebastien Bourdeauducq 2020-07-04 23:33:10 +08:00
parent a56abe8830
commit 8af8c89481
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ if [ $impure -eq 1 ]; then
rsync $impure_dir/firmware/armv7-none-eabihf/release/szl $target_host:$target_folder/szl.elf rsync $impure_dir/firmware/armv7-none-eabihf/release/szl $target_host:$target_folder/szl.elf
rsync $impure_dir/gateware/top.bit $target_host:$target_folder rsync $impure_dir/gateware/top.bit $target_host:$target_folder
else else
rsync -L $pure_dir/szl.elf $target_host:$target_folder rsync -Lc $pure_dir/szl.elf $target_host:$target_folder
rsync -L $pure_dir/top.bit $target_host:$target_folder rsync -Lc $pure_dir/top.bit $target_host:$target_folder
fi fi
echo "Programming board..." echo "Programming board..."
ssh $target_host "cd $target_folder; openocd -f zc706.cfg -c 'pld load 0 top.bit; load_image szl.elf; resume 0; exit'" ssh $target_host "cd $target_folder; openocd -f zc706.cfg -c 'pld load 0 top.bit; load_image szl.elf; resume 0; exit'"