Repository navigation
Conversation
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>
There was a problem hiding this comment.
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.
| - User-level tools (Yosys, eqy, sby) are built and installed into the | ||
| project's `dependencies/` directory with user permissions only. |
There was a problem hiding this comment.
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.
| - 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. |
|
clang-tidy review says "All clean, LGTM! 👍" |
Add
bazelisk run //:setup-orfsas 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