samples: net: Multiple instances of QEMU
Makefiles which start QEMU (make run) have been changed to operate off of the QEMU_INSTANCE variable. QEMU_INSTANCE is simply appended to the pid and sock file names. This makes us able to run multiple QEMU Zephyr instances of the same sample. Signed-off-by: John Andersen <john.s.andersen@intel.com>
This commit is contained in:
parent
534beb34c9
commit
06b92c6611
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ ifdef QEMU_NUM
|
|||
QEMU_EXTRA_FLAGS += -serial none -serial pipe:${PIPE_BASE}-${QEMU_NUM} \
|
||||
-pidfile qemu-${QEMU_NUM}.pid
|
||||
else
|
||||
QEMU_EXTRA_FLAGS += -serial none -serial unix:/tmp/slip.sock
|
||||
QEMU_EXTRA_FLAGS += -serial none -serial unix:/tmp/slip.sock$(QEMU_INSTANCE)
|
||||
endif
|
||||
|
||||
PIPE_SERVER_IN=${PIPE_BASE}-server.in
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
# Abstraction of 'run' goal with Qemu
|
||||
|
||||
QEMU_FLAGS = $(QEMU_FLAGS_$(ARCH)) -pidfile qemu.pid
|
||||
QEMU_FLAGS = $(QEMU_FLAGS_$(ARCH)) -pidfile qemu$(QEMU_INSTANCE).pid
|
||||
|
||||
ifneq ($(QEMU_PTY),)
|
||||
QEMU_FLAGS += -serial pty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue