Merge pull request #239 from ucb-bar/remove-published-deps
Remove Berkeley-Managed Library Dependencies from Subprojects
This commit is contained in:
36
build.sbt
36
build.sbt
@@ -1,5 +1,9 @@
|
|||||||
import Tests._
|
import Tests._
|
||||||
|
|
||||||
|
// This gives us a nicer handle to the root project instead of using the
|
||||||
|
// implicit one
|
||||||
|
lazy val chipyardRoot = RootProject(file("."))
|
||||||
|
|
||||||
lazy val commonSettings = Seq(
|
lazy val commonSettings = Seq(
|
||||||
organization := "edu.berkeley.cs",
|
organization := "edu.berkeley.cs",
|
||||||
version := "1.0",
|
version := "1.0",
|
||||||
@@ -15,7 +19,10 @@ lazy val commonSettings = Seq(
|
|||||||
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
|
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
|
||||||
libraryDependencies += "com.github.scopt" %% "scopt" % "3.7.0",
|
libraryDependencies += "com.github.scopt" %% "scopt" % "3.7.0",
|
||||||
libraryDependencies += "org.scala-lang.modules" % "scala-jline" % "2.12.1",
|
libraryDependencies += "org.scala-lang.modules" % "scala-jline" % "2.12.1",
|
||||||
|
libraryDependencies += "com.typesafe.play" %% "play-json" % "2.6.10",
|
||||||
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
|
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
|
||||||
|
unmanagedBase := (chipyardRoot / unmanagedBase).value,
|
||||||
|
allDependencies := allDependencies.value.filterNot(_.organization == "edu.berkeley.cs"),
|
||||||
resolvers ++= Seq(
|
resolvers ++= Seq(
|
||||||
Resolver.sonatypeRepo("snapshots"),
|
Resolver.sonatypeRepo("snapshots"),
|
||||||
Resolver.sonatypeRepo("releases"),
|
Resolver.sonatypeRepo("releases"),
|
||||||
@@ -68,23 +75,20 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test =>
|
|||||||
|
|
||||||
// Subproject definitions begin
|
// Subproject definitions begin
|
||||||
//
|
//
|
||||||
// NB: FIRRTL should not be a managed dependency of chisel or rocketchip.
|
// FIRRTL is handled as an unmanaged dependency. Make will build the firrtl jar
|
||||||
// Instead, they will get firrtl from the JAR file placed in /lib
|
// before launching sbt if any of the firrtl source files has been updated
|
||||||
lazy val chisel = (project in rocketChipDir / "chisel3")
|
// The jar is dropped in chipyard's lib/ directory, which is used as the unmanagedBase
|
||||||
|
// for all subprojects
|
||||||
lazy val firrtl = (project in file("tools/firrtl"))
|
lazy val chisel = (project in file("tools/chisel3"))
|
||||||
.settings(commonSettings)
|
|
||||||
|
|
||||||
lazy val firrtl_interpreter = (project in file("tools/firrtl-interpreter"))
|
lazy val firrtl_interpreter = (project in file("tools/firrtl-interpreter"))
|
||||||
.dependsOn(firrtl)
|
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val treadle = freshProject("treadle", file("tools/treadle"))
|
lazy val treadle = (project in file("tools/treadle"))
|
||||||
.dependsOn(firrtl)
|
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val `chisel-testers` = freshProject("chisel-testers", file("./tools/chisel-testers"))
|
lazy val chisel_testers = (project in file("tools/chisel-testers"))
|
||||||
.dependsOn(treadle, firrtl_interpreter, chisel)
|
.dependsOn(chisel, firrtl_interpreter, treadle)
|
||||||
.settings(
|
.settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
@@ -95,7 +99,7 @@ lazy val `chisel-testers` = freshProject("chisel-testers", file("./tools/chisel-
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Contains annotations & firrtl passes you may wish to use in rocket-chip without
|
// Contains annotations & firrtl passes you may wish to use in rocket-chip without
|
||||||
// introducing a circular dependency between RC and MIDAS
|
// introducing a circular dependency between RC and MIDAS
|
||||||
lazy val midasTargetUtils = ProjectRef(firesimDir, "targetutils")
|
lazy val midasTargetUtils = ProjectRef(firesimDir, "targetutils")
|
||||||
|
|
||||||
@@ -139,11 +143,11 @@ lazy val boom = (project in file("generators/boom"))
|
|||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val sha3 = (project in file("generators/sha3"))
|
lazy val sha3 = (project in file("generators/sha3"))
|
||||||
.dependsOn(rocketchip, `chisel-testers`)
|
.dependsOn(rocketchip, chisel_testers)
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val tapeout = conditionalDependsOn(project in file("./tools/barstools/tapeout/"))
|
lazy val tapeout = conditionalDependsOn(project in file("./tools/barstools/tapeout/"))
|
||||||
.dependsOn(`chisel-testers`)
|
.dependsOn(chisel_testers)
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val mdf = (project in file("./tools/barstools/mdf/scalalib/"))
|
lazy val mdf = (project in file("./tools/barstools/mdf/scalalib/"))
|
||||||
@@ -154,8 +158,8 @@ lazy val barstoolsMacros = (project in file("./tools/barstools/macros/"))
|
|||||||
.enablePlugins(sbtassembly.AssemblyPlugin)
|
.enablePlugins(sbtassembly.AssemblyPlugin)
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
|
||||||
lazy val dsptools = freshProject("dsptools", file("./tools/dsptools"))
|
lazy val dsptools = (project in file("./tools/dsptools"))
|
||||||
.dependsOn(chisel, `chisel-testers`)
|
.dependsOn(chisel, chisel_testers)
|
||||||
.settings(
|
.settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
|
|||||||
Reference in New Issue
Block a user