build.plat: bypass tool detection if NMIGEN_*_env is set.
authorwhitequark <whitequark@whitequark.org>
Thu, 12 Sep 2019 21:56:48 +0000 (21:56 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 12 Sep 2019 21:56:48 +0000 (21:56 +0000)
commit9ea3ff7ae2fb14f862697ebd5fac03679125bb7b
treee6d74b7a74bc90169d3b46ed401bd371ad767bdc
parentc8f8c09f29c0562aaf450ae8e6a79c68673706fb
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