net: apps: Add qemu support without monitor tool
Echo-server and client will exchange data without monitor tool support. Change-Id: I3cf73a4baf025bf7e5fc634bef696d5f0e6b4c57 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
d51288a4e1
commit
325eb61a6d
1 changed files with 10 additions and 5 deletions
|
@ -48,6 +48,9 @@ ${PIPE_CLIENT_IN}:
|
||||||
mkfifo $@
|
mkfifo $@
|
||||||
${PIPE_CLIENT_OUT}:
|
${PIPE_CLIENT_OUT}:
|
||||||
mkfifo $@
|
mkfifo $@
|
||||||
|
LINK_CLIENT_PIPES:
|
||||||
|
ln ${PIPE_SERVER_IN} ${PIPE_CLIENT_OUT}
|
||||||
|
ln ${PIPE_SERVER_OUT} ${PIPE_CLIENT_IN}
|
||||||
|
|
||||||
.PHONY: PIPE_CLIENT_IN_LINK
|
.PHONY: PIPE_CLIENT_IN_LINK
|
||||||
PIPE_CLIENT_IN_LINK: ${PIPE_SERVER_IN}
|
PIPE_CLIENT_IN_LINK: ${PIPE_SERVER_IN}
|
||||||
|
@ -62,6 +65,11 @@ PIPE_CLIENT_OUT_LINK: ${PIPE_SERVER_OUT}
|
||||||
.PHONY: setup_pipes_dual_monitor
|
.PHONY: setup_pipes_dual_monitor
|
||||||
setup_pipes_dual_monitor: ${PIPE_SERVER_IN} ${PIPE_SERVER_OUT} ${PIPE_CLIENT_IN} ${PIPE_CLIENT_OUT}
|
setup_pipes_dual_monitor: ${PIPE_SERVER_IN} ${PIPE_SERVER_OUT} ${PIPE_CLIENT_IN} ${PIPE_CLIENT_OUT}
|
||||||
|
|
||||||
|
# Setup the dual qemu test case with (two qemus passing data
|
||||||
|
# between them)
|
||||||
|
.PHONY: setup_pipes
|
||||||
|
setup_pipes: ${PIPE_SERVER_IN} ${PIPE_SERVER_OUT} LINK_CLIENT_PIPES
|
||||||
|
|
||||||
export QEMU_NUM
|
export QEMU_NUM
|
||||||
export QEMU_EXTRA_FLAGS
|
export QEMU_EXTRA_FLAGS
|
||||||
|
|
||||||
|
@ -79,13 +87,10 @@ start_monitor: ${ZEPHYR_BASE}/net/ip/tools/monitor_15_4
|
||||||
${PIPE_BASE}-server ${PIPE_BASE}-client > /dev/null & \
|
${PIPE_BASE}-server ${PIPE_BASE}-client > /dev/null & \
|
||||||
echo "$$!" > ${PID_FILE}
|
echo "$$!" > ${PID_FILE}
|
||||||
|
|
||||||
server: remove_pipes setup_pipes_dual_monitor $(DOTCONFIG) start_monitor
|
server: remove_pipes setup_pipes $(DOTCONFIG)
|
||||||
$(Q)$(call zephyrmake,$(O),qemu); true
|
$(Q)$(call zephyrmake,$(O),qemu); true
|
||||||
$(Q)kill `cat ${PID_FILE}`
|
|
||||||
$(Q)rm -f ${PID_FILE}
|
|
||||||
-@killall monitor_15_4 > /dev/null 2>&1 ; true
|
|
||||||
$(Q)stty sane
|
$(Q)stty sane
|
||||||
|
|
||||||
client: setup_pipes_dual_monitor $(DOTCONFIG)
|
client: $(DOTCONFIG)
|
||||||
$(Q)$(call zephyrmake,$(O),qemu); true
|
$(Q)$(call zephyrmake,$(O),qemu); true
|
||||||
$(Q)stty sane
|
$(Q)stty sane
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue