Clean up generated files before FPGA build

This commit is contained in:
Joris van Rantwijk 2024-10-06 20:44:44 +02:00
parent 4d79fecfdc
commit 604766ab3b
1 changed files with 7 additions and 3 deletions

View File

@ -1,18 +1,22 @@
#!/bin/bash
set -e
set -o pipefail
. script_env
setup_vivado
rm -f puzzlefw_top.bit.bin redpitaya_puzzlefw.xsa
rm -rf vivado/redpitaya_puzzlefw.srcs/sources_1/bd/puzzlefw/ip
rm -rf vivado/redpitaya_puzzlefw.srcs/sources_1/bd/puzzlefw/ipshared
rm -rf vivado/redpitaya_puzzlefw.gen
rm -rf vivado/output
mkdir -p vivado/output
( cd vivado
mkdir -p output
stdbuf -oL vivado -mode batch -source nonproject.tcl | tee output/build_log.txt )
rm -f vivado/output/puzzlefw_top.bit.bin
cat >vivado/output/bitstream.bif <<EOF
all:
{