f4pga / f4pga-arch-defs

FOSS architecture definitions of FPGA hardware useful for doing PnR device generation.
https://f4pga.org
ISC License
270 stars 112 forks source link

Cmake warnings: #736

Open kgugala opened 5 years ago

kgugala commented 5 years ago

Fresh clone throws the following warings on build env:

CMake Warning at xc7/make/vivado.cmake:39 (message):
  Vivado targets for dram_test_64x1d_vivado not emitted, XRAY_VIVADO_SETTINGS
  env var must be set to point to Vivado settings.sh
Call Stack (most recent call first):
  xc7/tests/dram_test/CMakeLists.txt:30 (add_vivado_target)

CMake Warning at xc7/make/vivado.cmake:39 (message):
  Vivado targets for dram_test_32m_vivado not emitted, XRAY_VIVADO_SETTINGS
  env var must be set to point to Vivado settings.sh
Call Stack (most recent call first):
  xc7/tests/dram_test/CMakeLists.txt:30 (add_vivado_target)

CMake Warning at xc7/make/vivado.cmake:39 (message):
  Vivado targets for dram_test_64m_vivado not emitted, XRAY_VIVADO_SETTINGS
  env var must be set to point to Vivado settings.sh
Call Stack (most recent call first):
  xc7/tests/dram_test/CMakeLists.txt:30 (add_vivado_target)
acomodi commented 5 years ago

@kgugala I had the same, to solve this you should set the env var XRAY_VIVADO_SETTINGS and the warnings won't show up again (https://github.com/SymbiFlow/symbiflow-arch-defs/blob/055447a13d508e362bad6fd2092febb4d36b849a/xc7/make/vivado.cmake#L39).

mithro commented 5 years ago

We should probably add a default value which is the default Xilinx location.

litghost commented 5 years ago

We should probably add a default value which is the default Xilinx location.

There is no such thing as the default Xilinx location, and there is no guarantee it is even installed.

mithro commented 5 years ago

Sure there is.


From prjxray

https://github.com/SymbiFlow/prjxray/blob/7ea41e257d9641d5633bb13eb276f5b48522258f/utils/environment.sh#L39

export XRAY_VIVADO_SETTINGS="${XRAY_VIVADO_SETTINGS:-/opt/Xilinx/Vivado/2017.2/settings64.sh}"

From LiteX BuildEnv

https://github.com/timvideos/litex-buildenv/blob/7fc049aad997d8deefb5980fc559fce5f2170675/scripts/enter-env.sh#L159-L197

                XILINX_SETTINGS_ISE='/opt/Xilinx/*/ISE_DS/settings64.sh'
                XILINX_SETTINGS_VIVADO='/opt/Xilinx/Vivado/*/settings64.sh'
GitHub
SymbiFlow/prjxray
Documenting the Xilinx 7-series bit-stream format. - SymbiFlow/prjxray
GitHub
timvideos/litex-buildenv
An environment for building LiteX based FPGA designs. Makes it easy to get everything you need! - timvideos/litex-buildenv