1
0

normalize rocket-chip to reference-chip

This commit is contained in:
Yunsup Lee 2014-09-25 06:45:09 -07:00
parent 6495d0e6f7
commit 3b9624277a

View File

@ -37,11 +37,14 @@ object BuildSettings extends Build {
val blacklist = (baselist ++ Vector("target", "project")) val blacklist = (baselist ++ Vector("target", "project"))
IO.listFiles(file(".")) map (_.toString.split("/").last) filter (f=> !blacklist.contains(f)) filter (f=> !IO.listFiles(file(f+"/src/main/scala")).isEmpty) IO.listFiles(file(".")) map (_.toString.split("/").last) filter (f=> !blacklist.contains(f)) filter (f=> !IO.listFiles(file(f+"/src/main/scala")).isEmpty)
} }
// def buildsubproj(sproj: String) = Project(sproj, file(sproj), settings = buildSettings).dependsOn(chisel, uncore, rocket, hardfloat)
// val subprojs = (getsubprojs map (sproj=>buildsubproj(sproj)))
// unfortunately, creating projects on the fly doesn't seem to quite work in sbt
val othersources = getsubdirs map (f=>s"${f}/src/main/scala") map (f=>file(f)) val othersources = getsubdirs map (f=>s"${f}/src/main/scala") map (f=>file(f))
val addOtherFiles = Seq ( val addOtherFiles = Seq (
unmanagedSourceDirectories in Compile ++= othersources.toSeq unmanagedSourceDirectories in Compile ++= othersources.toSeq
) // aggregate extra sources into rocketchip ) // so instead, for dynamically expanding projects, just compile them all at once with rocket chip
lazy val rocketchip = Project("rocketchip", file("."), settings = buildSettings ++ chipSettings ++ addOtherFiles).dependsOn(chisel, hardfloat, uncore, rocket) lazy val rocketchip = Project("rocketchip", file("."), settings = buildSettings ++ chipSettings ++ addOtherFiles).dependsOn(chisel, hardfloat, uncore, rocket)