Skip to content

Commit

Permalink
Merge pull request #2653 from Pinata-Consulting/make-run-log-name-stem
Browse files Browse the repository at this point in the history
makefile: make RUN_LOG_NAME_STEM=foo run to specify name of log
  • Loading branch information
maliberty authored Jan 3, 2025
2 parents f6274ee + c5bdd90 commit 066327a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ klayout:
.phony: run
run:
@mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR)
($(OPENROAD_CMD) -no_splash $(if $(filter %.py,$(RUN_SCRIPT)),-python) $(RUN_SCRIPT) 2>&1 | tee $(abspath $(LOG_DIR)/run.log))
($(OPENROAD_CMD) -no_splash $(if $(filter %.py,$(RUN_SCRIPT)),-python) $(RUN_SCRIPT) 2>&1 | tee $(abspath $(LOG_DIR)/$(RUN_LOG_NAME_STEM).log))

# Utilities
#-------------------------------------------------------------------------------
Expand Down
9 changes: 9 additions & 0 deletions flow/scripts/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -875,3 +875,12 @@ GDS_ALLOW_EMPTY:
Regular expression of module names of macros that have no .gds file
stages:
- final
RUN_SCRIPT:
description: >
Path to script to run from `make run`, python or tcl script detected by
.py or .tcl extension.
RUN_LOG_NAME_STEM:
description: >
Stem of the log file name, the log file will be named
`$(LOG_DIR)/$(RUN_LOG_NAME_STEM).log`.
default: run

0 comments on commit 066327a

Please sign in to comment.