Merge pull request #1310 from ucb-bar/checkmake-precommit

checkmake pre-commit hook
This commit is contained in:
joonho hwangbo
2023-01-16 01:14:55 -08:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

2
.checkmake-config.ini Normal file
View File

@@ -0,0 +1,2 @@
[minphony]
disabled = true

View File

@@ -9,3 +9,8 @@ repos:
- id: check-yaml
- id: check-json
- id: check-added-large-files
- repo: https://github.com/mrtazz/checkmake.git
rev: main
hooks:
- id: checkmake
args: [--config=./.checkmake-config.ini]

View File

@@ -158,7 +158,7 @@ SFC_REPL_SEQ_MEM = --infer-rw --repl-seq-mem -c:$(MODEL):-o:$(SFC_SMEMS_CONF)
# "ENABLE_CUSTOM_FIRRTL_PASS" variable.
#
# hack: lower to low firrtl if Fixed types are found
# hack: when using dontTouch, io.cpu annotations are not removed by SFC,
# hack: when using dontTouch, io.cpu annotations are not removed by SFC,
# hence we remove them manually by using jq before passing them to firtool
$(SFC_MFC_TARGETS) &: $(FIRRTL_FILE) $(FINAL_ANNO_FILE) $(VLOG_SOURCES)
ifeq (,$(ENABLE_CUSTOM_FIRRTL_PASS))