Commit e1e6c97
committed
bazel: enable blender 3D-viewer targets on every supported-PDK design
Flip `blender = True` once, globally, in flow/designs/design.bzl's
design() wrapper. Every design routes through this single funnel,
so this is the only ORFS-side line that changes.
Two small bazel-orfs patches make the global flip safe:
0002-blender.bzl-export-blender_supports_pdk-predicate.patch
Exposes `blender_supports_pdk(pdk)`. Lets callers ask "does this
PDK have a BlenderGDS stackup?" without provoking the loud
fail() in _pdk_to_blendergds (which we keep — it's a useful guard
for anyone calling orfs_blender() directly with a bogus PDK).
0003-orfs_design.bzl-forward-blender-silently-skip-unsupp.patch
Adds a `blender = False` parameter to orfs_design() and forwards
it to orfs_flow(). When True but the design's PDK is unsupported
(asap7, nangate45, …) the request silently downgrades to False,
so no `_blender*` targets are declared and @blender / @blendergds
are never referenced by analysis.
Confirmed behaviour after these patches:
* `bazelisk query //flow/designs/sky130hd/gcd:all` shows the 5
`gcd_final_blender*` targets (sky130hd is supported).
* `bazelisk query //flow/designs/asap7/gcd:all` shows none of them
(asap7 has no BlenderGDS stackup — silent skip).
* `bazelisk query 'tests(//flow/designs/sky130hd/gcd:all)'` returns
only `gcd_test` — `tags = ["manual"]` keeps the blender targets
out of `bazelisk test //...` wildcards.
`bazelisk build //flow/designs/sky130hd/gcd:gcd_final_blender_html`
runs the full physical-design flow to completion and then fails at
the orfs_gds klayout-merge step (klayout looks up klayout_tech.lef
under the non-sandbox execroot rather than the active processwrapper
sandbox). That failure is in bazel-orfs's orfs_gds rule and surfaces
because orfs_blender exercises orfs_gds with the host PATH klayout
for the first time on this design; it is independent of these
patches and will be triaged separately.
bazel-orfs patches are vendored under patches/bazel-orfs/ via the
existing git_override(patches=…) mechanism. Upstreaming is
deferred until the orfs_gds klayout-merge issue is sorted out, to
minimise bazel-orfs churn.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 7daba05 commit e1e6c97
4 files changed
Lines changed: 119 additions & 1 deletion
File tree
- flow/designs
- patches/bazel-orfs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
Lines changed: 45 additions & 0 deletions
| 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 | + | |
Lines changed: 70 additions & 0 deletions
| 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 | + | |
0 commit comments