@@ -70,7 +70,8 @@ export NUM_CORES
7070
7171# -------------------------------------------------------------------------------
7272# setup all commands used within this flow
73- export PYTHON_EXE ?= $(shell command -v python3)
73+ PYTHON_EXE ?= $(shell command -v python3)
74+ export PYTHON_EXE := $(PYTHON_EXE )
7475
7576export RUN_CMD = $(PYTHON_EXE ) $(FLOW_HOME ) /scripts/run_command.py
7677
@@ -81,16 +82,19 @@ export RUN_CMD = $(PYTHON_EXE) $(FLOW_HOME)/scripts/run_command.py
8182# 2.1 if in Nix shell: openroad, yosys from the environment
8283# 2.2 ORFS compiled tools: openroad, yosys
8384ifneq (${IN_NIX_SHELL},)
84- export OPENROAD_EXE ?= $(shell command -v openroad)
85+ OPENROAD_EXE ?= $(shell command -v openroad)
8586else
86- export OPENROAD_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/openroad)
87+ OPENROAD_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/openroad)
8788endif
8889ifneq (${IN_NIX_SHELL},)
89- export OPENSTA_EXE ?= $(shell command -v sta)
90+ OPENSTA_EXE ?= $(shell command -v sta)
9091else
91- export OPENSTA_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/sta)
92+ OPENSTA_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/OpenROAD/bin/sta)
9293endif
9394
95+ export OPENROAD_EXE := $(OPENROAD_EXE )
96+ export OPENSTA_EXE := $(OPENSTA_EXE )
97+
9498OPENROAD_IS_VALID := $(if $(OPENROAD_EXE ) ,$(shell test -x $(OPENROAD_EXE ) && echo "true") ,)
9599
96100export OPENROAD_ARGS = -no_init -threads $(NUM_CORES ) $(OR_ARGS )
@@ -103,7 +107,8 @@ ifneq (${IN_NIX_SHELL},)
103107else
104108 YOSYS_EXE ?= $(abspath $(FLOW_HOME ) /../tools/install/yosys/bin/yosys)
105109endif
106- export YOSYS_EXE
110+
111+ export YOSYS_EXE := $(YOSYS_EXE )
107112
108113YOSYS_IS_VALID := $(if $(YOSYS_EXE ) ,$(shell test -x $(YOSYS_EXE ) && echo "true") ,)
109114
@@ -115,13 +120,14 @@ KEPLER_FORMAL_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/kepler-formal/bin/k
115120export KEPLER_FORMAL_EXE
116121
117122ifeq ($(wildcard $(KLAYOUT_BIN_FROM_DIR ) ) , $(KLAYOUT_BIN_FROM_DIR ) )
118- export KLAYOUT_CMD ?= sh -c 'LD_LIBRARY_PATH=$(dir $(KLAYOUT_BIN_FROM_DIR ) ) $$0 "$$@ "' $(KLAYOUT_BIN_FROM_DIR )
123+ KLAYOUT_CMD ?= sh -c 'LD_LIBRARY_PATH=$(dir $(KLAYOUT_BIN_FROM_DIR ) ) $$0 "$$@ "' $(KLAYOUT_BIN_FROM_DIR )
119124else
120125ifeq ($(KLAYOUT_CMD ) ,)
121- export KLAYOUT_CMD : = $(shell command -v klayout)
126+ KLAYOUT_CMD ? = $(shell command -v klayout)
122127endif
123128endif
124129
130+ export KLAYOUT_CMD := $(KLAYOUT_CMD )
125131
126132# -------------------------------------------------------------------------------
127133WRAPPED_LEFS = $(foreach lef,$(notdir $(WRAP_LEFS ) ) ,$(OBJECTS_DIR ) /lef/$(lef:.lef=_mod.lef ) )
0 commit comments