dac_fmc_ebz: Add build time config option

main
AndreiGrozav 2019-10-10 16:04:06 +03:00 committed by AndreiGrozav
parent e22016de4c
commit 58b846faae
1 changed files with 19 additions and 3 deletions

View File

@ -1,7 +1,23 @@
# Select the device and mode you want the project synthesise for:
# Select the device and mode you want the project synthesise for, by setting the
# ADI_DAC_DEVICE and ADI_DAC_MODE environment variables:
#
# make ADI_DAC_DEVICE=AD9172 ADI_DAC_MODE=04
set device AD9172
set mode 04
# Default:
set device AD9172
set mode 04
if [info exists ::env(ADI_DAC_DEVICE)] {
set device $::env(ADI_DAC_DEVICE)
} else {
set env(ADI_DAC_DEVICE) $device
}
if [info exists ::env(ADI_DAC_MODE)] {
set mode $::env(ADI_DAC_MODE)
} else {
set env(ADI_DAC_MODE) $mode
}
# 1 - Single link
# 2 - Dual link