diff options
author | Devaev Maxim <[email protected]> | 2020-09-09 13:06:08 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-09 13:06:12 +0300 |
commit | 91557ebbafa80d03574fa886ede1f09f6024c28c (patch) | |
tree | 8ae9f144b8543b5f2612712c1d50a885067f1e6c /Makefile | |
parent | 6c5a485b4833b20a1a488102285bdc91566be565 (diff) |
gpio test configs
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3,6 +3,7 @@ TESTENV_IMAGE ?= kvmd-testenv TESTENV_HID ?= /dev/ttyS10 TESTENV_VIDEO ?= /dev/video0 +TESTENV_RELAY ?= $(if $(shell ls /dev/hidraw0 2>/dev/null || true),/dev/hidraw0,) USTREAMER_MIN_VERSION ?= $(shell grep -o 'ustreamer>=[^"]\+' PKGBUILD | sed 's/ustreamer>=//g') @@ -75,6 +76,7 @@ run: testenv --volume `pwd`/configs:/usr/share/kvmd/configs.default:ro \ --volume `pwd`/contrib/keymaps:/usr/share/kvmd/keymaps:ro \ --device $(TESTENV_VIDEO):$(TESTENV_VIDEO) \ + $(if $(TESTENV_RELAY),--device $(TESTENV_RELAY):$(TESTENV_RELAY),) \ --publish 8080:80/tcp \ -it $(TESTENV_IMAGE) /bin/bash -c " \ (socat PTY,link=$(TESTENV_HID) PTY,link=/dev/ttyS11 &) \ |