cmake: Set proper QEMU options for networking applications

If compiling networking application for QEMU, then serial ports
must be set properly for QEMU<->host connectivity using SLIP.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-11-10 11:10:15 +02:00
commit ede10b96e4

View file

@ -30,6 +30,16 @@ if(EMU_PLATFORM)
endif()
endif()
# If we are running a networking application in QEMU, then set proper
# QEMU variables. This also allows two QEMUs to be hooked together and
# pass data between them. The QEMU flags are not set for standalone
# tests defined by CONFIG_NET_TEST.
if(CONFIG_NETWORKING)
if(NOT CONFIG_NET_TEST)
set(QEMU_NET_STACK 1)
endif()
endif()
if(QEMU_NET_STACK)
list(APPEND qemu_targets
client