[make] Find all build.sbt files and use them for bloop prereqs
This commit is contained in:
@@ -34,6 +34,8 @@ lookup_srcs = $(shell find -L $(1)/ -name target -prune -o -iname "*.$(2)" -prin
|
|||||||
SOURCE_DIRS = $(addprefix $(base_dir)/,generators sims/firesim/sim tools/barstools/iocell)
|
SOURCE_DIRS = $(addprefix $(base_dir)/,generators sims/firesim/sim tools/barstools/iocell)
|
||||||
SCALA_SOURCES = $(call lookup_srcs,$(SOURCE_DIRS),scala)
|
SCALA_SOURCES = $(call lookup_srcs,$(SOURCE_DIRS),scala)
|
||||||
VLOG_SOURCES = $(call lookup_srcs,$(SOURCE_DIRS),sv) $(call lookup_srcs,$(SOURCE_DIRS),v)
|
VLOG_SOURCES = $(call lookup_srcs,$(SOURCE_DIRS),sv) $(call lookup_srcs,$(SOURCE_DIRS),v)
|
||||||
|
# This assumes no SBT meta-build sources
|
||||||
|
SBT_SOURCES = $(call lookup_srcs,$(base_dir),sbt)
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# rocket and testchipip classes
|
# rocket and testchipip classes
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ SBT ?= java $(JAVA_ARGS) -jar $(ROCKETCHIP_DIR)/sbt-launch.jar
|
|||||||
BLOOP ?= bloop
|
BLOOP ?= bloop
|
||||||
BLOOP_CONFIG_DIR ?= $(base_dir)/.bloop
|
BLOOP_CONFIG_DIR ?= $(base_dir)/.bloop
|
||||||
|
|
||||||
SCALA_BUILDTOOL_DEPS ?= $(base_dir)/build.sbt
|
SCALA_BUILDTOOL_DEPS = $(SBT_SOURCES)
|
||||||
|
|
||||||
ifdef ENABLE_BLOOP
|
ifdef ENABLE_BLOOP
|
||||||
override SCALA_BUILDTOOL_DEPS += $(BLOOP_CONFIG_DIR)/TIMESTAMP
|
override SCALA_BUILDTOOL_DEPS += $(BLOOP_CONFIG_DIR)/TIMESTAMP
|
||||||
|
|||||||
Reference in New Issue
Block a user