Skip to content

Commit 6f51ec8

Browse files
committed
makefile: klayout relative path fix
This passed under the radar in ORFS that has WORK_HOME=FLOW_HOME, but that's not the case for private repositories using ORFS, either through make or bazel-orfs Signed-off-by: Øyvind Harboe <[email protected]>
1 parent c8e72ab commit 6f51ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ $(OBJECTS_DIR)/klayout.lyt: $(KLAYOUT_TECH_FILE) $(OBJECTS_DIR)/klayout_tech.lef
219219
.PHONY: do-klayout
220220
do-klayout:
221221
ifeq ($(KLAYOUT_ENV_VAR_IN_PATH),valid)
222-
SC_LEF_RELATIVE_PATH="$$\(env('FLOW_HOME')\)/$(shell realpath --relative-to=$(FLOW_HOME) $(SC_LEF))"; \
222+
SC_LEF_RELATIVE_PATH="$(shell realpath --relative-to=$(RESULTS_DIR) $(SC_LEF))"; \
223223
OTHER_LEFS_RELATIVE_PATHS=$$(echo "$(foreach file, $(OBJECTS_DIR)/klayout_tech.lef $(ADDITIONAL_LEFS),<lef-files>$$(realpath --relative-to=$(RESULTS_DIR) $(file))</lef-files>)"); \
224224
sed 's,<lef-files>.*</lef-files>,<lef-files>'"$$SC_LEF_RELATIVE_PATH"'</lef-files>'"$$OTHER_LEFS_RELATIVE_PATHS"',g' $(KLAYOUT_TECH_FILE) > $(OBJECTS_DIR)/klayout.lyt
225225
else

0 commit comments

Comments
 (0)