Skip to content

Add setup-orfs Bazel target for ORFS flow dependency setup - #9712

Closed
oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:setup-orfs
Closed

oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:setup-orfs

Conversation

@oharboe

@oharboe oharboe commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

Add bazelisk run //:setup-orfs as the single entry point for developers to install ORFS flow dependencies (Yosys, eqy, sby, KLayout, etc.) when building OpenROAD with Bazel. The target checks for system packages, prints the sudo command if needed, and builds user-level tools into the ORFS dependencies directory.

This sets up the minimum tooling that Bazel does not yet provide. Over time more tools may move into Bazel, but this command remains the stable developer interface.

needs The-OpenROAD-Project/OpenROAD-flow-scripts#3977

Add `bazelisk run //:setup-orfs` as the single entry point for developers
to install ORFS flow dependencies (Yosys, eqy, sby, KLayout, etc.) when
building OpenROAD with Bazel. The target checks for system packages,
prints the sudo command if needed, and builds user-level tools into the
ORFS dependencies directory.

This sets up the minimum tooling that Bazel does not yet provide. Over
time more tools may move into Bazel, but this command remains the stable
developer interface.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces a convenient setup-orfs Bazel target to streamline the installation of ORFS flow dependencies for developers using Bazel. The changes include adding the new target, a shell script to perform the setup, and corresponding documentation.

The implementation is well-done. The script is robust, checking for necessary system packages and providing clear instructions if they are missing. The documentation is also clear and explains the purpose and usage of the new target effectively.

I have one minor suggestion to improve the clarity of the documentation regarding the installation path of the dependencies.

Comment thread docs/user/Build.md
Comment on lines +62 to +63
- User-level tools (Yosys, eqy, sby) are built and installed into the
project's `dependencies/` directory with user permissions only.

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.

medium

The term "project's" could be ambiguous here. Since this documentation is in the OpenROAD repository, a user might think it refers to a dependencies/ directory within the OpenROAD project structure. To improve clarity, I suggest specifying that this directory is at the root of the OpenROAD-flow-scripts repository.

Suggested change
- User-level tools (Yosys, eqy, sby) are built and installed into the
project's `dependencies/` directory with user permissions only.
- User-level tools (Yosys, eqy, sby) are built and installed into the
`dependencies/` directory of the `OpenROAD-flow-scripts` checkout with user permissions only.

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@oharboe oharboe closed this Mar 11, 2026
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.

1 participant