Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sc: separate build and common dependencies #70

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import scalalib._
import scalafmt._
import os.Path
import publish._
import $file.common
import $file.`rocket-chip`.common
import $file.`rocket-chip`.common
import $file.`rocket-chip`.cde.common
Expand Down Expand Up @@ -84,18 +85,7 @@ object huancun extends SbtModule with HasChisel {
)
}

trait CoupledL2Module extends ScalaModule {

def rocketModule: ScalaModule

def utilityModule: ScalaModule

def huancunModule: ScalaModule

override def moduleDeps = super.moduleDeps ++ Seq(rocketModule, utilityModule, huancunModule)
}

object CoupledL2 extends SbtModule with HasChisel with CoupledL2Module {
object CoupledL2 extends SbtModule with HasChisel with millbuild.common.CoupledL2Module {

override def millSourcePath = millOuterCtx.millSourcePath

Expand Down
13 changes: 13 additions & 0 deletions common.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import mill._
import scalalib._

trait CoupledL2Module extends ScalaModule {

def rocketModule: ScalaModule

def utilityModule: ScalaModule

def huancunModule: ScalaModule

override def moduleDeps = super.moduleDeps ++ Seq(rocketModule, utilityModule, huancunModule)
}
Loading