Skip to content

Commit

Permalink
flow: Makefile: Replace .map files in do-klayout
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dnltz committed Aug 2, 2024
1 parent 22c5e84 commit c174af8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ ifeq ($(KLAYOUT_ENV_VAR_IN_PATH),valid)
else
sed 's,<lef-files>.*</lef-files>,$(foreach file, $(OBJECTS_DIR)/klayout_tech.lef $(SC_LEF) $(ADDITIONAL_LEFS),<lef-files>$(shell realpath --relative-to=$(RESULTS_DIR) $(file))</lef-files>),g' $(KLAYOUT_TECH_FILE) > $(OBJECTS_DIR)/klayout.lyt
endif
sed -i 's,<map-file>.*</map-file>,$(foreach file, $(FLOW_HOME)/platforms/$(PLATFORM)/*map,<map-file>$(shell realpath $(file))</map-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
Expand Down

0 comments on commit c174af8

Please sign in to comment.