Skip to content

Commit 551ed12

Browse files
committed
Let bootgen Skip ultra96 projects
Signed-off-by: Michael Brown <producer@holotronic.dk>
1 parent efdd2a1 commit 551ed12

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

HW/VivadoProjects/make_bitfile.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,15 @@ cd ../VivadoProjects
8383
# Run the tcl script to build the project and generate the bitfile
8484
/tools/Xilinx/Vivado/2019.1/bin/vivado -mode batch -source "$PRJ_FILE"
8585

86-
# Update the bif file for bootgen
87-
# component file1 needs the pin file path
88-
sed "s|%BIT_FILE%|$PRJ_DIR_CREATED/$BIT_FILE|" \
89-
bif/all.bif.in > \
90-
bif/all.bif
91-
92-
# Now use bootgen so we can program it from linux
93-
/tools/Xilinx/SDK/2019.1/bin/bootgen -image bif/all.bif -w -process_bitstream bin
86+
# bootgen: skip ultre96 projects
87+
if test "${1#*"ultra96"}" = "$1"; then
88+
89+
# Update the bif file for bootgen
90+
# component file1 needs the pin file path
91+
sed "s|%BIT_FILE%|$PRJ_DIR_CREATED/$BIT_FILE|" \
92+
bif/all.bif.in > \
93+
bif/all.bif
94+
95+
# Now use bootgen so we can program it from linux
96+
/tools/Xilinx/SDK/2019.1/bin/bootgen -image bif/all.bif -w -process_bitstream bin
97+
fi

0 commit comments

Comments
 (0)