Skip to content

Commit

Permalink
makefile: versions.txt used by make issue is now in OBJECTS_DIR
Browse files Browse the repository at this point in the history
this avoids having to add versions.txt to .gitignore for all
projects that are using ORFS.

Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Apr 23, 2024
1 parent 470955d commit 08bfb90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,10 @@ $(foreach block,$(BLOCKS),$(eval ./results/$(PLATFORM)/$(DESIGN_NICKNAME)_$(bloc
#-------------------------------------------------------------------------------
.PHONY: versions.txt
versions.txt:
@$(YOSYS_CMD) -V > $@
@echo openroad `$(OPENROAD_EXE) -version` >> $@
@$(KLAYOUT_CMD) -zz -v >> $@
mkdir -p $(OBJECTS_DIR)
@$(YOSYS_CMD) -V > $(OBJECTS_DIR)/$@
@echo openroad `$(OPENROAD_EXE) -version` >> $(OBJECTS_DIR)/$@
@$(KLAYOUT_CMD) -zz -v >> $(OBJECTS_DIR)/$@

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

.PHONY: vars
vars:
Expand Down

0 comments on commit 08bfb90

Please sign in to comment.