Skip to content

Commit 1bc06f3

Browse files
authored
Merge pull request #1961 from Pinata-Consulting/makefile-versions-make-issue-file-in-objdir
makefile: versions.txt used by make issue is now in OBJECTS_DIR
2 parents 0472df8 + d4a3bae commit 1bc06f3

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ flow/run-me*.sh
1616
flow/vars*.sh
1717
flow/vars*.tcl
1818
flow/vars*.gdb
19-
flow/versions.txt
2019

2120
# Common temp files
2221
flow/*.log

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ flow/run-me*.sh
2020
flow/vars*.sh
2121
flow/vars*.tcl
2222
flow/vars*.gdb
23-
flow/versions.txt
2423

2524
# Common temp files
2625
flow/pt_shell_command.log

flow/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,10 @@ $(foreach block,$(BLOCKS),$(eval ./results/$(PLATFORM)/$(DESIGN_NICKNAME)_$(bloc
364364
#-------------------------------------------------------------------------------
365365
.PHONY: versions.txt
366366
versions.txt:
367-
@$(YOSYS_CMD) -V > $@
368-
@echo openroad `$(OPENROAD_EXE) -version` >> $@
369-
@$(KLAYOUT_CMD) -zz -v >> $@
367+
mkdir -p $(OBJECTS_DIR)
368+
@$(YOSYS_CMD) -V > $(OBJECTS_DIR)/$@
369+
@echo openroad `$(OPENROAD_EXE) -version` >> $(OBJECTS_DIR)/$@
370+
@$(KLAYOUT_CMD) -zz -v >> $(OBJECTS_DIR)/$@
370371

371372
# Pre-process libraries
372373
# ==============================================================================
@@ -992,7 +993,7 @@ nuke: clean_test clean_issues
992993
rm -rf ./results ./logs ./reports ./objects
993994
rm -rf layer_*.mps macrocell.list *best.plt *_pdn.def
994995
rm -rf *.rpt *.rpt.old *.def.v pin_dumper.log
995-
rm -f versions.txt $(OBJECTS_DIR)/copyright.txt dummy.guide
996+
rm -f $(OBJECTS_DIR)/versions.txt $(OBJECTS_DIR)/copyright.txt dummy.guide
996997

997998
.PHONY: vars
998999
vars:

0 commit comments

Comments
 (0)