mirror of https://github.com/openXC7/prjxray.git
122 lines
4.0 KiB
Makefile
122 lines
4.0 KiB
Makefile
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
# Developer options for quicker runs
|
|
# Run algorithm, but only a small number of iterations
|
|
QUICK=N
|
|
# Skip metadata steps like tile and part generation
|
|
# Ex: FUZZONLY=N: 30 min, FUZZONLY=Y: 6 min
|
|
FUZZONLY=N
|
|
# 074 fuzzer isn't changed often and is slow
|
|
# Allow building without it
|
|
BITONLY=N
|
|
|
|
all:
|
|
clean: clean_fuzzers clean_logs clean_locks
|
|
|
|
clean_locks:
|
|
rm -rf /tmp/segbits_*.db.lock
|
|
|
|
define fuzzer
|
|
|
|
# $(1) - Fuzzer name/directory
|
|
# $(2) - Space seperated list of dependencies for the fuzzer.
|
|
|
|
# Make the all target depend on the run.ok file for the fuzzer.
|
|
all: $(1)/run.ok
|
|
|
|
# Make the clean target run `make clean` in the fuzzer's directory.
|
|
clean_fuzzers::
|
|
$$(MAKE) -C $(1) clean
|
|
|
|
clean_logs::
|
|
rm -rf $(1)/logs
|
|
|
|
# Describe how to create the fuzzer's run.ok file.
|
|
# This command must start with a + to tell make to pass the jobserver
|
|
# parameters downwards.
|
|
ifeq ($(VERBOSE),Y)
|
|
|
|
# When verbose we just call make directory
|
|
$(1)/run.ok: $(addsuffix /run.ok,$(2))
|
|
$$(MAKE) -C $(1) run
|
|
|
|
else
|
|
|
|
# When not verbose, we use the run_fuzzer wrapper which will save the results
|
|
# to log files.
|
|
$(1)/run.ok: $(addsuffix /run.ok,$(2))
|
|
+@$(SELF_DIR)/run_fuzzer.py $(1)
|
|
|
|
endif
|
|
|
|
endef
|
|
|
|
$(eval $(call fuzzer,000-init-db,))
|
|
|
|
ifneq ($(FUZZONLY),Y)
|
|
$(eval $(call fuzzer,001-part-yaml,000-init-db))
|
|
$(eval $(call fuzzer,005-tilegrid,001-part-yaml))
|
|
else
|
|
all:: 005-tilegrid/run.ok
|
|
touch 005-tilegrid/run.ok
|
|
endif
|
|
|
|
$(eval $(call fuzzer,010-clb-lutinit,005-tilegrid))
|
|
$(eval $(call fuzzer,011-clb-ffconfig,005-tilegrid))
|
|
$(eval $(call fuzzer,012-clb-n5ffmux,005-tilegrid))
|
|
$(eval $(call fuzzer,013-clb-ncy0,005-tilegrid))
|
|
$(eval $(call fuzzer,014-clb-ffsrcemux,005-tilegrid))
|
|
$(eval $(call fuzzer,015-clb-nffmux,005-tilegrid))
|
|
$(eval $(call fuzzer,016-clb-noutmux,005-tilegrid))
|
|
$(eval $(call fuzzer,017-clb-precyinit,005-tilegrid))
|
|
$(eval $(call fuzzer,018-clb-ram,005-tilegrid))
|
|
$(eval $(call fuzzer,019-clb-ndi1mux,005-tilegrid))
|
|
$(eval $(call fuzzer,025-bram-config,005-tilegrid))
|
|
$(eval $(call fuzzer,026-bram-data,005-tilegrid))
|
|
$(eval $(call fuzzer,027-bram36-config,005-tilegrid))
|
|
$(eval $(call fuzzer,028-fifo-config,005-tilegrid))
|
|
$(eval $(call fuzzer,029-bram-fifo-config,005-tilegrid))
|
|
$(eval $(call fuzzer,030-iob,005-tilegrid))
|
|
$(eval $(call fuzzer,035-iob-ilogic,005-tilegrid))
|
|
$(eval $(call fuzzer,036-iob-ologic,005-tilegrid))
|
|
$(eval $(call fuzzer,040-clk-hrow-config,005-tilegrid))
|
|
$(eval $(call fuzzer,041-clk-hrow-pips,005-tilegrid))
|
|
$(eval $(call fuzzer,042-clk-bufg-config,005-tilegrid))
|
|
$(eval $(call fuzzer,043-clk-rebuf-pips,005-tilegrid))
|
|
$(eval $(call fuzzer,044-clk-bufg-pips,005-tilegrid))
|
|
$(eval $(call fuzzer,045-hclk-cmt-pips,005-tilegrid))
|
|
$(eval $(call fuzzer,048-int-piplist,005-tilegrid))
|
|
$(eval $(call fuzzer,049-int-imux-gfan,048-int-piplist))
|
|
$(eval $(call fuzzer,050-pip-seed,048-int-piplist))
|
|
$(eval $(call fuzzer,051-pip-imuxlout-bypalts,048-int-piplist))
|
|
$(eval $(call fuzzer,052-pip-clkin,048-int-piplist))
|
|
$(eval $(call fuzzer,053-pip-ctrlin,048-int-piplist))
|
|
$(eval $(call fuzzer,054-pip-fan-alt,048-int-piplist))
|
|
$(eval $(call fuzzer,055-pip-gnd,048-int-piplist))
|
|
$(eval $(call fuzzer,056-pip-rem,049-int-imux-gfan 050-pip-seed 051-pip-imuxlout-bypalts 052-pip-clkin 053-pip-ctrlin 054-pip-fan-alt 055-pip-gnd))
|
|
$(eval $(call fuzzer,057-pip-bi,056-pip-rem))
|
|
ifneq ($(QUICK),Y)
|
|
$(eval $(call fuzzer,058-pip-hclk,005-tilegrid))
|
|
$(eval $(call fuzzer,060-bram-cascades,005-tilegrid))
|
|
$(eval $(call fuzzer,071-ppips,057-pip-bi 058-pip-hclk 060-bram-cascades))
|
|
ifneq ($(BITONLY),Y)
|
|
$(eval $(call fuzzer,072-ordered_wires,))
|
|
$(eval $(call fuzzer,073-get_counts,))
|
|
$(eval $(call fuzzer,074-dump_all,005-tilegrid 072-ordered_wires))
|
|
$(eval $(call fuzzer,075-pins,))
|
|
endif
|
|
endif
|
|
$(eval $(call fuzzer,100-dsp-mskpat,005-tilegrid))
|
|
|
|
quick:
|
|
$(MAKE) QUICK=Y
|
|
|
|
# part_only runs the fuzzers required for supporting additional parts.
|
|
# Note: In theory this includes 005-tilegrid, but there isn't support for
|
|
# multiple tilegrid's per family at this time.
|
|
part_only:
|
|
+$(MAKE) -C 001-part-yaml run
|
|
+$(MAKE) -C 075-pins run
|
|
|
|
.PHONY: all clean clean_fuzzers clean_logs quick part_only
|