Skip to content

Commit 2eb182c

Browse files
authored
Merge pull request #1173 from Pinata-Consulting/make-update-ok-no-openroad-inpath-same-as-other-targets
Make update ok no openroad inpath same as other targets
2 parents 90105fa + 28b8653 commit 2eb182c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

flow/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ endif
269269
# Priority is given to
270270
# 1 user include path to the executable prior to running make
271271
# 2 user explicit set with variable in Makefile or command line
272-
OPENROAD_EXE ?= $(shell command -v openroad)
272+
export OPENROAD_EXE ?= $(shell command -v openroad)
273273
ifeq ($(OPENROAD_EXE),)
274-
OPENROAD_EXE = $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
274+
export OPENROAD_EXE = $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
275275
endif
276276
OPENROAD_ARGS = -no_init $(OR_ARGS)
277277
OPENROAD_CMD = $(OPENROAD_EXE) -exit $(OPENROAD_ARGS)

flow/util/genMetrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def extract_metrics(cwd, platform, design, flow_variant, output, hier_json):
208208
metrics_dict = defaultdict(dict)
209209
metrics_dict['run__flow__generate_date'] = now.strftime('%Y-%m-%d %H:%M')
210210
metrics_dict['run__flow__metrics_version'] = 'Metrics_2.1.2'
211-
cmdOutput = check_output(['openroad', '-version'])
211+
cmdOutput = check_output([os.environ.get('OPENROAD_EXE', 'openroad'), '-version'])
212212
cmdFields = [x.decode('utf-8') for x in cmdOutput.split()]
213213
metrics_dict['run__flow__openroad_version'] = str(cmdFields[0])
214214
if len(cmdFields) > 1:

flow/util/utils.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ command:
120120

121121
## Provide easy access to debugging
122122
ifdef GDB
123-
OPENROAD_EXE := gdb --args $(OPENROAD_EXE)
123+
export OPENROAD_EXE := gdb --args $(OPENROAD_EXE)
124124
endif
125125

126126
## Provide easy way to run valgrind
127127
ifdef VALGRIND
128-
OPENROAD_EXE := valgrind $(VALGRIND_ARGS) $(OPENROAD_EXE)
128+
export OPENROAD_EXE := valgrind $(VALGRIND_ARGS) $(OPENROAD_EXE)
129129
endif
130130

131131
## Convert RVE DRC database to JSON

0 commit comments

Comments
 (0)