File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 195195endif
196196
197197$(SFC_MFC_TARGETS ) & : $(FIRRTL_FILE ) $(FINAL_ANNO_FILE ) $(MFC_LOWERING_OPTIONS )
198- $(call require_cmd,firtool )
198+ $(call require_cmd,$( FIRTOOL_BIN ) )
199199 rm -rf $(GEN_COLLATERAL_DIR )
200- (set -o pipefail && firtool \
200+ (set -o pipefail && $( FIRTOOL_BIN ) \
201201 --format=fir \
202202 --export-module-hierarchy \
203203 --verify-each=true \
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ HELP_COMPILATION_VARIABLES = \
99" SBT_OPTS = set additional sbt command line options (these take the form -Dsbt.<option>=<setting>) " \
1010" See https://www.scala-sbt.org/1.x/docs/Command-Line-Reference.html\# Command+Line+Options" \
1111" SBT = if overridden, used to invoke sbt (default is to invoke sbt by sbt-launch.jar)" \
12+ " FIRTOOL_BIN = path to CIRCT firtool (default: 'firtool' in PATH)" \
1213
1314HELP_PROJECT_VARIABLES = \
1415" SUB_PROJECT = use the specific subproject default variables [$(SUB_PROJECT ) ]" \
@@ -180,6 +181,9 @@ ANNO_FILE ?= $(build_dir)/$(long_name).anno.json
180181CHISEL_LOG_FILE ?= $(build_dir ) /$(long_name ) .chisel.log
181182FIRTOOL_LOG_FILE ?= $(build_dir ) /$(long_name ) .firtool.log
182183
184+ # Allow users to override the CIRCT FIRRTL compiler binary
185+ FIRTOOL_BIN ?= firtool
186+
183187# chisel anno modification output
184188MFC_EXTRA_ANNO_FILE ?= $(build_dir ) /$(long_name ) .extrafirtool.anno.json
185189FINAL_ANNO_FILE ?= $(build_dir ) /$(long_name ) .appended.anno.json
You can’t perform that action at this time.
0 commit comments