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 195
195
endif
196
196
197
197
$(SFC_MFC_TARGETS ) & : $(FIRRTL_FILE ) $(FINAL_ANNO_FILE ) $(MFC_LOWERING_OPTIONS )
198
- $(call require_cmd,firtool )
198
+ $(call require_cmd,$( FIRTOOL_BIN ) )
199
199
rm -rf $(GEN_COLLATERAL_DIR )
200
- (set -o pipefail && firtool \
200
+ (set -o pipefail && $( FIRTOOL_BIN ) \
201
201
--format=fir \
202
202
--export-module-hierarchy \
203
203
--verify-each=true \
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ HELP_COMPILATION_VARIABLES = \
9
9
" SBT_OPTS = set additional sbt command line options (these take the form -Dsbt.<option>=<setting>) " \
10
10
" See https://www.scala-sbt.org/1.x/docs/Command-Line-Reference.html\# Command+Line+Options" \
11
11
" 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)" \
12
13
13
14
HELP_PROJECT_VARIABLES = \
14
15
" SUB_PROJECT = use the specific subproject default variables [$(SUB_PROJECT ) ]" \
@@ -180,6 +181,9 @@ ANNO_FILE ?= $(build_dir)/$(long_name).anno.json
180
181
CHISEL_LOG_FILE ?= $(build_dir ) /$(long_name ) .chisel.log
181
182
FIRTOOL_LOG_FILE ?= $(build_dir ) /$(long_name ) .firtool.log
182
183
184
+ # Allow users to override the CIRCT FIRRTL compiler binary
185
+ FIRTOOL_BIN ?= firtool
186
+
183
187
# chisel anno modification output
184
188
MFC_EXTRA_ANNO_FILE ?= $(build_dir ) /$(long_name ) .extrafirtool.anno.json
185
189
FINAL_ANNO_FILE ?= $(build_dir ) /$(long_name ) .appended.anno.json
You can’t perform that action at this time.
0 commit comments