Import opentitanlib from upstream opentitan#333
Merged
Conversation
cfrantz
force-pushed
the
otlib-import
branch
7 times, most recently
from
July 8, 2026 03:06
9d1411b to
70428ec
Compare
moidx
approved these changes
Jul 9, 2026
Integrates lowrisc_opentitan as a local path dependency and applies patches to rules_rust, rules_rust_bindgen, and toolchains_llvm to support Rust 2024 and allow sub-module LLVM toolchain usage. TAG=agy CONV=6581f846-3452-4ca4-b0d0-1eaa6c5c5aa3
Adds the //third_party/lowrisc_opentitan package with transitioned targets (opentitantool, opentitanlib) to configure preferred build features (disable OpenSSL, enable only chipwhisperer/hyperdebug/verilator transports). TAG=agy CONV=6581f846-3452-4ca4-b0d0-1eaa6c5c5aa3
This eliminates the `opentitan_runner.py` wrapper script and generates orchestration bash scripts directly in Starlark. - FPGA and Silicon targets are executed in two stages: board setup (via opentitantool) followed by the test command/harness. - Verilator targets use a single opentitantool invocation. - Supports custom `test_cmd` and `test_harness` attributes. - Uses opentitantool from //third_party/lowrisc_opentitan. TAG=agy CONV=6581f846-3452-4ca4-b0d0-1eaa6c5c5aa3
Signed-off-by: Chris Frantz <cfrantz@google.com>
Signed-off-by: Chris Frantz <cfrantz@google.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow importing
opentitanlibfrom the master branch of upstream opentitan.opentitanlibfrom upstream. This enables writing host based test harnesses that have more complex interactions with the DUT than can scripted with opentitantool. The upstream opentitan patch is complex and under review; temporarily point to my fork of opentitan.opentitan_testrule to support test environments. A test environment is a bazel provider that references resources needed by a particular testing platform (e.g. fpga board, silicon, etc).See
target/earlgrey/env/README.mdfor details about test environments.