Skip to content

Commit

Permalink
changed realpath to readlink
Browse files Browse the repository at this point in the history
  • Loading branch information
marwaneltoukhy committed Oct 1, 2023
1 parent aa08347 commit fa304d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ what:
# Install Openlane
.PHONY: openlane
openlane:
@if [ "$$(realpath $${OPENLANE_ROOT})" = "$$(realpath $$(pwd)/openlane)" ]; then\
@if [ "$$(readlink -f $${OPENLANE_ROOT})" = "$$(readlink -f $$(pwd)/openlane)" ]; then\
echo "OPENLANE_ROOT is set to '$$(pwd)/openlane' which contains openlane config files"; \
echo "Please set it to a different directory"; \
exit 1; \
Expand All @@ -201,8 +201,8 @@ openlane:
.PHONY: simlink
simlink: check-caravel
### Symbolic links relative path to $CARAVEL_ROOT
$(eval MAKEFILE_PATH := $(shell realpath --relative-to=openlane $(CARAVEL_ROOT)/openlane/Makefile))
$(eval PIN_CFG_PATH := $(shell realpath --relative-to=openlane/user_project_wrapper $(CARAVEL_ROOT)/openlane/user_project_wrapper_empty/pin_order.cfg))
$(eval MAKEFILE_PATH := $(shell readlink -f --relative-to=openlane $(CARAVEL_ROOT)/openlane/Makefile))
$(eval PIN_CFG_PATH := $(shell readlink -f --relative-to=openlane/user_project_wrapper $(CARAVEL_ROOT)/openlane/user_project_wrapper_empty/pin_order.cfg))
mkdir -p openlane
mkdir -p openlane/user_project_wrapper
cd openlane &&\
Expand Down
10 changes: 5 additions & 5 deletions openlane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ endif

openlane_cmd = \
"flow.tcl \
-design $$(realpath ./$*) \
-save_path $$(realpath ..) \
-design $$(readlink -f ./$*) \
-save_path $$(readlink -f ..) \
-save \
-tag $(OPENLANE_RUN_TAG) \
-overwrite \
-ignore_mismatches"
openlane_cmd_interactive = "flow.tcl -it -file $$(realpath ./$*/interactive.tcl)"
openlane_cmd_interactive = "flow.tcl -it -file $$(readlink -f ./$*/interactive.tcl)"

docker_mounts = \
-v $$(realpath $(PWD)/..):$$(realpath $(PWD)/..) \
-v $$(readlink -f $(PWD)/..):$$(readlink -f $(PWD)/..) \
-v $(PDK_ROOT):$(PDK_ROOT) \
-v $(CARAVEL_ROOT):$(CARAVEL_ROOT) \
-v $(OPENLANE_ROOT):/openlane
Expand Down Expand Up @@ -75,7 +75,7 @@ else
# $(current_design)
mkdir -p ./$*/runs/$(OPENLANE_RUN_TAG)
rm -rf ./$*/runs/$*
ln -s $$(realpath ./$*/runs/$(OPENLANE_RUN_TAG)) ./$*/runs/$*
ln -s $$(readlink -f ./$*/runs/$(OPENLANE_RUN_TAG)) ./$*/runs/$*
$(docker_run) \
$(OPENLANE_IMAGE_NAME) sh -c $(openlane_cmd)
endif
Expand Down

0 comments on commit fa304d0

Please sign in to comment.