adi_project.pl: Fix ADI_NO_BITSTREAM_COMPRESSION detection logic

Only enable bitstream compression only if both the
ADI_NO_BITSTREAM_COMPRESSION environment and TCL variable are not set.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2016-07-13 18:46:34 +02:00
parent fe08222bdf
commit b2203cacce
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ proc adi_project_create {project_name {mode 0}} {
write_hwdef -file "$project_name.data/$project_name.hwdef" write_hwdef -file "$project_name.data/$project_name.hwdef"
} }
if {![info exists ::env(ADI_NO_BITSTREAM_COMPRESSION)] || ![info exists ADI_NO_BITSTREAM_COMPRESSION]} { if {![info exists ::env(ADI_NO_BITSTREAM_COMPRESSION)] && ![info exists ADI_NO_BITSTREAM_COMPRESSION]} {
add_files -norecurse -fileset sources_1 \ add_files -norecurse -fileset sources_1 \
"$ad_hdl_dir/projects/common/xilinx/compression_system_constr.xdc" "$ad_hdl_dir/projects/common/xilinx/compression_system_constr.xdc"
} }