mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1561 from roby2014/master
Add Arch Linux setup support for RISC-V and OpenRISC toolchains
This commit is contained in:
commit
803fb6323e
1 changed files with 10 additions and 0 deletions
|
@ -344,6 +344,9 @@ def riscv_gcc_install():
|
|||
# Fedora.
|
||||
if "fedora" in os_release:
|
||||
os.system("dnf install gcc-riscv64-linux-gnu")
|
||||
# Arch.
|
||||
elif "arch" in os_release:
|
||||
os.system("pacman -S riscv64-linux-gnu-gcc")
|
||||
# Ubuntu.
|
||||
else:
|
||||
os.system("apt install gcc-riscv64-linux-gnu")
|
||||
|
@ -369,6 +372,9 @@ def powerpc_gcc_install():
|
|||
# Fedora.
|
||||
if "fedora" in os_release:
|
||||
os.system("dnf install gcc-powerpc64le-linux-gnu") # FIXME: binutils-multiarch?
|
||||
# Arch (AUR repository).
|
||||
elif "arch" in os_release:
|
||||
os.system("yay -S powerpc64le-linux-gnu-gcc")
|
||||
# Ubuntu.
|
||||
else:
|
||||
os.system("apt install gcc-powerpc64le-linux-gnu binutils-multiarch")
|
||||
|
@ -389,6 +395,9 @@ def openrisc_gcc_install():
|
|||
# Fedora.
|
||||
if "fedora" in os_release:
|
||||
os.system("dnf install gcc-or1k-elf")
|
||||
# Arch.
|
||||
elif "arch" in os_release:
|
||||
os.system("pacman -S or1k-elf-gcc")
|
||||
# Ubuntu.
|
||||
else:
|
||||
os.system("apt install gcc-or1k-elf")
|
||||
|
@ -468,3 +477,4 @@ def main():
|
|||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in a new issue