Skip to content

Commit 3fd5955

Browse files
committed
bazel: use local ORFS files
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 742d72a commit 3fd5955

File tree

4 files changed

+62
-14
lines changed

4 files changed

+62
-14
lines changed

flow/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
MAKEFILE_SHARED = [
2+
"scripts/*.py",
3+
"scripts/*.sh",
4+
"scripts/*.yaml",
5+
"scripts/*.mk",
6+
]
7+
8+
# The files used in the flow steps(floorplan, place, route, etc.)
9+
filegroup(
10+
name = "makefile",
11+
srcs = ["Makefile"],
12+
data = glob(MAKEFILE_SHARED + [
13+
"scripts/*.tcl",
14+
]) + [
15+
"//util:makefile",
16+
],
17+
visibility = ["//visibility:public"],
18+
)

flow/MODULE.bazel

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ module(
77
)
88

99
bazel_dep(name = "bazel-orfs")
10-
git_override(
11-
module_name = "bazel-orfs",
12-
commit = "41354d9de46816b79858e43baadf701cf7e997e5",
13-
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
14-
)
10+
# git_override(
11+
# module_name = "bazel-orfs",
12+
# commit = "41354d9de46816b79858e43baadf701cf7e997e5",
13+
# remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
14+
# )
1515

1616
# Read: https://github.com/The-OpenROAD-Project/bazel-orfs?tab=readme-ov-file#usage
1717
#
@@ -20,9 +20,10 @@ git_override(
2020
# 1. uncomment below
2121
# 2. comment git_override() above
2222
#
23-
#local_path_override(
24-
# module_name = "bazel-orfs", path = "../bazel-orfs"
25-
#)
23+
local_path_override(
24+
module_name = "bazel-orfs",
25+
path = "../../bazel-orfs",
26+
)
2627

2728
bazel_dep(name = "rules_python", version = "0.31.0")
2829

@@ -50,9 +51,11 @@ orfs.default(
5051
# and update "image" to point to the local image.
5152

5253
# Official image https://hub.docker.com/r/openroad/orfs/tags
53-
image = "docker.io/openroad/orfs:v3.0-2707-g044183f3",
54+
image = "docker.io/openroad/orfs:v3.0-2734-gcf6f0417",
55+
# Use local files instead of docker image
56+
makefile = "//:makefile",
5457
# image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:3d2c3d-2",
55-
sha256 = "34db776930937b94b22f96b68feea87381de70727d12efc47f342b88c8cb3db6",
58+
sha256 = "ef685898a5e3a2db7166c55238275adcf2dbec7ee0a7eb895a78657bcc27220a",
5659
)
5760
use_repo(orfs, "com_github_nixos_patchelf_download")
5861
use_repo(orfs, "docker_orfs")

flow/MODULE.bazel.lock

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flow/util/BUILD.bazel

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,18 @@ compile_pip_requirements(
1616
src = "requirements.in",
1717
requirements_txt = "requirements_lock.txt",
1818
)
19+
20+
MAKEFILE_SHARED = [
21+
"*.mk",
22+
]
23+
24+
# The files used in the flow steps(floorplan, place, route, etc.)
25+
filegroup(
26+
name = "makefile",
27+
srcs = glob(MAKEFILE_SHARED + [
28+
"*.pl",
29+
"*.py",
30+
"*.sh",
31+
]),
32+
visibility = ["//visibility:public"],
33+
)

0 commit comments

Comments
 (0)