Skip to content

Commit 0b4031c

Browse files
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents 799cf4b + 636e3d5 commit 0b4031c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

flow/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
# file to avoid having to adding the to the make command line.
33
-include settings.mk
44

5-
# Include design and platform configuration before setting default options
6-
# in this file. This allows the DESIGN_CONFIG to set different defaults than
7-
# this file.
8-
include $(DESIGN_CONFIG)
9-
105
# ==============================================================================
116
# Uncomment or add the design to run
127
# ==============================================================================
@@ -109,6 +104,11 @@ include $(DESIGN_CONFIG)
109104
# Default design
110105
DESIGN_CONFIG ?= ./designs/nangate45/gcd/config.mk
111106

107+
# Include design and platform configuration before setting default options
108+
# in this file. This allows the DESIGN_CONFIG to set different defaults than
109+
# this file.
110+
include $(DESIGN_CONFIG)
111+
112112
# For instance Bazel needs artifacts (.odb and .rpt files) on a failure to
113113
# allow the user to save hours on re-running the failed step locally, but
114114
# when working with a Makefile flow, it is more natural to fail the step

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def parse_flow_variables():
347347
makefile_path = os.path.join(cur_path, "../../../../flow/")
348348
initial_path = os.path.abspath(os.getcwd())
349349
os.chdir(makefile_path)
350-
result = subprocess.run(["make", "vars"])
350+
result = subprocess.run(["make", "vars", f"PLATFORM={args.platform}"])
351351
if result.returncode != 0:
352352
print(f"[ERROR TUN-0018] Makefile failed with error code {result.returncode}.")
353353
sys.exit(1)
@@ -532,6 +532,7 @@ def openroad(base_dir, parameters, flow_variant, path=""):
532532
make_command = export_command
533533
make_command += f"make -C {base_dir}/flow DESIGN_CONFIG=designs/"
534534
make_command += f"{args.platform}/{args.design}/config.mk"
535+
make_command += f" PLATFORM={args.platform}"
535536
make_command += f" FLOW_VARIANT={flow_variant} {parameters}"
536537
make_command += f" EQUIVALENCE_CHECK=0"
537538
make_command += f" NPROC={args.openroad_threads} SHELL=bash"

0 commit comments

Comments
 (0)