From 6c42f2560557ede48d9da0b8b63a6dc7a5e56d18 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Thu, 16 Jul 2015 14:14:01 -0700 Subject: Remove chiselVersion from Makefile; correct bit order for toBits; correct Vec() factory signature; Builder.pushCommands in test to avoid empty list head if tester manipulates Chisel nodes. --- Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d56e9610..ec8e9c3e 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,16 @@ SBT ?= sbt SBT_FLAGS ?= -Dsbt.log.noformat=true -# If a chiselVersion is defined, use that. -# Otherwise, use the snapshot. -ifneq (,$(chiselVersion)) -SBT_FLAGS += -DchiselVersion="$(chiselVersion)" -else -SBT_FLAGS += -DchiselVersion="3.0-SNAPSHOT" -endif +CHISEL_VERSION := $(shell "$(SBT)" $(SBT_FLAGS) "show version" | tail -n 1 | cut -d ' ' -f 2) SRC_DIR ?= . CHISEL_BIN ?= $(SRC_DIR)/bin export CHISEL_BIN +$(info Build Chisel $(CHISEL_VERSION)) + SYSTEMC ?= $(SRC_DIR)/../../systemc/systemc-2.3.1 -CHISEL_JAR ?= $(SRC_DIR)/target/scala-2.11/chisel_2.11-3.0-SNAPSHOT.jar +CHISEL_JAR ?= $(SRC_DIR)/target/scala-2.11/chisel_2.11-$(CHISEL_VERSION).jar DRIVER ?= $(SRC_DIR)/src/test/resources/AddFilterSysCdriver.cpp # The targetDir will be rm -rf'ed when "make clean" targetDir ?= ./generated -- cgit v1.2.3