I have added vexriscv as a submodule and was able to get it to work with the following:
//| mvnDeps:
//| - com.typesafe:config:1.4.3
import mill._
import mill.scalalib._
import os._
val spinalVersion = "1.12.0"
object ivys {
val sv = "2.11.12"
val spinalCore = ivy"com.github.spinalhdl::spinalhdl-core:$spinalVersion"
val spinalLib = ivy"com.github.spinalhdl::spinalhdl-lib:$spinalVersion"
val spinalPlugin = ivy"com.github.spinalhdl::spinalhdl-idsl-plugin:$spinalVersion"
val scalatest = ivy"org.scalatest::scalatest:3.2.5"
val macroParadise = ivy"org.scalamacros:::paradise:2.1.1"
val yaml = ivy"org.yaml:snakeyaml:1.8"
}
object VexRiscv extends SbtModule {
override def millSourcePath = os.Path(sys.env("MILL_WORKSPACE_ROOT")) / "deps" / "VexRiscv"
override def scalaVersion = ivys.sv
def scalacPluginIvyDeps = Agg(
ivys.macroParadise,
ivys.spinalPlugin,
)
override def ivyDeps = Agg(
ivys.spinalCore,
ivys.spinalLib,
ivys.yaml,
ivys.scalatest,
)
override def scalacOptions = Seq("-Xsource:2.11")
}
object spinaltest extends ScalaModule {
def scalaVersion = ivys.sv
override def ivyDeps = Agg(
ivys.spinalCore,
ivys.spinalLib,
)
override def moduleDeps = super.moduleDeps ++ Seq(VexRiscv)
override def scalacPluginIvyDeps = Agg(
ivys.spinalPlugin,
)
}
But it seems like I'm re-inventing the wheel here and that there should be a better way
I have added vexriscv as a submodule and was able to get it to work with the following:
But it seems like I'm re-inventing the wheel here and that there should be a better way