Skip to content

Commit

Permalink
orfs_sweep: cleanup
Browse files Browse the repository at this point in the history
avoid target spamming by making reporting a separate concern,
with orfs_ppa() being an example

Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Feb 1, 2025
1 parent 52548b3 commit ea12bad
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions sweep.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -125,40 +125,3 @@ def orfs_sweep(
srcs = [name + "_" + ("" if variant == "base" else variant + "_") + "cts" for variant in sweep],
visibility = visibility,
)

native.genrule(
name = name + "_wns_report",
srcs = [
Label(":wns_report.py"),
name + "_sweep.json",
] + [":" + name + "_" + variant + ".txt" for variant in sweep] +
[":" + name + "_" + variant + "_logs" for variant in sweep],
outs = [name + "_wns_report.md"],
cmd = (
"$(location " + str(Label(":wns_report.py")) + ") > $@" +
" $(location :" + name + "_sweep.json)"
),
visibility = visibility,
)

native.filegroup(
name = name + "_repair_logs",
srcs = [
":" + name + "_" + ("" if variant == "base" else variant + "_") + stage
for stage in sweep_json["stages"]
for variant in sweep
],
output_group = "logs",
visibility = visibility,
)

native.genrule(
name = name + "_plot_repair",
tools = ["@bazel-orfs//:plot_repair"],
srcs = [
name + "_repair_logs",
],
outs = [name + "_retiming.pdf"],
cmd = "$(execpath @bazel-orfs//:plot_repair) $(location " + name + "_retiming.pdf) $(locations " + name + "_repair_logs)",
visibility = visibility,
)

0 comments on commit ea12bad

Please sign in to comment.