Skip to content

Commit eaba9c1

Browse files
committed
macro: move macro code out of Makefile
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 96ea7a5 commit eaba9c1

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
@@ -159,10 +159,6 @@ ifneq ($(BLOCKS),)
159159
endif
160160
endif
161161

162-
export RTLMP_RPT_DIR ?= $(OBJECTS_DIR)/rtlmp
163-
export RTLMP_RPT_FILE ?= partition.txt
164-
export RTLMP_BLOCKAGE_FILE ?= $(OBJECTS_DIR)/rtlmp/partition.txt.blockage
165-
166162
#-------------------------------------------------------------------------------
167163
ifeq (,$(strip $(NUM_CORES)))
168164
# 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)