added arch linux support for riscv and openrisc toolchains
This commit is contained in:
parent
c834387965
commit
fec8bbe42c
|
@ -341,9 +341,13 @@ def riscv_gcc_install():
|
||||||
# ------
|
# ------
|
||||||
if sys.platform.startswith("linux"):
|
if sys.platform.startswith("linux"):
|
||||||
os_release = (open("/etc/os-release").read()).lower()
|
os_release = (open("/etc/os-release").read()).lower()
|
||||||
|
print(os_release)
|
||||||
# Fedora.
|
# Fedora.
|
||||||
if "fedora" in os_release:
|
if "fedora" in os_release:
|
||||||
os.system("dnf install gcc-riscv64-linux-gnu")
|
os.system("dnf install gcc-riscv64-linux-gnu")
|
||||||
|
# Arch.
|
||||||
|
elif "arch" in os_release:
|
||||||
|
os.system("pacman -S riscv64-linux-gnu-gcc")
|
||||||
# Ubuntu.
|
# Ubuntu.
|
||||||
else:
|
else:
|
||||||
os.system("apt install gcc-riscv64-linux-gnu")
|
os.system("apt install gcc-riscv64-linux-gnu")
|
||||||
|
@ -389,6 +393,9 @@ def openrisc_gcc_install():
|
||||||
# Fedora.
|
# Fedora.
|
||||||
if "fedora" in os_release:
|
if "fedora" in os_release:
|
||||||
os.system("dnf install gcc-or1k-elf")
|
os.system("dnf install gcc-or1k-elf")
|
||||||
|
# Arch.
|
||||||
|
elif "arch" in os_release:
|
||||||
|
os.system("pacman -S or1k-elf-gcc")
|
||||||
# Ubuntu.
|
# Ubuntu.
|
||||||
else:
|
else:
|
||||||
os.system("apt install gcc-or1k-elf")
|
os.system("apt install gcc-or1k-elf")
|
||||||
|
@ -467,4 +474,4 @@ def main():
|
||||||
openrisc_gcc_install()
|
openrisc_gcc_install()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
Loading…
Reference in New Issue