Merge pull request #1561 from roby2014/master

Add Arch Linux setup support for RISC-V and OpenRISC toolchains
This commit is contained in:
enjoy-digital 2023-01-12 08:22:02 +01:00 committed by GitHub
commit 803fb6323e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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()