Skip to content

[bazel] Miscellaneous Bazel / Repo improvements - #21

Merged
AlexJones0 merged 5 commits into
lowRISC:mainfrom
AlexJones0:misc_improvements
Sep 14, 2026
Merged

AlexJones0 merged 5 commits into
lowRISC:mainfrom
AlexJones0:misc_improvements

Conversation

@AlexJones0

Copy link
Copy Markdown
Contributor

Make many small improvements to the Bazel setup and the repository: add a more comprehensive .gitignore and a basic .bazelrc setup, bump the Bazel version to be inline with OpenTitan earlgrey_1.0.0, make the license check less permissive by default, and add the testing session auth info to the sourceme script to make basic testing flows easier (whilst the design is still being iterated on).

See the individual commit messages for more details.

Add a few more common protections and better document the reasons behind
existing ignores - especially for signature files, which must be checked
in as part of the release flow.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Inline with upstream OpenTitan `earlgrey_1.0.0`:
https://github.com/lowRISC/opentitan/blob/cf69fc928ad37534bcd59cb15442a82e341e57a2/.bazelversion

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
A couple of helpful options to slightly improve the Bazel experience.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Add the default information for the test database that is checked in;
this is not intended to be used for real signing flows or for other
SoftHSM flows (which should override these variables), but is primarily
for ease-of-use with the existing testing database (which may be
replaced or reworked in the future).

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
This target is not needed, since this repository is instead using REUSE
to check licenses (in CI and locally). Since this is deprecated, we can
remove it as it is just legacy inherited from OpenTitan. Likewise, we no
longer need the whole `lowrisc_misc_linters` Bazel dependency either, so
drop that now as well.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>

@pamaury pamaury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks Alex :)

@AlexJones0
AlexJones0 merged commit 7ae933f into lowRISC:main Sep 14, 2026
2 of 4 checks passed
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