Skip to content

Commit e574c81

Browse files
oharboeclaude
andcommitted
build: remove hand-written design BUILD files
Replaced by auto-generated orfs_design() targets from config.mk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 25111cb commit e574c81

7 files changed

Lines changed: 327 additions & 3945 deletions

File tree

MODULE.bazel

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

99
bazel_dep(name = "bazel-orfs")
10-
11-
local_path_override(
10+
git_override(
1211
module_name = "bazel-orfs",
13-
path = "../bazel-orfs",
12+
commit = "2dbd8f0fa9c1f1cc4bf5d52f680b9116fb204219",
13+
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1414
)
1515

1616
bazel_dep(name = "rules_python", version = "1.2.0")
@@ -35,16 +35,38 @@ orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
3535
# Use docker image for yosys/klayout, local files for scripts and PDKs
3636
orfs.default(
3737
image = "docker.io/openroad/orfs:26Q1-755-g7a3f3d5eb",
38-
sha256 = "933f0179ba7feca829768ab2daebe6c1b8b458bf656ef4becc251887725ac7be",
3938
makefile = "//flow:makefile",
4039
makefile_yosys = "//flow:makefile_yosys",
4140
pdk = "//flow:asap7",
41+
sha256 = "933f0179ba7feca829768ab2daebe6c1b8b458bf656ef4becc251887725ac7be",
4242
variables_yaml = "//flow:scripts/variables.yaml",
4343
)
4444
use_repo(orfs, "docker_orfs")
4545

46+
# Uncomment to build OpenROAD from source instead of using the ORFS image.
47+
# This is useful to test the latest OpenROAD before the ORFS image is updated.
48+
# See: https://github.com/The-OpenROAD-Project/bazel-orfs/blob/main/docs/openroad.md
49+
#
50+
# bazel_dep(name = "openroad")
51+
# git_override(
52+
# module_name = "openroad",
53+
# commit = "02507977b328194de770f321d89e3dae9d954a6d",
54+
# init_submodules = True,
55+
# patch_strip = 1,
56+
# patches = ["@bazel-orfs//:openroad-llvm-root-only.patch", "@bazel-orfs//:openroad-visibility.patch"],
57+
# remote = "https://github.com/The-OpenROAD-Project/OpenROAD.git",
58+
# )
59+
# bazel_dep(name = "qt-bazel")
60+
# git_override(
61+
# module_name = "qt-bazel",
62+
# commit = "df022f4ebaa4130713692fffd2f519d49e9d0b97",
63+
# remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts",
64+
# )
65+
# bazel_dep(name = "toolchains_llvm", version = "1.5.0")
66+
4667
# Auto-generate orfs_flow() targets from config.mk files
4768
orfs_designs = use_repo_rule("//bazel:designs.bzl", "orfs_designs")
69+
4870
orfs_designs(
4971
name = "orfs_designs",
5072
designs_dir = "//flow/designs:BUILD.bazel",
@@ -57,4 +79,3 @@ orfs_designs(
5779
"sky130hs",
5880
],
5981
)
60-

MODULE.bazel.lock

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

flow/designs/asap7/aes/BUILD.bazel

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

flow/designs/asap7/ethmac_lvt/BUILD.bazel

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

flow/designs/asap7/gcd/BUILD

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

flow/designs/asap7/swerv_wrapper/BUILD.bazel

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

flow/designs/sky130hd/ibex/BUILD.bazel

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

0 commit comments

Comments
 (0)