scripts: Set required Vivado version only in adi_env.tcl

Signed-off-by: Iulia Moldovan <iulia.moldovan@analog.com>
main
Iulia Moldovan 2022-08-16 12:32:22 +01:00 committed by imoldovan
parent dde37124a4
commit e02d31cdfd
2 changed files with 1 additions and 24 deletions

View File

@ -1,20 +1,5 @@
source $ad_hdl_dir/library/scripts/adi_xilinx_device_info_enc.tcl source $ad_hdl_dir/library/scripts/adi_xilinx_device_info_enc.tcl
source $ad_hdl_dir/scripts/adi_env.tcl
# check tool version
set required_vivado_version "2021.2"
if {[info exists ::env(REQUIRED_VIVADO_VERSION)]} {
set required_vivado_version $::env(REQUIRED_VIVADO_VERSION)
} elseif {[info exists REQUIRED_VIVADO_VERSION]} {
set required_vivado_version $REQUIRED_VIVADO_VERSION
}
if {[info exists ::env(ADI_IGNORE_VERSION_CHECK)]} {
set IGNORE_VERSION_CHECK 1
} elseif {![info exists IGNORE_VERSION_CHECK]} {
set IGNORE_VERSION_CHECK 0
}
if {[info exists ::env(ADI_VIVADO_IP_LIBRARY)]} { if {[info exists ::env(ADI_VIVADO_IP_LIBRARY)]} {
set VIVADO_IP_LIBRARY $::env(ADI_VIVADO_IP_LIBRARY) set VIVADO_IP_LIBRARY $::env(ADI_VIVADO_IP_LIBRARY)

View File

@ -30,13 +30,6 @@ if {![info exists REQUIRED_QUARTUS_VERSION]} {
set REQUIRED_QUARTUS_VERSION "21.2.0" set REQUIRED_QUARTUS_VERSION "21.2.0"
} }
# Define the ADI_IGNORE_VERSION_CHECK environment variable to skip version check
if {[info exists ::env(ADI_IGNORE_VERSION_CHECK)]} {
set IGNORE_VERSION_CHECK 1
} elseif {![info exists IGNORE_VERSION_CHECK]} {
set IGNORE_VERSION_CHECK 0
}
# This helper pocedure retrieves the value of varible from environment if exists, # This helper pocedure retrieves the value of varible from environment if exists,
# other case returns the provided default value # other case returns the provided default value
# name - name of the environment variable # name - name of the environment variable
@ -49,4 +42,3 @@ proc get_env_param {name default_value} {
return $default_value return $default_value
} }
} }