Repository navigation
Commit 738a67b
committed
flow: exports_files for platform + cva6 cross-package source labels
bazel-orfs's config_mk_parser turns $(PLATFORM_DIR)/<...> and
$(DESIGN_HOME)/src/cva6/core/include/<...> path references in a
config.mk into per-file labels like //flow:platforms/asap7/lef/foo.lef
or //flow/designs/src/cva6/core/include:bar.svh. Those labels resolve
only if the source package calls exports_files() on the individual
files — being part of a public filegroup is not sufficient.
Without these exports, the bazel synth rule for asap7/cva6 and
asap7/riscv32i fails at analysis with Visibility errors referencing
the platform LEF/LIB/SV files (riscv32i fakeram, cva6 fakeram and
include package files).
Add exports_files glob to:
- flow/BUILD for the full platforms/ tree (asap7/sky130hd/gf180/etc.
all expose similar cross-design references). Exclude BUILD files
so future sub-packages under platforms/ don't conflict.
- flow/designs/src/cva6/core/include/BUILD for the SV package files.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 666ad67 commit 738a67b
2 files changed
Lines changed: 127 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
3 | 21 | | |
4 | 22 | | |
5 | 23 | | |
| |||
47 | 65 | | |
48 | 66 | | |
49 | 67 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
56 | 137 | | |
57 | 138 | | |
58 | 139 | | |
59 | 140 | | |
| 141 | + | |
60 | 142 | | |
61 | 143 | | |
62 | | - | |
63 | 144 | | |
| 145 | + | |
64 | 146 | | |
65 | 147 | | |
66 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
67 | 152 | | |
68 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
69 | 157 | | |
70 | | - | |
71 | 158 | | |
72 | 159 | | |
73 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
9 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
10 | 38 | | |
11 | 39 | | |
0 commit comments