Skip to content

Commit

Permalink
Merge pull request #2578 from The-OpenROAD-Project-staging/reorder-de…
Browse files Browse the repository at this point in the history
…faults

The platforms should set their defaults before the generic defaults
  • Loading branch information
maliberty authored Nov 20, 2024
2 parents 28d9f13 + 909a7a9 commit 515a851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ export UTILS_DIR ?= $(FLOW_HOME)/util
export SCRIPTS_DIR ?= $(FLOW_HOME)/scripts
export TEST_DIR ?= $(FLOW_HOME)/test

# __SPACE__ is a workaround for whitespace hell in "foreach"; there
# is no way to escape space in defaults.py and get "foreach" to work.
$(foreach line,$(shell $(SCRIPTS_DIR)/defaults.py),$(eval export $(subst __SPACE__, ,$(line))))

PUBLIC=nangate45 sky130hd sky130hs asap7 ihp-sg13g2 gf180

ifneq ($(wildcard $(PLATFORM_HOME)/$(PLATFORM)),)
Expand All @@ -178,6 +174,10 @@ endif

include $(PLATFORM_DIR)/config.mk

# __SPACE__ is a workaround for whitespace hell in "foreach"; there
# is no way to escape space in defaults.py and get "foreach" to work.
$(foreach line,$(shell $(SCRIPTS_DIR)/defaults.py),$(eval export $(subst __SPACE__, ,$(line))))

# Enables hierarchical yosys
export SYNTH_STATS = $(RESULTS_DIR)/synth_stats.txt
export SYNTH_STATS_SCRIPT = $(SCRIPTS_DIR)/synth_stats.tcl
Expand Down

0 comments on commit 515a851

Please sign in to comment.