Merge pull request #1763 from josuah/radiant_wsl2
Allow use of Windows-side (.exe) Radiant toolchain
This commit is contained in:
commit
6c6cfeae7f
|
@ -209,6 +209,10 @@ class LatticeRadiantToolchain(GenericToolchain):
|
||||||
if self._synth_mode == "yosys":
|
if self._synth_mode == "yosys":
|
||||||
script_contents += self._yosys.get_yosys_call(target="script") + "\n"
|
script_contents += self._yosys.get_yosys_call(target="script") + "\n"
|
||||||
|
|
||||||
|
# Radiant installed on Windows, executed from WSL2
|
||||||
|
if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None:
|
||||||
|
tool = "pnmainc.exe"
|
||||||
|
|
||||||
script_contents += "{tool} {tcl_script}{fail_stmt}\n".format(
|
script_contents += "{tool} {tcl_script}{fail_stmt}\n".format(
|
||||||
tool = tool,
|
tool = tool,
|
||||||
tcl_script = self._build_name + ".tcl",
|
tcl_script = self._build_name + ".tcl",
|
||||||
|
@ -232,6 +236,10 @@ class LatticeRadiantToolchain(GenericToolchain):
|
||||||
shell = ["bash"]
|
shell = ["bash"]
|
||||||
tool = "radiantc"
|
tool = "radiantc"
|
||||||
|
|
||||||
|
# Radiant installed on Windows, executed from WSL2
|
||||||
|
if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None:
|
||||||
|
tool = "pnmainc.exe"
|
||||||
|
|
||||||
if which(tool) is None:
|
if which(tool) is None:
|
||||||
msg = "Unable to find Radiant toolchain, please:\n"
|
msg = "Unable to find Radiant toolchain, please:\n"
|
||||||
msg += "- Add Radiant toolchain to your $PATH."
|
msg += "- Add Radiant toolchain to your $PATH."
|
||||||
|
|
Loading…
Reference in New Issue