Skip to content

Commit b220124

Browse files
authored
Fixes to create_vitis_sfi script (#598) (#487)
* Fixes to create_vitis_sfi script * Fixed based on feedback
1 parent 61f6e2e commit b220124

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

Vitis/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,6 @@ For help with AFI creation issues, see [create-fpga-image error codes](../hdk/do
193193
* To setup tools, runtime environment & execute your Host Application:
194194
```
195195
$ git clone https://github.com/aws/aws-fpga.git $AWS_FPGA_REPO_DIR
196-
$ cd $AWS_FPGA_REPO_DIR
197-
$ source vitis_setup.sh
198-
$ ./host ./vadd.awsxclbin
199-
```
200-
201-
* Alternatively, to only setup the runtime environment & execute your host application:
202-
```
203196
$ cd $AWS_FPGA_REPO_DIR
204197
$ source vitis_runtime_setup.sh # Other runtime env settings needed by the host app should be setup after this step
205198
# Wait till the MPD service has initialized. Check systemctl status mpd

Vitis/tools/create_vitis_afi.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ script_name=$(basename $full_script)
2323

2424
source $AWS_FPGA_REPO_DIR/shared/bin/set_common_functions.sh
2525
source $AWS_FPGA_REPO_DIR/shared/bin/set_common_env_vars.sh
26+
script_dir=$(dirname $full_script)
27+
2628

2729
debug=0
2830

@@ -91,12 +93,6 @@ while [ "$1" != "" ]; do
9193
shift
9294
done
9395

94-
if [ "$HDK_DIR" == "" ]
95-
then
96-
err_msg "Env HDK_DIR not set"
97-
exit 1
98-
fi
99-
echo $HDK_DIR
10096
if [ "$RELEASE_VER" == "" ]
10197
then
10298
err_msg "Env variable RELEASE_VER not set, did you source sdaccel_setup.sh?"
@@ -199,7 +195,7 @@ cp ${timestamp}_SH_CL_routed.dcp ./to_aws/
199195
#STEP 2
200196
#Create Manifest file
201197
strategy=DEFAULT
202-
hdk_version=$(grep 'HDK_VERSION' $HDK_DIR/hdk_version.txt | sed 's/=/ /g' | awk '{print $2}')
198+
hdk_version=$(grep 'HDK_VERSION' $script_dir/../../hdk/hdk_version.txt | sed 's/=/ /g' | awk '{print $2}')
203199
shell_version=0x04261818
204200
tool_version=v$RELEASE_VER
205201
device_id=0xF010

0 commit comments

Comments
 (0)