Skip to content

Commit

Permalink
get a little further by lying about riscv32-*
Browse files Browse the repository at this point in the history
  • Loading branch information
ppannuto committed Feb 18, 2022
1 parent 8fb7fdd commit dc2d1b3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions boards/opentitan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,21 @@ LANG="en_US.UTF-8" fusesoc --cores-root . run --flag=fileset_top --target=sim --
</details>

### Build Boot Rom/OTP Image

<details>
<summary>Modifications to build on OS X</summary>

OT build assumes old toolchains (i.e. `riscv32-*`), but homebrew only installs
binaries of `riscv64-*`. They're all multilib, so they work fine, just need to
add symlinks:

> `cd /usr/local/Cellar/riscv-gnu-toolchain/main/bin`
> `for f in $(ls); do ln -s $f riscv32-$(echo $f | cut -d'-' -f2-10); done`

</details>

Build only the targets we care about.

```shell
./meson_init.sh
ninja -C build-out sw/device/lib/testing/test_rom/test_rom_export_sim_verilator
Expand Down

0 comments on commit dc2d1b3

Please sign in to comment.