Skip to content

Commit 8c23acf

Browse files
committed
bazel: tighten PDK definition
avoids warnings from newer Bazel versions for too wide glob() statements including patterns that don't match files Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 3f8f484 commit 8c23acf

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

flow/BUILD.bazel

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ filegroup(
3636
visibility = ["//visibility:public"],
3737
)
3838

39-
# These are the only PDKs for which we have BUILD.bazel files for now
4039
[orfs_pdk(
4140
name = pdk,
4241
srcs = glob([
@@ -46,17 +45,22 @@ filegroup(
4645
)
4746
for ext in [
4847
"gds",
49-
"lib.gz",
5048
"lef",
5149
"lib",
5250
"lyt",
5351
"mk",
5452
"rules",
55-
"sdc",
5653
"tcl",
5754
"v",
58-
"tlef",
59-
]
55+
] + {
56+
"sky130hd": ["tlef"],
57+
"asap7": [
58+
"lib.gz",
59+
"sdc",
60+
],
61+
}.get(pdk, [])
62+
] + [
63+
"platforms/common/**/*.v",
6064
]),
6165
config = ":platforms/{pdk}/config.mk".format(pdk = pdk),
6266
visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)