normalize rocket-chip to reference-chip
This commit is contained in:
parent
6495d0e6f7
commit
3b9624277a
@ -37,11 +37,14 @@ object BuildSettings extends Build {
|
||||
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)
|
||||
}
|
||||
// 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 addOtherFiles = Seq (
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user