litex_setup/riscv_gcc_toolchain_download: Add Fedora support (get linux-centos6).
This commit is contained in:
parent
85d6cb4b8d
commit
0503188661
|
@ -171,7 +171,12 @@ def riscv_gcc_toolchain_download():
|
||||||
end_file = "w64-mingw32.zip"
|
end_file = "w64-mingw32.zip"
|
||||||
# Linux
|
# Linux
|
||||||
elif sys.platform.startswith("linux"):
|
elif sys.platform.startswith("linux"):
|
||||||
end_file = "linux-ubuntu14.tar.gz"
|
os_release = (open("/etc/os-release").read()).lower()
|
||||||
|
if "fedora" in os_release:
|
||||||
|
end_file = "linux-centos6.tar.gz"
|
||||||
|
else:
|
||||||
|
end_file = "linux-ubuntu14.tar.gz"
|
||||||
|
|
||||||
# Mac OS
|
# Mac OS
|
||||||
elif sys.platform.startswith("darwin"):
|
elif sys.platform.startswith("darwin"):
|
||||||
end_file = "apple-darwin.tar.gz"
|
end_file = "apple-darwin.tar.gz"
|
||||||
|
|
Loading…
Reference in New Issue