Repository navigation
Commit 97cd251
committed
bazel-orfs: pull src OrfsDepInfo.files into source_inputs
Vendors a new bazel-orfs patch (0004) that propagates the design's
per-stage source files through the orfs_final -> orfs_gds chain.
Without this, orfs_gds (which orfs_blender invokes standalone with
src=orfs_final and no data=) gets 6_gds.args.mk's ADDITIONAL_LEFS
correctly populated via OrfsInfo.arguments, but the actual LEF
files are missing from the sandbox. klayout's def2stream then
fails with errno=2 on the very first read, e.g. on microwatt:
RuntimeError: Unable to open file:
.../sandbox/.../execroot/_main/flow/designs/sky130hd/microwatt/lef/Microwatt_FP_DFFRFile.lef
The patch adds ctx.attr.src[OrfsDepInfo].files to source_inputs()'s
transitive list. OrfsDepInfo.files is the per-stage tuple of
(config + ctx.files.src + ctx.files.data + extra_configs) without
the stage's logs/reports, so propagating it carries the design's
ADDITIONAL_LEFS / ADDITIONAL_GDS source files forward but avoids
read-only-log collisions in the next stage's sandbox.
(Tried DefaultInfo.default_runfiles.files first — it includes the
previous stage's logs and the next stage's write to
logs/.../6_1_merge.log fails with Permission denied.)
Verified end-to-end:
- bazelisk build //flow/designs/sky130hd/gcd:gcd_final_blender_html
still succeeds (no macros — regression check).
- bazelisk build //flow/designs/sky130hd/microwatt:microwatt_final_blender_html
now gets past orfs_gds and produces 6_final.gds (562 MB,
including the four IP macros: Microwatt_FP_DFFRFile, RAM32_1RW1R,
RAM512, multiply_add_64x64). Subsequent BlenderGDS html-export
step fails for microwatt — separate issue, Blender appears to
choke on the merged-GDS size — but that is downstream of the
klayout/def2stream lookup this patch addresses.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent bd816be commit 97cd251
2 files changed
Lines changed: 79 additions & 0 deletions
File tree
- patches/bazel-orfs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
0 commit comments