File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed
Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,15 @@ else
153153 $(error [ERROR][FLOW] Platform '$(PLATFORM)' not found.)
154154endif
155155
156- include $(PLATFORM_DIR ) /config.mk
156+ # The plan is to migrate all variables to .tcl so that
157+ # ORFS is no longer dependent on make.
158+ ifneq ($(wildcard $(PLATFORM_DIR ) /config.tcl) ,)
159+ # import variables defined in config.tcl to the make environment.
160+ $(foreach line,$(shell tclsh $(SCRIPTS_DIR)/env.tcl $(PLATFORM_DIR)/config.tcl),$(eval $(line)))
161+ endif
162+ ifneq ($(wildcard $(PLATFORM_DIR ) /config.mk) ,)
163+ include $(PLATFORM_DIR ) /config.mk
164+ endif
157165
158166# __SPACE__ is a workaround for whitespace hell in "foreach"; there
159167# is no way to escape space in defaults.py and get "foreach" to work.
Original file line number Diff line number Diff line change 1- export PLATFORM = asap7
2- export PROCESS = 7
3-
41ifeq ($(LIB_MODEL ) ,)
52 export LIB_MODEL = NLDM
63endif
Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------
2+ # IR Drop
3+ # ---------------------------------------------------------
4+
5+ set ::env(PLATFORM) asap7
6+ set ::env(PROCESS) 7
Original file line number Diff line number Diff line change 1+ # Print out make variables that have changed so that
2+ # make can set them up.
3+ set envfile [lindex $argv 0]
4+ set env_vars [array get ::env]
5+ source $envfile
6+
7+ foreach {var val} [array get ::env] {
8+ if {![dict exists $env_vars $var ] || [dict get $env_vars $var ] ne $val } {
9+ puts " export $var :=$val "
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments