Skip to content

Commit 449c828

Browse files
committed
macro: move macro code out of Makefile
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 8aab92b commit 449c828

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
@@ -184,10 +184,6 @@ ifneq ($(BLOCKS),)
184184
endif
185185
endif
186186

187-
export RTLMP_RPT_DIR ?= $(OBJECTS_DIR)/rtlmp
188-
export RTLMP_RPT_FILE ?= partition.txt
189-
export RTLMP_BLOCKAGE_FILE ?= $(OBJECTS_DIR)/rtlmp/partition.txt.blockage
190-
191187
#-------------------------------------------------------------------------------
192188
ifeq (,$(strip $(NUM_CORES)))
193189
# 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)