qemu: Add possibility to redirect serial port to pseudo TTY
Change-Id: I9a3b6ecd85b88ec59db29af727ed3ccbd47e42a2 Signed-off-by: Fabrice Olivero <fabrice.olivero@intel.com>
This commit is contained in:
parent
26b0b4c920
commit
35dcc0a4cb
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -1138,12 +1138,16 @@ tools/%: FORCE
|
|||
|
||||
QEMU_FLAGS = $(QEMU_FLAGS_$(ARCH)) -pidfile qemu.pid
|
||||
|
||||
ifneq ($(QEMU_PTY),)
|
||||
QEMU_FLAGS += -serial pty
|
||||
else
|
||||
ifneq ($(QEMU_PIPE),)
|
||||
# Send console output to a pipe, used for running automated sanity tests
|
||||
QEMU_FLAGS += -serial pipe:$(QEMU_PIPE)
|
||||
else
|
||||
QEMU_FLAGS += -serial mon:stdio
|
||||
endif
|
||||
endif
|
||||
|
||||
qemu: zephyr
|
||||
$(if $(QEMU_PIPE),,@echo "To exit from QEMU enter: 'CTRL+a, x'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue