Cleanly reload proj. defs. with thin client support

This commit is contained in:
abejgonzalez
2020-12-02 12:18:12 -08:00
parent 5bc7e6cd68
commit 4e53dc1e66
3 changed files with 21 additions and 5 deletions

View File

@@ -69,9 +69,20 @@ SBT_SOURCES = $(call lookup_srcs,$(SBT_SOURCE_DIRS),sbt) $(base_dir)/build.sbt $
# Bloop Project Definitions
#########################################################################################
$(BLOOP_CONFIG_DIR)/TIMESTAMP: $(SBT_SOURCES)
cd $(base_dir) && $(SBT) "project chipyardRoot" "bloopInstall"
cd $(base_dir) && $(SBT) ";project chipyardRoot; bloopInstall"
touch $@
#########################################################################################
# SBT Server Setup (needed to rebuild project correctly)
#########################################################################################
$(SBT_THIN_CLIENT_TIMESTAMP): $(SBT_SOURCES)
ifneq (,$(wildcard $(SBT_THIN_CLIENT_TIMESTAMP)))
cd $(base_dir) && $(SBT) "reload"
touch $@
else
touch $@
endif
#########################################################################################
# create list of simulation file inputs
#########################################################################################
@@ -226,9 +237,10 @@ $(dramsim_lib):
launch-sbt:
cd $(base_dir) && $(SBT)
.PHONY: launch-sbt
.PHONY: shutdown-sbt
shutdown-sbt:
cd $(base_dir) && $(SBT) shutdown
cd $(base_dir) && $(SBT) "shutdown"
rm -rf $(SBT_THIN_CLIENT_TIMESTAMP)
#########################################################################################
# print help text