Skip to content

Commit c7e7aba

Browse files
committed
scripts/adi_env.tcl: Add export of ADI_HDL_DIR
Export the ADI_HDL_DIR environment variable so scripts like gtwiz_parser.pl can access it to locate required HDL files.
1 parent ffbe6af commit c7e7aba

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)