Skip to content

Commit 15a6ea5

Browse files
authored
Merge pull request #8539 from Pinata-Consulting/bazel-hack-orfs-use-case
bazel: add ORFS hacking use-case
2 parents 637b25b + dbd9d6c commit 15a6ea5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/user/Bazel.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,13 @@ This will:
359359
- launch the GUI opening gui_final gcd
360360

361361
`bazelisk run test/orfs/gcd:gcd_final` run alone would create the `/tmp/gcd` folder and the arguments. The arguments after `--` are forwarded to the `/tmp/gcd/make` script that invokes make with the gcd ORFS project set up in `/tmp/gcd/_main/config.mk`.
362+
363+
## Hacking ORFS with `//test/orfs/gcd:gcd_test` test case
364+
365+
First create a local work folder with all dependencies for the step that you want to work on:
366+
367+
bazelisk run //test/orfs/gcd:gcd_floorplan_deps /tmp/floorplan
368+
369+
Now run make directly with the `/tmp/floorplan/_main` work folder, but be sure to use the `do-` targets that side-step ORFS make dependency checking:
370+
371+
make --file ~/OpenROAD-flow-scripts/flow/Makefile --dir /tmp/floorplan/_main DESIGN_CONFIG=config.mk do-floorplan

0 commit comments

Comments
 (0)