Commit b98b7616 authored by Jens Korinth's avatar Jens Korinth
Browse files

Automatically build Chisel3 dev libs

parent 7adf7220
......@@ -2,9 +2,9 @@ name := "tapasco-status"
organization := "esa.cs.tu-darmstadt.de"
version := "0.1-SNAPSHOT"
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.11"
scalaVersion := "2.11.12"
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
......@@ -34,3 +34,12 @@ lazy val tapascostatus = (project in file(".")).dependsOn(packaging, axiutils, a
cleanFiles ++= Seq((baseDirectory.value / "test"), (baseDirectory.value / "ip"))
aggregate in test := false
lazy val chiselSetupTask = TaskKey[Unit]("chiselSetup", "Build latest chisel libs from source")
chiselSetupTask := {
import sys.process._
"./chiselSetup.sh" !
}
compile in Compile <<= (compile in Compile).dependsOn(chiselSetupTask)
#!/bin/bash
DIR=$PWD/chisel3
URL=https://github.com/freechipsproject
REPOS="firrtl firrtl-interpreter chisel3 chisel-testers"
REPO_URLS=`for r in $REPOS; do echo $URL/$r.git; done`
echo "Installing Chisel3 dependencies in $DIR ..."
if [ $1 == "clean" ]; then
rm -rf $DIR
else
mkdir -p $DIR
pushd $DIR &&
for r in $REPOS; do
if [ ! -e $r ]; then
git clone "$URL/$r.git" &&
pushd $r &&
sbt publishLocal &&
popd
else
echo "$r already exists in $DIR/$r"
fi
done &&
popd
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment