Skip to content

Commit d64d4c8

Browse files
committed
scripts: Add export of the ADI_HDL_DIR environment variable
Export adi_hdl_dir so scripts like gtwiz_parser.pl can access it for locating required HDL files.
1 parent 2173453 commit d64d4c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/adi_env.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ set ad_hdl_dir [file normalize [file join [file dirname [info script]] "../"]]
88

99
if [info exists ::env(ADI_HDL_DIR)] {
1010
set ad_hdl_dir [file normalize $::env(ADI_HDL_DIR)]
11+
} else {
12+
set env(ADI_HDL_DIR) $ad_hdl_dir
1113
}
1214

1315
if [info exists ::env(ADI_GHDL_DIR)] {

0 commit comments

Comments
 (0)