find all scala source files instead of searching individual project directories

This commit is contained in:
Howard Mao
2019-08-28 20:38:44 -07:00
parent 0e8fb52f8d
commit a2171bc7b8

View File

@@ -6,11 +6,10 @@ SHELL=/bin/bash
######################################################################################### #########################################################################################
# variables to get all *.scala files # variables to get all *.scala files
######################################################################################### #########################################################################################
lookup_scala_srcs = $(shell find -L $(1)/ -iname "*.scala" 2> /dev/null) lookup_scala_srcs = $(shell find -L $(1)/ -name target -prune -o -iname "*.scala" -print 2> /dev/null)
PACKAGES=$(addprefix generators/, rocket-chip testchipip boom hwacha sifive-blocks sifive-cache example) \ SOURCE_DIRS=$(addprefix $(base_dir)/,generators sims/firesim/sim)
$(addprefix sims/firesim/sim/, . firesim-lib midas midas/targetutils) SCALA_SOURCES=$(call lookup_scala_srcs,$(SOURCE_DIRS))
SCALA_SOURCES=$(foreach pkg,$(PACKAGES),$(call lookup_scala_srcs,$(base_dir)/$(pkg)/src/main/scala))
######################################################################################### #########################################################################################
# rocket and testchipip classes # rocket and testchipip classes