Skip to content

Commit d8cc149

Browse files
authored
Merge pull request #3214 from Pinata-Consulting/bazel-simpler
Bazel simpler
2 parents 5ac9869 + b74f976 commit d8cc149

File tree

4 files changed

+10
-58
lines changed

4 files changed

+10
-58
lines changed

MODULE.bazel

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bazel_dep(name = "bazel-orfs")
1111
# To bump version, run: bazelisk run @bazel-orfs//:bump
1212
git_override(
1313
module_name = "bazel-orfs",
14-
commit = "4a67015d0165e14466b89cc7ce1e92688f393093",
14+
commit = "9a3778bdbe63106a894a03e865335a31ebc860d1",
1515
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1616
)
1717

@@ -31,55 +31,16 @@ pip.parse(
3131
)
3232
use_repo(pip, "orfs-pip")
3333

34-
# HACK! While we're waiting for OpenROAD to switch to bzlmod
35-
new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
36-
37-
new_local_repository(
38-
name = "openroad",
39-
build_file_content = """
40-
exports_files(["openroad"],
41-
visibility = ["//visibility:public"],
42-
)
43-
filegroup(
44-
name = "all",
45-
data = glob(["openroad.runfiles/**/*"]),
46-
visibility = ["//visibility:public"],
47-
)
48-
""",
49-
path = "tools/OpenROAD/bazel-out/k8-opt/bin",
50-
)
51-
5234
orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
5335

5436
# To bump version, run: bazelisk run @bazel-orfs//:bump
5537
orfs.default(
56-
# Check out the version you want to test and make any modifications locally:
57-
#
58-
# ./build_openroad.sh --no_init
59-
#
60-
# Comment out "sha256" below, not available for local docker images
61-
# and update "image" to point to the local image.
62-
63-
# Official image https://hub.docker.com/r/openroad/orfs/tags
64-
image = "docker.io/openroad/orfs:v3.0-2888-g38f93c61",
38+
image = "docker.io/openroad/orfs:v3.0-3190-g5ac9869c",
6539
# Use local files instead of docker image
6640
makefile = "//flow:makefile",
6741
makefile_yosys = "//flow:makefile_yosys",
68-
# TODO once openroad is switched to MODULE.bazel, use
69-
# local_path_override(module_name = "openroad", path = "../tools/OpenROAD")
70-
# to point to the local openroad Bazel module instead of
71-
# getting the openroad binary from the docker image, supports GUI.
72-
#
73-
# openroad = "@docker_orfs//:openroad",
74-
75-
# Use locally built OpenROAD while we're waiting for OpenROAD
76-
# to bzlmod, no GUI for now.
77-
#
78-
# cd ../tools/OpenROAD
79-
# bazelisk build -c opt :openroad
80-
openroad = "//flow/test:openroad",
8142
pdk = "//flow:asap7",
82-
sha256 = "173581fc6ca74ece349150866ddce96534c5e9d855a25ca8ae509a45fcaefc0d",
43+
sha256 = "2ca999699bc91144074b7f23f42da9330d7279437c386a1413fba4a6a7520916",
8344
)
8445
use_repo(orfs, "com_github_nixos_patchelf_download")
8546
use_repo(orfs, "docker_orfs")

MODULE.bazel.lock

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

flow/test/BUILD

Lines changed: 0 additions & 9 deletions
This file was deleted.

flow/util/requirements_lock.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
5-
# bazel run //:requirements.update
5+
# bazel run //flow/util:requirements.update
66
#
77
contourpy==1.3.1 \
88
--hash=sha256:041b640d4ec01922083645a94bb3b2e777e6b626788f4095cf21abbe266413c1 \
@@ -233,7 +233,7 @@ matplotlib==3.10.0 \
233233
--hash=sha256:d44cb942af1693cced2604c33a9abcef6205601c445f6d0dc531d813af8a2f5a \
234234
--hash=sha256:d907fddb39f923d011875452ff1eca29a9e7f21722b873e90db32e5d8ddff12e \
235235
--hash=sha256:fd44fc75522f58612ec4a33958a7e5552562b7705b42ef1b4f8c0818e304a363
236-
# via -r util/requirements.in
236+
# via -r flow/util/requirements.in
237237
numpy==2.2.2 \
238238
--hash=sha256:02935e2c3c0c6cbe9c7955a8efa8908dd4221d7755644c59d1bba28b94fd334f \
239239
--hash=sha256:0349b025e15ea9d05c3d63f9657707a4e1d471128a3b1d876c095f328f8ff7f0 \
@@ -432,7 +432,7 @@ pyyaml==6.0.2 \
432432
--hash=sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba \
433433
--hash=sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12 \
434434
--hash=sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4
435-
# via -r util/requirements.in
435+
# via -r flow/util/requirements.in
436436
six==1.17.0 \
437437
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
438438
--hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81

0 commit comments

Comments
 (0)