Skip to content

Commit

Permalink
Merge pull request #2093 from mgaggero/feature-alpine-linux
Browse files Browse the repository at this point in the history
Fixes #2092: provides support for riscv gcc installation on Alpine Linux.
  • Loading branch information
trabucayre authored Oct 9, 2024
2 parents bc3e90c + e148650 commit 34b98ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions litex_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def riscv_gcc_install():
# Arch.
elif "arch" in os_release:
os.system("pacman -S riscv64-linux-gnu-gcc")
# Alpine.
elif "alpine" in os_release:
os.system("apk add gcc-cross-embedded")
# Ubuntu.
else:
os.system("apt install gcc-riscv64-unknown-elf")
Expand Down Expand Up @@ -377,6 +380,9 @@ def powerpc_gcc_install():
# Arch (AUR repository).
elif "arch" in os_release:
os.system("yay -S powerpc64le-linux-gnu-gcc")
# Alpine.
elif "alpine" in os_release:
os.system("apk add gcc binutils-ppc64le")
# Ubuntu.
else:
os.system("apt install gcc-powerpc64le-linux-gnu binutils-multiarch")
Expand All @@ -400,6 +406,9 @@ def openrisc_gcc_install():
# Arch.
elif "arch" in os_release:
os.system("pacman -S or1k-elf-gcc")
# Alpine.
elif "alpine" in os_release:
os.system("apk add gcc-cross-embedded")
# Ubuntu.
else:
os.system("apt install gcc-or1k-elf")
Expand Down

0 comments on commit 34b98ab

Please sign in to comment.