Skip to content

Commit

Permalink
Fix run.sh to get absolute path of XILINX_XRT
Browse files Browse the repository at this point in the history
Use readlink to convert to physical absolute path; this takes care
converting symlinks also.
  • Loading branch information
stsoe committed Jun 20, 2018
1 parent 5d76314 commit 0b3082b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions build/board.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# % mkdir test
# % cd test
# % board.sh -board vcu1525 [-sync]

absolute="$(cd $(dirname ${BASH_SOURCE[0]}); pwd)/$(basename ${BASH_SOURCE[0]})"
XRTBUILD=$(dirname ${absolute})
echo ${XRTBUILD}
XRTBUILD=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
################################################################
# Environment
################################################################
Expand Down
3 changes: 1 addition & 2 deletions build/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# % run.sh ./host.exe kernel.xclin
# % run.sh -dbg ./host.exe kernel.xclin
# % run.sh -dbg emacs

XRTBUILD=$(dirname ${BASH_SOURCE[0]})
XRTBUILD=$(readlink -f $(dirname ${BASH_SOURCE[0]}))

# Define SDX and VIVADO to allow this loader script to be used
# through other scripts (e.g. sprite scripts) that invoke SDx
Expand Down

0 comments on commit 0b3082b

Please sign in to comment.