From 769cfab694783a429a23998eab8d22971b4653e0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 24 Jun 2019 12:46:48 +0300 Subject: [PATCH] cmake: Set NO_QEMU_SERIAL_BT_SERVER when CONFIG_BT_NO_DRIVER is set When not driver is selected there should be no need to have a serial attached. Signed-off-by: Luiz Augusto von Dentz --- cmake/emu/qemu.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/emu/qemu.cmake b/cmake/emu/qemu.cmake index a68b09f6006894..19906ec1a09987 100644 --- a/cmake/emu/qemu.cmake +++ b/cmake/emu/qemu.cmake @@ -64,6 +64,9 @@ endif() # Add a BT serial device when building for bluetooth, unless the # application explicitly opts out with NO_QEMU_SERIAL_BT_SERVER. if(CONFIG_BT) + if(CONFIG_BT_NO_DRIVER) + set(NO_QEMU_SERIAL_BT_SERVER 1) + endif() if(NOT NO_QEMU_SERIAL_BT_SERVER) list(APPEND QEMU_FLAGS -serial unix:/tmp/bt-server-bredr) endif()