Skip to content

Commit

Permalink
Merge pull request f4pga#1986 from nickoe/fix_xc7_symbiflow_write_bit…
Browse files Browse the repository at this point in the history
…stream

Define DBROOT after DEVICE is set
  • Loading branch information
litghost committed Jan 31, 2021
2 parents 3410875 + e16b209 commit 4f62d7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xc/xc7/toolchain_wrappers/symbiflow_write_bitstream
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ while true; do
done

DATABASE_DIR=${DATABASE_DIR:=$(prjxray-config)}
DBROOT=`realpath ${DATABASE_DIR}/${DEVICE}`

if [ -z $DEVICE ]; then
# Try to find device name. Accept only when exactly one is found
Expand All @@ -61,6 +60,8 @@ if [ -z $DEVICE ]; then
fi
fi

DBROOT=`realpath ${DATABASE_DIR}/${DEVICE}`

if [ -z $FASM ]; then
echo "Please provide fasm file name"
exit 1
Expand Down

0 comments on commit 4f62d7a

Please sign in to comment.