New project setup: export OPENLANE_ROOT does not work #256
-
I'm trying to setup a new project and following documentation from here : https://caravel-user-project.readthedocs.io/en/latest/#overview I'm in my project directory. I run the export command for OPENLANE_ROOT and PDK_ROOT. However, after I run make setup, I get the following error OPENLANE_ROOT is set to '/Users/mymac/Silicon_exp1/openlane' which contains openlane config files Is this the export command that's failing? Is there a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Don't point existing |
Beta Was this translation helpful? Give feedback.
-
Figured out the reason. In Makefile, the env variable for open lane is verified using
Mac does not have realpath. The setup works after installing realpath via homebrew. Here's stackoverflow solution to getting realpath : https://stackoverflow.com/questions/3572030/bash-script-absolute-path-with-os-x |
Beta Was this translation helpful? Give feedback.
Figured out the reason.
In Makefile, the env variable for open lane is verified using
.PHONY: openlane openlane: @if [ "$$(realpath $${OPENLANE_ROOT})" = "$$(realpath $$(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; \ fi cd openlane && $(MAKE) openlane
Mac does not have realpath. The setup works after installing realpath via homebrew.
Here's stackoverflow solution to getting realpath : https://stackoverflow.com/questions/3572030/bash-script-absolute-path-with-os-x