Repository navigation
Commit 666ad67
committed
flow/designs: exports_files() for cross-package source references
bazel-orfs's config_mk_parser translates $(DESIGN_HOME) paths in a
config.mk into bazel labels — e.g. an SDC_FILE of
$(DESIGN_HOME)/asap7/aes/constraint.sdc becomes
//flow/designs/asap7/aes:constraint.sdc. The orfs_design() macro
creates per-extension filegroups, but referencing an individual file
across packages requires that file to be in an exports_files() list,
not just inside a public filegroup.
Without this, designs that reuse another design's SDC or shared source
fail at analysis with a Visibility error:
//flow/designs/asap7/aes-mbff -> aes/constraint.sdc
//flow/designs/asap7/gcd-ccs -> gcd/constraint.sdc
//flow/designs/asap7/mock-cpu -> src/mock-array/util.tcl
//flow/designs/asap7/riscv32i-mock-sram
-> fakeram7_256x32/constraints.sdc
//flow/designs/sky130hd/gcd -> src/gcd/gcd.v
Both helpers in flow/designs/design.bzl now call exports_files() over
the same explicit extension list (_EXPORTED_EXTS) the design() macro's
filegroup logic uses — kept tight so a glob("*") doesn't silently
expose LICENSE/.gitignore/etc. as the public API surface.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent eed7931 commit 666ad67
1 file changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
29 | 47 | | |
30 | 48 | | |
31 | 49 | | |
32 | 50 | | |
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
36 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
37 | 61 | | |
| 62 | + | |
| 63 | + | |
38 | 64 | | |
39 | 65 | | |
40 | | - | |
41 | | - | |
| 66 | + | |
42 | 67 | | |
43 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
0 commit comments