build.plat: bypass tool detection if NMIGEN_*_env is set.
authorwhitequark <cz@m-labs.hk>
Thu, 12 Sep 2019 21:56:48 +0000 (21:56 +0000)
committerwhitequark <cz@m-labs.hk>
Thu, 12 Sep 2019 21:56:48 +0000 (21:56 +0000)
commit2f5cdc6a7e595abd4161a6c268ffa3f057f4f564
treee6d74b7a74bc90169d3b46ed401bd371ad767bdc
parent67ea65c2f16e285feee201d637947959d7a4cd66
build.plat: bypass tool detection if NMIGEN_*_env is set.

It's not practical to detect tools within the toolchain environment
for various reasons, so just assume the tools are there if the user
says they are.

Before this commit, the tools would be searched outside the toolchain
environment, which of course would always fail for Vivado, ISE, etc.
nmigen/build/plat.py
nmigen/vendor/lattice_ecp5.py
nmigen/vendor/xilinx_spartan_3_6.py