Skip to content

[bazel] Prepare for downstream sku configuration, modified version#30268

Draft
pamaury wants to merge 3 commits into
lowRISC:earlgrey_1.0.0from
pamaury:sku-extra
Draft

[bazel] Prepare for downstream sku configuration, modified version#30268
pamaury wants to merge 3 commits into
lowRISC:earlgrey_1.0.0from
pamaury:sku-extra

Conversation

@pamaury

@pamaury pamaury commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This is an alternative to #30146 which uses the module + injected repo strategy explained in lowRISC/ot-sku#5. TODO: explain more here

Comment thread MODULE.bazel Outdated
Comment on lines +366 to +369
provisioning_exts_exta = use_extension("@ot_provisioning_exts//:extension.bzl", "extra")
# We always import the provisioning_exts_extra repository so that it can be refered to by
# the provisioning_exts repo defined below.
use_repo(provisioning_exts_exta, "provisioning_exts_extra")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is extension.bzl missing from this PR?

also spelling nit: exta

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct, I added the file and fixed the typo

@pamaury pamaury force-pushed the sku-extra branch 5 times, most recently from 195379a to bdf7304 Compare June 9, 2026 12:32
load("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository")

def _extra_repo_impl(rctx):
# This is basically a reimplementation of local_repository but doing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cfrantz I had to change my implementation from local_repository to this, otherwise bazel ends up putting an absolute path in the lock file which depends on the user so I used a workaround. This seems related to bazelbuild/bazel#18936

@pamaury pamaury force-pushed the sku-extra branch 4 times, most recently from 5ab5968 to 4a748f8 Compare June 16, 2026 08:25
cfrantz and others added 3 commits June 25, 2026 09:32
Allow `offline_signature_attach` to accept files provided by
`DefaultInfo`.  This allows the rule to accept `srcs` that are provided
by a filegroup in addition to files provied by `presigning_artifacts`.

Signed-off-by: Chris Frantz <cfrantz@google.com>
Make the perso mannifest publicly visible so downstream build rules can
refer to it.

Signed-off-by: Chris Frantz <cfrantz@google.com>
Signed-off-by: Amaury Pouly <amaury.pouly@opentitan.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants