-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3411: Update OpenTitan Makefile and build examples r=hudson-ayers a=jwnrt ## Pull Request Overview This pull updates parts of OpenTitan's Makefile and README that I ran into when trying to build and run Tock: ## Disable default board configuration Disabled the default `fpga_cw310` Cargo feature when a `BOARD_CONFIGURATION` is specified. Previously, both `fpga_cw310` and `sim_verilator` would be set, leading to conflicting `const CONFIG` definitions in `chips/earlgrey`. ### Objcopy binary The Makefile is using `riscv64-linux-gnu-objcopy` as documented in #2104. The reasoning was that `llvm-objcopy` wasn't providing correct output. From #2104 it looks like `riscv64-linux-gnu` was chosen because users were likely to have it installed. `riscv32-unknown-elf-objcopy` is provided by the lowRISC toolchain used for building OpenTitan software, so I thought developers would be more likely to have this already installed. Happy not to include this change, though. I also haven't checked whether the `llvm-objcopy` bug is now resolved and that could be used instead. ### README examples The QEMU examples in the README were outdated, possibly since `libtock-rs` has updated. Updated these examples, and tidied up some Markdown along the way. ## Testing Strategy This pull request was tested by running the updated README examples and make rules. ## TODO or Help Wanted Any thoughts on using `riscv32-unknown-elf-objcopy` by default over `riscv64-linux-gnu`? ## Documentation Updated - [x] Updated the relevant files in `/docs`, or no updates are required. - [x] Updated example commands in OpenTitan's README ## Formatting - [x] Ran `make prepush`. Co-authored-by: James Wainwright <james.wainwright@lowrisc.org>
- Loading branch information
Showing
2 changed files
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters