Skip to content

Commit a585c87

Browse files
authored
fixed dtbo copy issue with pynq package (#1501)
1 parent 2ad4c72 commit a585c87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sdbuild/packages/pynq/pre.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ if [ "$BOARDDIR" != "$DEFAULT_BOARDDIR" ] && [ "$PYNQ_BOARD" != "Unknown" ]; the
4343
for ol in $overlays ; do
4444
ol_name=`basename $ol`
4545
sudo mkdir -p $pynqoverlays_dir/$ol_name
46-
sudo cp -fL $ol/*.bit $ol/*.hwh $ol/*.py $ol/*.dtbo $pynqoverlays_dir/$ol_name
46+
sudo cp -fL $ol/*.bit $ol/*.hwh $ol/*.py $pynqoverlays_dir/$ol_name
47+
48+
# Copy device tree overlays if they exist
49+
if [ -f $ol/*.dtbo ]; then
50+
sudo cp -fL $ol/*.dtbo $pynqoverlays_dir/$ol_name
51+
fi
4752

4853
if [ -e $ol_name/notebooks ]; then
4954
sudo mkdir -p $target/home/xilinx/pynq_git/notebooks/$ol_name

0 commit comments

Comments
 (0)