simplify .sbt files
This commit is contained in:
parent
ce161b83e3
commit
9d67ef4ee2
@ -5,3 +5,6 @@ version := "1.2"
|
||||
name := "rocket"
|
||||
|
||||
scalaVersion := "2.10.2"
|
||||
|
||||
libraryDependencies ++= (Seq("chisel", "hardfloat", "uncore").map {
|
||||
dep: String => sys.props.get(dep + "Version") map { "edu.berkeley.cs" %% dep % _ }}).flatten
|
||||
|
@ -1,10 +0,0 @@
|
||||
// Provide a managed dependency on chisel if -DchiselVersion="" is
|
||||
// supplied on the command line.
|
||||
|
||||
val chiselVersion_r = System.getProperty("chiselVersion", "None")
|
||||
|
||||
// _r a temporary fix until sbt 13.6 https://github.com/sbt/sbt/issues/1465
|
||||
|
||||
libraryDependencies ++= ( if (chiselVersion_r != "None" ) (
|
||||
"edu.berkeley.cs" %% "chisel" % chiselVersion_r
|
||||
) :: Nil; else Nil)
|
@ -1,8 +0,0 @@
|
||||
// Provide a managed dependency on chisel if -DhardfloatVersion="" is
|
||||
// supplied on the command line.
|
||||
|
||||
val hardfloatVersion = System.getProperty("hardfloatVersion", "None")
|
||||
|
||||
libraryDependencies ++= ( if (hardfloatVersion != "None" ) (
|
||||
"edu.berkeley.cs" %% "hardfloat" % hardfloatVersion
|
||||
) :: Nil; else Nil)
|
@ -1,8 +0,0 @@
|
||||
// Provide a managed dependency on chisel if -DuncoreVersion="" is
|
||||
// supplied on the command line.
|
||||
|
||||
val uncoreVersion = System.getProperty("uncoreVersion", "None")
|
||||
|
||||
libraryDependencies ++= ( if (uncoreVersion != "None" ) (
|
||||
"edu.berkeley.cs" %% "uncore" % uncoreVersion
|
||||
) :: Nil; else Nil)
|
Loading…
Reference in New Issue
Block a user