Skip to content

Commit c4d858d

Browse files
committed
bazel: stop carrying build files bazel-orfs can generate
ORFS is an immutable store of reference designs, scripts, PDKs and metadata. It is not a build system, and its CI does not run one: no workflow in .github/workflows/ invokes bazel. Every file deleted here exists solely for bazel-orfs, an out-of-tree consumer, which can now generate or carry all of it. Deleted: 56 flow/designs/<platform>/<design>/BUILD Every one is exactly two lines of content: load("//flow/designs:design.bzl", "design") design(config = "config.mk") bazel-orfs generates these for any design directory that has a config.mk and no BUILD. 2 flow/BUILD, flow/util/BUILD The orfs_pdk targets, the makefile/makefile_yosys filegroups and the exports_files globs over platforms/. bazel-orfs generates these too; orfs_pdk has to be declared inside this repository because a glob() only sees its own, and generating the BUILD is what lets the glob run here while the rule lives with the rules. 3 MODULE.bazel, BUILD.bazel, bazel/BUILD MODULE.bazel's remaining job was orfs_designs() and a pip requirements lock for the bazel-only python targets. bazel-orfs declares orfs_designs() itself now. BUILD.bazel wraps bazel/install.sh; bazel/README.md and install.sh are kept, since they document the docker-image path and are not bazel packages. Kept deliberately: the other ~116 design BUILD files, which declare files() groups or genuinely per-design rules, and flow/designs/design.bzl which they load. A files() group name is not derivable from a directory's contents -- src/cva6 declares files("verilog") while holding no .v or .sv, and prim/rtl holds both .sv and .svh but declares files("include") -- because the name is decided by what other configs reference. Those follow only if and when bazel-orfs carries them explicitly. Zero effect on this repository's own CI, which never invoked bazel. Verification, from a bazel-orfs workspace pinned at this commit: bazelisk query '@orfs//flow/designs/...:*' lists 4135 targets, byte-identical to the same query before this commit -- 0 added, 0 lost. Measured, not predicted. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 8c06169 commit c4d858d

179 files changed

Lines changed: 0 additions & 1509 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎BUILD.bazel‎

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

‎MODULE.bazel‎

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

‎bazel/BUILD‎

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

0 commit comments

Comments
 (0)