Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ override_repo(
bazel_dep(name = "opentitan_devbundle")
archive_override(
module_name = "opentitan_devbundle",
integrity = "sha256-67i+jjvFg9Pd1CXudHpWZ6Gw5lRJvRg4EQm6rDfmang=",
# TODO(cfrantz): We should get this from github.com/lowRISC/opentitan/releases/...
# Update after creating the next official build upstream.
url = "https://storage.googleapis.com/artifacts.opentitan.org/dev_bundle/devbundle-20260714.tar.xz",
integrity = "sha256-7QQkw0JW8R0aYfkjg2IcVT6/mpLYSC0Ab2jEvPEGiq8=",
url = "https://github.com/lowRISC/opentitan/releases/download/devbundle-2026-08-21-1/devbundle.tar.xz",
)

bazel_dep(name = "lowrisc_opentitan")
Expand Down
6 changes: 6 additions & 0 deletions target/earlgrey/env/environments.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def _fpga_prepare(ctx, env, firmware_bin, tools):
outputs = [boot_image_file],
inputs = [env.rom_ext, firmware_bin],
executable = tools.opentitantool,
# Workaround: When HOME is unset, opentitantool invokes getpwuid_r() to locate its
# default config directory, which dynamically dlopens host NSS libraries. In static glibc
# binaries, this causes a SIGSEGV if the static glibc version differs from the host glibc.
# Setting HOME prevents the NSS lookup.
# TODO(antchen): remove this workaround once upstream opentitantool handles missing HOME or fixes static NSS lookup.
env = {"HOME": "/tmp"},
arguments = [
"image",
"assemble",
Expand Down