mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-01 22:57:54 +00:00
Update CI scripts for CMake
Co-authored-by: Catherine <whitequark@whitequark.org>
This commit is contained in:
parent
16af8cbcc5
commit
17381fa6f8
32 changed files with 364 additions and 339 deletions
|
|
@ -1,7 +1,3 @@
|
|||
ifneq ($(wildcard ../Makefile.conf),)
|
||||
include ../Makefile.conf
|
||||
endif
|
||||
|
||||
OVERRIDE_MAIN=1
|
||||
include ./common.mk
|
||||
|
||||
|
|
@ -91,7 +87,7 @@ prep: $(MK_TEST_DIRS:%=%/Makefile)
|
|||
.PHONY: force-create
|
||||
# this target actually emits Makefile files
|
||||
%/Makefile: force-create
|
||||
+@cd $* && python3 generate_mk.py
|
||||
+@cd $* && python3 generate_mk.py $(if $(SEED),-S$(SEED))
|
||||
|
||||
makefile-./%: %/Makefile
|
||||
@$(MAKE) -C $*
|
||||
|
|
@ -125,3 +121,16 @@ clean:
|
|||
@rm -f ./tools/cmp_tbdata
|
||||
@rm -f $(addsuffix /Makefile,$(MK_TEST_DIRS))
|
||||
@find . -name '*.result' -type f -exec rm -f {} +
|
||||
|
||||
.PHONY: coverage
|
||||
coverage:
|
||||
@echo "Creating coverage HTML"
|
||||
@$(YOSYS) -qp 'help; help -all'
|
||||
@rm -rf $(COVERAGE_HTML)
|
||||
@llvm-profdata merge -sparse $(COVERAGE_DIR)/coverage_*.profraw -o $(COVERAGE_DIR)/yosys.profdata
|
||||
@llvm-cov show $(YOSYS) -instr-profile=$(COVERAGE_DIR)/yosys.profdata -format=html -output-dir=$(COVERAGE_HTML) --compilation-dir=$(SRC_DIR) --ignore-filename-regex='(^|.*/)libs/.*|/usr/include/.*|$(subst /,\/,$(VERIFIC_DIR))/.*'
|
||||
|
||||
.PHONY: clean_coverage
|
||||
clean_coverage:
|
||||
@echo "Clean coverage"
|
||||
@rm -rf $(COVERAGE_DIR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue