forked from U-interrupt/rocket-chip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
50 lines (40 loc) · 1.21 KB
/
build.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import mill._
import mill.scalalib._
import mill.scalalib.publish._
import coursier.maven.MavenRepository
import $file.common
import $file.hardfloat.build
import $file.`api-config-chipsalliance`.`build-rules`.mill.build
object configRocket extends `api-config-chipsalliance`.`build-rules`.mill.build.config with PublishModule {
override def millSourcePath = os.pwd / "api-config-chipsalliance" / "design" / "craft"
override def scalaVersion = T {
rocketchip.scalaVersion()
}
override def pomSettings = T {
rocketchip.pomSettings()
}
override def publishVersion = T {
rocketchip.publishVersion()
}
}
object hardfloatRocket extends hardfloat.build.hardfloat {
override def millSourcePath = os.pwd / "hardfloat"
override def scalaVersion = T {
rocketchip.scalaVersion()
}
// use same chisel version with RocketChip
def chisel3IvyDeps = if(chisel3Module.isEmpty) Agg(
common.getVersion("chisel3")
) else Agg.empty[Dep]
}
object rocketchip extends common.CommonRocketChip {
m =>
override def scalaVersion: T[String] = T {
"2.12.10"
}
override def ammoniteVersion: T[String] = T {
"2.4.0"
}
def hardfloatModule = hardfloatRocket
def configModule = configRocket
}