Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow openroad gui to run inside "make mount" #740

Merged
merged 2 commits into from
Nov 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ DOCKER_OPTIONS += --memory=$(DOCKER_MEMORY)
endif

UNAME_S := $(shell uname -s)
ifeq (1,$(DOCKER_DISPLAY))
ifeq ($(UNAME_S),Linux)
DOCKER_OPTIONS += -e DISPLAY=$(DISPLAY) -v /tmp/.X11-unix:/tmp/.X11-unix
endif
DOCKER_OPTIONS += -e DISPLAY=$(DISPLAY) -v /tmp/.X11-unix:/tmp/.X11-unix -v $(HOME)/.Xauthority:/.Xauthority --network host
endif

THREADS ?= 1
Expand Down Expand Up @@ -186,7 +184,11 @@ pull-openlane:
.PHONY: mount
mount:
cd $(OPENLANE_DIR) && \
docker run -it --rm -v $(OPENLANE_DIR):/openlane -v $(PDK_ROOT):$(PDK_ROOT) -e PDK_ROOT=$(PDK_ROOT) $(DOCKER_OPTIONS) $(OPENLANE_IMAGE_NAME)
docker run -it --rm \
-e PDK_ROOT=$(PDK_ROOT) \
-v $(OPENLANE_DIR):/openlane \
-v $(PDK_ROOT):$(PDK_ROOT) \
$(DOCKER_OPTIONS) $(OPENLANE_IMAGE_NAME)

MISC_REGRESSION_ARGS=
.PHONY: regression regression_test
Expand Down