Skip to content

Commit

Permalink
[bazel] Export Vivado logs from fusesoc builds
Browse files Browse the repository at this point in the history
This would be better if we could output the whole `*.runs/` directory,
but for that we need to know which members of `output_groups` are files
and which are directories upfront in order to choose either
`declare_file` or `declare_directory` in the rule.

Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Aug 27, 2024
1 parent 77509d1 commit ff72e09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hw/bitstream/vivado/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ fusesoc_build(
"bitstream": ["synth-vivado/lowrisc_systems_chip_earlgrey_cw310_0.1.bit"],
"rom_mmi": ["synth-vivado/rom.mmi"],
"otp_mmi": ["synth-vivado/otp.mmi"],
"logs": [
"synth-vivado/lowrisc_systems_chip_earlgrey_cw310_0.1.runs/synth_1/runme.log",
"synth-vivado/lowrisc_systems_chip_earlgrey_cw310_0.1.runs/synth_1/chip_earlgrey_cw310.dcp",
],
},
systems = ["lowrisc:systems:chip_earlgrey_cw310"],
tags = ["manual"],
Expand Down Expand Up @@ -103,6 +107,10 @@ fusesoc_build(
"bitstream": ["synth-vivado/lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.bit"],
"rom_mmi": ["synth-vivado/rom.mmi"],
"otp_mmi": ["synth-vivado/otp.mmi"],
"logs": [
"synth-vivado/lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.runs/synth_1/runme.log",
"synth-vivado/lowrisc_systems_chip_earlgrey_cw310_hyperdebug_0.1.runs/synth_1/chip_earlgrey_cw310_hyperdebug.dcp",
],
},
systems = ["lowrisc:systems:chip_earlgrey_cw310_hyperdebug"],
tags = ["manual"],
Expand Down Expand Up @@ -152,6 +160,10 @@ fusesoc_build(
"bitstream": ["synth-vivado/lowrisc_systems_chip_earlgrey_cw340_0.1.bit"],
"rom_mmi": ["synth-vivado/rom.mmi"],
"otp_mmi": ["synth-vivado/otp.mmi"],
"logs": [
"synth-vivado/lowrisc_systems_chip_earlgrey_cw340_0.1.runs/synth_1/runme.log",
"synth-vivado/lowrisc_systems_chip_earlgrey_cw340_0.1.runs/synth_1/chip_earlgrey_cw340.dcp",
],
},
systems = ["lowrisc:systems:chip_earlgrey_cw340"],
tags = ["manual"],
Expand Down

0 comments on commit ff72e09

Please sign in to comment.