Skip to content

Commit

Permalink
[bazel] Migrate HyperDebug firmware repo to bzlmod
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
  • Loading branch information
jwnrt committed Dec 19, 2024
1 parent a8fe37f commit b47c6d4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,6 @@ use_repo(

open_dice = use_extension("//third_party/open-dice:extensions.bzl", "open_dice")
use_repo(open_dice, "open-dice")

hyperdebug = use_extension("//third_party/hyperdebug:extensions.bzl", "hyperdebug")
use_repo(hyperdebug, "hyperdebug_firmware")
29 changes: 29 additions & 0 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ provisioning_exts_repo(name = "provisioning_exts")
load("//rules:nonhermetic.bzl", "nonhermetic_repo")
nonhermetic_repo(name = "nonhermetic")

# Binary firmware image for HyperDebug
load("//third_party/hyperdebug:repos.bzl", "hyperdebug_repos")
hyperdebug_repos()

register_toolchains(
"//rules/opentitan:localtools",
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def hyperdebug_repos():
hyperdebug = module_extension(
implementation = lambda _: _hyperdebug_repos(),
)

def _hyperdebug_repos():
http_archive(
name = "hyperdebug_firmware",
urls = ["https://github.com/lowRISC/hyperdebug-firmware/releases/download/20241211_02/hyperdebug-firmware.tar.gz"],
Expand Down

0 comments on commit b47c6d4

Please sign in to comment.