Skip to content

Commit 7dd7406

Browse files
committed
makefile: extend do-step to support 6_report.log
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent f8e5616 commit 7dd7406

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

flow/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ UNSET_AND_MAKE = @bash -c 'for var in $(ISSUE_VARIABLES_NAMES); do unset $$var;
461461
# A "do-synth" step would be welcomed, but it isn't strictly necessary
462462
# for the Bazel use-case.
463463
define do-step
464-
$(RESULTS_DIR)/$(1).odb: $(2)
464+
$(if $(5),$(5),$(RESULTS_DIR))/$(1)$(if $(4),$(4),.odb): $(2)
465465
$$(UNSET_AND_MAKE) do-$(1)
466466

467467
.PHONY: do-$(1)
@@ -700,8 +700,7 @@ $(RESULTS_DIR)/6_1_fill.sdc: $(RESULTS_DIR)/5_route.sdc
700700
$(RESULTS_DIR)/6_final.sdc: $(RESULTS_DIR)/5_route.sdc
701701
cp $< $@
702702

703-
$(LOG_DIR)/6_report.log: $(RESULTS_DIR)/6_1_fill.odb $(RESULTS_DIR)/6_1_fill.sdc
704-
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/final_report.tcl -metrics $(LOG_DIR)/6_report.json) 2>&1 | tee $(LOG_DIR)/6_report.log
703+
$(eval $(call do-step,6_report,$(RESULTS_DIR)/6_1_fill.odb $(RESULTS_DIR)/6_1_fill.sdc,final_report,.log,$(LOG_DIR)))
705704

706705
$(RESULTS_DIR)/6_final.def: $(LOG_DIR)/6_report.log
707706

0 commit comments

Comments
 (0)