Skip to content

Commit f1cdf5c

Browse files
authored
Merge pull request #2968 from Pinata-Consulting/makefile-cleanup
macro: move macro code out of Makefile
2 parents b2db0c3 + 449c828 commit f1cdf5c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

flow/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ ifneq ($(BLOCKS),)
188188
endif
189189
endif
190190

191-
export RTLMP_RPT_DIR ?= $(OBJECTS_DIR)/rtlmp
192-
export RTLMP_RPT_FILE ?= partition.txt
193-
export RTLMP_BLOCKAGE_FILE ?= $(OBJECTS_DIR)/rtlmp/partition.txt.blockage
194-
195191
#-------------------------------------------------------------------------------
196192
ifeq (,$(strip $(NUM_CORES)))
197193
# Linux (utility program)

flow/scripts/macro_place_util.tcl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
if {[find_macros] != ""} {
2-
# If wrappers defined replace macros with their wrapped version
3-
# # ----------------------------------------------------------------------------
2+
if {![env_var_exists_and_non_empty RTLMP_RPT_DIR]} {
3+
set ::env(RTLMP_RPT_DIR) "$::env(OBJECTS_DIR)/rtlmp"
4+
}
5+
if {![env_var_exists_and_non_empty RTLMP_RPT_FILE]} {
6+
set ::env(RTLMP_RPT_FILE) "partition.txt"
7+
}
8+
if {![env_var_exists_and_non_empty RTLMP_BLOCKAGE_FILE]} {
9+
set ::env(RTLMP_BLOCKAGE_FILE) "$::env(OBJECTS_DIR)/rtlmp/partition.txt.blockage"
10+
}
11+
12+
# If wrappers defined replace macros with their wrapped version
413
if {[env_var_exists_and_non_empty MACRO_WRAPPERS]} {
514
source $::env(MACRO_WRAPPERS)
615

0 commit comments

Comments
 (0)