Skip to content

Commit 487c88e

Browse files
AWSNBAWSwinefred
authored andcommitted
Awsnb vivado ver (#148)
* Adding support for vivado version check each HDK is tested with specific version(s) of Vivado vivado supported list is under /hdk/supported_vivado_versions.txt * Fixing vivado ver check so it can handle different output format
1 parent cb1ef3a commit 487c88e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

hdk/supported_vivado_versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Vivado v2016.3 (64-bit)

hdk_setup.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ echo "AWS FPGA: Checking for vivado install:"
77
# before going too far make sure Vivado is available
88
vivado -version >/dev/null 2>&1 || { echo >&2 "ERROR - Please install/enable Vivado." ; return 1; }
99

10+
export VIVADO_VER=`vivado -version | grep Vivado | head -1`
11+
12+
echo "AWS FPGA: Found $VIVADO_VER"
13+
14+
if grep -Fxq "$VIVADO_VER" $(pwd)/hdk/supported_vivado_versions.txt
15+
then
16+
echo "AWS FPGA: $VIVADO_VER is supported by this HDK release."
17+
else
18+
echo "AWS FPGA: ERROR - $VIVADO_VER is not supported by this HDK release."
19+
return 1
20+
fi
21+
1022
echo "AWS FPGA: Vivado check successed"
1123

1224
echo "AWS FPGA: Setting up environment variables"

0 commit comments

Comments
 (0)