Skip to content

Commit 7a41d73

Browse files
oharboeclaude
andcommitted
bazel: bump bazel-orfs, ORFS image, and openroad versions
Add transitive dependency overrides required by the new bazel-orfs: openroad, qt-bazel, mock-klayout, glpk, and toolchains_llvm. The new bazel-orfs builds OpenROAD from source by default. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 24a8855 commit 7a41d73

4 files changed

Lines changed: 1111 additions & 72 deletions

File tree

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
build --incompatible_strict_action_env
2+
common --experimental_isolated_extension_usages
3+
build --cxxopt "-std=c++20" --host_cxxopt "-std=c++20"
24
try-import %workspace%/user.bazelrc

MODULE.bazel

Lines changed: 63 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,75 @@ bazel_dep(name = "bazel-orfs")
1010
# To bump version, run: bazelisk run @bazel-orfs//:bump
1111
git_override(
1212
module_name = "bazel-orfs",
13-
commit = "d998bbff78c455718bd1a0191b4aa89ef9addac1",
13+
commit = "f8b36bf4a92c6e84317a70bab215bdcd2e25a26e",
1414
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1515
)
1616

17+
bazel_dep(name = "bazel-orfs-sby")
18+
git_override(
19+
module_name = "bazel-orfs-sby",
20+
commit = "f8b36bf4a92c6e84317a70bab215bdcd2e25a26e",
21+
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs",
22+
strip_prefix = "sby",
23+
)
24+
25+
bazel_dep(name = "bazel-orfs-yosys")
26+
git_override(
27+
module_name = "bazel-orfs-yosys",
28+
commit = "f8b36bf4a92c6e84317a70bab215bdcd2e25a26e",
29+
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs",
30+
strip_prefix = "yosys",
31+
)
32+
1733
# Transitive dep of bazel-orfs (lives in its verilog/ subdirectory).
1834
bazel_dep(name = "bazel-orfs-verilog")
1935
archive_override(
2036
module_name = "bazel-orfs-verilog",
21-
strip_prefix = "bazel-orfs-e46fca0214def95ecfbada54a8028da7d47fd122/verilog",
22-
urls = ["https://github.com/The-OpenROAD-Project/bazel-orfs/archive/e46fca0214def95ecfbada54a8028da7d47fd122.tar.gz"],
37+
strip_prefix = "bazel-orfs-f8b36bf4a92c6e84317a70bab215bdcd2e25a26e/verilog",
38+
urls = ["https://github.com/The-OpenROAD-Project/bazel-orfs/archive/f8b36bf4a92c6e84317a70bab215bdcd2e25a26e.tar.gz"],
2339
)
2440

41+
# Transitive deps of bazel-orfs that are not in BCR and need root-module overrides.
42+
bazel_dep(name = "mock-klayout")
43+
archive_override(
44+
module_name = "mock-klayout",
45+
strip_prefix = "bazel-orfs-f8b36bf4a92c6e84317a70bab215bdcd2e25a26e/mock/klayout",
46+
urls = ["https://github.com/The-OpenROAD-Project/bazel-orfs/archive/f8b36bf4a92c6e84317a70bab215bdcd2e25a26e.tar.gz"],
47+
)
48+
49+
bazel_dep(name = "openroad")
50+
git_override(
51+
module_name = "openroad",
52+
commit = "6037e4aa6525e296871b5518c311291a546df648",
53+
init_submodules = True,
54+
patch_strip = 1,
55+
patches = [
56+
"//:openroad-visibility.patch",
57+
],
58+
remote = "https://github.com/The-OpenROAD-Project/OpenROAD.git",
59+
)
60+
61+
bazel_dep(name = "qt-bazel")
62+
git_override(
63+
module_name = "qt-bazel",
64+
commit = "886104974c2fd72439f2c33b5deebf0fe4649df7",
65+
remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts",
66+
)
67+
68+
bazel_dep(name = "glpk", version = "5.0.bcr.4")
69+
bazel_dep(name = "toolchains_llvm", version = "1.5.0")
70+
2571
bazel_dep(name = "rules_python", version = "1.8.5")
2672
bazel_dep(name = "rules_shell", version = "0.6.1")
2773

74+
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
75+
llvm.toolchain(
76+
llvm_version = "20.1.8",
77+
)
78+
use_repo(llvm, "llvm_toolchain")
79+
80+
register_toolchains("@llvm_toolchain//:all")
81+
2882
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
2983
python.toolchain(
3084
ignore_root_user_error = True,
@@ -43,36 +97,19 @@ orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
4397

4498
# To bump version, run: bazelisk run @bazel-orfs//:bump
4599
orfs.default(
46-
image = "docker.io/openroad/orfs:26Q1-816-gf40d2f346",
100+
image = "docker.io/openroad/orfs:26Q2-11-gb6ff3eb63",
47101
# Use local files instead of docker image
48102
makefile = "//flow:makefile",
49103
makefile_yosys = "//flow:makefile_yosys",
50104
pdk = "//flow:asap7",
51-
sha256 = "2b05a14ae8062b4af82b245d648e95fa0293e09b61b57468518b66578744afb8",
105+
sha256 = "38789fed89eef1147b0fa20453149abf829e8674eec7d04e2fcc49d94ef228bb",
52106
variables_yaml = "//flow:scripts/variables.yaml",
53107
)
108+
use_repo(orfs, "config")
54109
use_repo(orfs, "docker_orfs")
55-
56-
# Uncomment to build OpenROAD from source instead of using the ORFS image.
57-
# This is useful to test the latest OpenROAD before the ORFS image is updated.
58-
# See: https://github.com/The-OpenROAD-Project/bazel-orfs/blob/main/docs/openroad.md
59-
#
60-
# bazel_dep(name = "openroad")
61-
# git_override(
62-
# module_name = "openroad",
63-
# commit = "df79404cd806cc435b3c3b53678ebf2441c31313",
64-
# init_submodules = True,
65-
# patch_strip = 1,
66-
# patches = ["@bazel-orfs//:openroad-llvm-root-only.patch", "@bazel-orfs//:openroad-visibility.patch"],
67-
# remote = "https://github.com/The-OpenROAD-Project/OpenROAD.git",
68-
# )
69-
# bazel_dep(name = "qt-bazel")
70-
# git_override(
71-
# module_name = "qt-bazel",
72-
# commit = "df022f4ebaa4130713692fffd2f519d49e9d0b97",
73-
# remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts",
74-
# )
75-
# bazel_dep(name = "toolchains_llvm", version = "1.5.0")
110+
use_repo(orfs, "gnumake")
111+
use_repo(orfs, "orfs_variable_metadata")
112+
use_repo(orfs, "yosys")
76113

77114
# Auto-generate orfs_flow() targets from config.mk files.
78115
# See bazel-orfs.md for usage.

0 commit comments

Comments
 (0)