Skip to content

Commit 066327a

Browse files
authored
Merge pull request #2653 from Pinata-Consulting/make-run-log-name-stem
makefile: make RUN_LOG_NAME_STEM=foo run to specify name of log
2 parents f6274ee + c5bdd90 commit 066327a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ klayout:
10541054
.phony: run
10551055
run:
10561056
@mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR)
1057-
($(OPENROAD_CMD) -no_splash $(if $(filter %.py,$(RUN_SCRIPT)),-python) $(RUN_SCRIPT) 2>&1 | tee $(abspath $(LOG_DIR)/run.log))
1057+
($(OPENROAD_CMD) -no_splash $(if $(filter %.py,$(RUN_SCRIPT)),-python) $(RUN_SCRIPT) 2>&1 | tee $(abspath $(LOG_DIR)/$(RUN_LOG_NAME_STEM).log))
10581058

10591059
# Utilities
10601060
#-------------------------------------------------------------------------------

flow/scripts/variables.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,3 +875,12 @@ GDS_ALLOW_EMPTY:
875875
Regular expression of module names of macros that have no .gds file
876876
stages:
877877
- final
878+
RUN_SCRIPT:
879+
description: >
880+
Path to script to run from `make run`, python or tcl script detected by
881+
.py or .tcl extension.
882+
RUN_LOG_NAME_STEM:
883+
description: >
884+
Stem of the log file name, the log file will be named
885+
`$(LOG_DIR)/$(RUN_LOG_NAME_STEM).log`.
886+
default: run

0 commit comments

Comments
 (0)