/homebrew-riscvelf

Homebrew tap for RISC-V toolchain

Primary LanguageRubyMIT LicenseMIT

Homebrew formulae for RISC-V baremetal toolchains on macOS

How do I install these formulae?

  • GNU binutils are used with GCC toolchain and as the linker with the LLVM toolchain, as LLVM linker does not yet support relaxation: brew install riscv-elf-binutils
  • LLVM/clang toolchain brew install riscv-elf-llvm
  • Clang C runtime brew install riscv-elf-compiler-rt
  • C libraries for Clang brew install riscv-elf-newlib
  • GCC toolchain (w/ C runtime and C libraries) brew install riscv-elf-gcc
  • OpenOCD for JTAG communication brew install riscv-openocd
  • GDB brew install riscv-elf-gdb

Additional packages

  • FPGA bitstream flasher brew install openfpgaloader