5 Star 3 Fork 1

Gitee 极速下载 / labeled-RISC-V

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/LvNA-system/labeled-RISC-V
克隆/下载
build.sbt 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
Jack Koenig 提交于 2018-12-13 18:45 . Bump firrtl, json4s, and sbt (#1739)
// See LICENSE.Berkeley for license details.
import sbt.complete._
import sbt.complete.DefaultParsers._
import xerial.sbt.pack._
import sys.process._
enablePlugins(PackPlugin)
lazy val commonSettings = Seq(
organization := "edu.berkeley.cs",
version := "1.2",
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.12.4", "2.11.12"),
parallelExecution in Global := false,
traceLevel := 15,
scalacOptions ++= Seq("-deprecation","-unchecked","-Xsource:2.11"),
libraryDependencies ++= Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value),
libraryDependencies ++= Seq("org.json4s" %% "json4s-jackson" % "3.6.1"),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
)
lazy val chisel = (project in file("chisel3")).settings(commonSettings)
lazy val hardfloat = project.dependsOn(chisel).settings(commonSettings)
.settings(crossScalaVersions := Seq("2.11.12", "2.12.4"))
lazy val macros = (project in file("macros")).settings(commonSettings)
lazy val rocketchip = (project in file("."))
.settings(commonSettings, chipSettings)
.dependsOn(chisel, hardfloat, macros)
.aggregate(chisel, hardfloat, macros) // <-- means the running task on rocketchip is also run by aggregate tasks
lazy val addons = settingKey[Seq[String]]("list of addons used for this build")
lazy val make = inputKey[Unit]("trigger backend-specific makefile command")
val setMake = NotSpace ~ ( Space ~> NotSpace )
val chipSettings = Seq(
addons := {
val a = sys.env.getOrElse("ROCKETCHIP_ADDONS", "")
println(s"Using addons: $a")
a.split(" ")
},
unmanagedSourceDirectories in Compile ++= addons.value.map(baseDirectory.value / _ / "src/main/scala"),
mainClass in (Compile, run) := Some("rocketchip.Generator"),
make := {
val jobs = java.lang.Runtime.getRuntime.availableProcessors
val (makeDir, target) = setMake.parsed
(run in Compile).evaluated
s"make -C $makeDir -j $jobs $target".!
}
)
Scala
1
https://gitee.com/mirrors/labeled-RISC-V.git
git@gitee.com:mirrors/labeled-RISC-V.git
mirrors
labeled-RISC-V
labeled-RISC-V
master

搜索帮助