mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/lattice/radiant: fix uname() not prefixed by 'os.'
This commit is contained in:
parent
6c6cfeae7f
commit
5e4628f1fe
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ class LatticeRadiantToolchain(GenericToolchain):
|
|||
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:
|
||||
if "microsoft-standard" in os.uname().release and which("pnmainc.exe") is not None:
|
||||
tool = "pnmainc.exe"
|
||||
|
||||
script_contents += "{tool} {tcl_script}{fail_stmt}\n".format(
|
||||
|
@ -237,7 +237,7 @@ class LatticeRadiantToolchain(GenericToolchain):
|
|||
tool = "radiantc"
|
||||
|
||||
# Radiant installed on Windows, executed from WSL2
|
||||
if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None:
|
||||
if "microsoft-standard" in os.uname().release and which("pnmainc.exe") is not None:
|
||||
tool = "pnmainc.exe"
|
||||
|
||||
if which(tool) is None:
|
||||
|
|
Loading…
Reference in a new issue