Merge pull request #41 from ucb-bar/firrtl-dep-fix

Manage firrtl dependency manually
This commit is contained in:
David Biancolin 2017-03-10 09:10:42 -08:00 committed by GitHub
commit 29aaeefe3f
1 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,12 @@ src/tcl/make_bitstream_$(CONFIG).tcl: $(common)/make_bitstream.tcl
sed 's/BOARD_NAME_HERE/$(BOARD)/g;s/CHISEL_CONFIG_HERE/$(CONFIG)/g' \
$(common)/make_bitstream.tcl > src/tcl/make_bitstream_$(CONFIG).tcl
$(rocketchip_stamp): $(call lookup_scala_srcs, $(ROCKET_DIR))
$(ROCKET_DIR)/lib/firrtl.jar: $(FIRRTL_JAR)
mkdir -p $(@D)
cp $< $@
$(rocketchip_stamp): $(call lookup_scala_srcs, $(ROCKET_DIR)) $(ROCKET_DIR)/lib/firrtl.jar
cd $(ROCKET_DIR) && $(SBT) pack
mkdir -p $(common)/lib
cp $(ROCKET_DIR)/target/pack/lib/* $(common)/lib