Skip to content

Commit

Permalink
Use prebuild RISCV toolchain on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Mar 2, 2022
1 parent a2db42d commit 10c391f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ jobs:
# TODO: caching
- name: Install SW dependencies
run: |
brew tap riscv-software-src/riscv
brew install make ninja cmake boost coreutils gnu-sed riscv-tools
# brew tap riscv-software-src/riscv
# brew install make ninja cmake boost coreutils gnu-sed riscv-tools
brew install make ninja cmake boost coreutils gnu-sed dtc
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH
echo "/usr/local/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
- name: Initialize Virtualenv
Expand Down
9 changes: 5 additions & 4 deletions templates/osx.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ vars:
# riscv_gcc.dl_url: "https://syncandshare.lrz.de/dl/fi89JQF89pEiWwP6aQh7cM4H/rv32gcv.tar.xz"
llvm.version: "13.0.1"
llvm.distribution: "x86_64-apple-darwin" # TODO: automatically figure this out during setup, let user specify url instead?
spike.exe: "/usr/local/Cellar/riscv-isa-sim/main/bin/spike"
spike.pk: "/usr/local/Cellar/riscv-pk/main/riscv64-unknown-elf/bin/pk"
riscv_gcc.install_dir: "/usr/local/Cellar/riscv-gnu-toolchain/main/"
riscv_gcc.name: "riscv64-unknown-elf"
# spike.exe: "/usr/local/Cellar/riscv-isa-sim/main/bin/spike"
# spike.pk: "/usr/local/Cellar/riscv-pk/main/riscv32-unknown-elf/bin/pk"
riscv_gcc.dl_url: "https://syncandshare.lrz.de/dl/fi6cG9jUGFkRY78ztqQzZRXh/rv32gc_osx.tar.xz"
# riscv_gcc.install_dir: "/usr/local/Cellar/riscv-gnu-toolchain/main/"
# riscv_gcc.name: "riscv32-unknown-elf"

0 comments on commit 10c391f

Please sign in to comment.