From c174af88bbd54c17c73218c2552a2092adb26532 Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Thu, 27 Jun 2024 15:43:26 +0200 Subject: [PATCH] flow: Makefile: Replace .map files in do-klayout IHP's PDK uses a map file to define layers. We need to alter the path to point from the OBJECTS_DIR to the PDK dir. Add a sed command after LEF modifications. Signed-off-by: Daniel Schultz --- flow/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/flow/Makefile b/flow/Makefile index fe69760329..130ad9c9e3 100644 --- a/flow/Makefile +++ b/flow/Makefile @@ -418,6 +418,7 @@ ifeq ($(KLAYOUT_ENV_VAR_IN_PATH),valid) else sed 's,.*,$(foreach file, $(OBJECTS_DIR)/klayout_tech.lef $(SC_LEF) $(ADDITIONAL_LEFS),$(shell realpath --relative-to=$(RESULTS_DIR) $(file))),g' $(KLAYOUT_TECH_FILE) > $(OBJECTS_DIR)/klayout.lyt endif + sed -i 's,.*,$(foreach file, $(FLOW_HOME)/platforms/$(PLATFORM)/*map,$(shell realpath $(file))),g' $(OBJECTS_DIR)/klayout.lyt $(OBJECTS_DIR)/klayout_wrap.lyt: $(KLAYOUT_TECH_FILE) $(OBJECTS_DIR)/klayout_tech.lef $(UNSET_AND_MAKE) do-klayout_wrap