Skip to content

Commit

Permalink
Allow OpenROAD GUI to run inside "make mount" (#740)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <mliberty@eng.ucsd.edu>
  • Loading branch information
maliberty authored Nov 30, 2021
1 parent 1bf3709 commit 540e2a2
Showing 1 changed file with 6 additions and 4 deletions.
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

0 comments on commit 540e2a2

Please sign in to comment.