Skip to content

Commit 5042a4e

Browse files
committed
Add generation of Device tree blob(.dtbo) from eventual dts folder
Signed-off-by: the-snowwhite <producer@holotronic.dk>
1 parent dc86589 commit 5042a4e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

HW/VivadoProjects/make_bitfile.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ sed -e "s|%PIN_NAME%|$PIN_NAME|" \
4949
"$IP_DIR"/src/hostmot2_ip_wrap.vhd
5050

5151
PRJ_FILE="$PRJ_DIR_CREATED"/"$PRJ_NAME".tcl
52-
BIT_FILE="$PRJ_NAME".bit.bin
52+
BIT_FILE="$PRJ_NAME".bit
5353

5454
# Update the project creation script from the config
5555
sed -e "s|%PRJ_NAME%|$PRJ_NAME|" \
@@ -69,8 +69,12 @@ if [ -d "$PRJ_DIR"/dts ]; then
6969
outname=`basename "$temp"`
7070
outfpath="$PRJ_DIR_CREATED"/${outname%_ol.dts.in}_"$FPGA_DEV_SHORT"_ol.dts
7171
echo $outfpath
72-
sed "s|%BIT_FILE%|$BIT_FILE.bin|" \
72+
sed "s|%BIT_FILE%|$BIT_FILE|" \
7373
"$temp" > "$outfpath"
74+
# Create .dtbo file for overlay
75+
outfpath2="$PRJ_DIR_CREATED"/${outname%_ol.dts.in}_"$FPGA_DEV_SHORT"_ol.dtbo
76+
echo $outfpath2
77+
dtc -I dts -O dtb -o "$outfpath2" "$outfpath"
7478
done
7579
fi
7680

0 commit comments

Comments
 (0)