Skip to content

Commit

Permalink
[script] add new subsystemrtl target to get build output from subsy…
Browse files Browse the repository at this point in the history
…stem rtl

Run `nix develop -c t1-helper subsystemrtl --config blastoise` to get
subsystem RTL for config blastoise.

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin authored and sequencer committed Jun 2, 2024
1 parent 7772925 commit c48ed18
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions script/src/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,29 @@ object Main:
)
).call(cwd = os.pwd, stdout = os.Inherit, stderr = os.Inherit)

@main def subsystemrtl(
@arg(
name = "config",
short = 'c',
doc = "Config to be elaborated for the subsystem RTL"
) config: String,
@arg(
name = "out-link",
short = 'o',
doc = "Path to be a symlink to the RTL build output, default using $config_subsystem_rtl"
) outLink: Option[String] = None,
): Unit =
val finalOutLink = outLink.getOrElse(s"${config}_subsystem_rtl")
os.proc(Seq(
"nix",
"build",
"--print-build-logs",
s".#t1.${config}.subsystem.rtl",
"--out-link",
finalOutLink
)).call(stdout = os.Inherit, stderr = os.Inherit, stdin = os.Inherit)
Logger.info(s"RTLs store in $finalOutLink")

//
// CI
//
Expand Down

0 comments on commit c48ed18

Please sign in to comment.