From 3a6952e3e6cbbf3ad57f4392c707c311bb999125 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Thu, 24 Jun 2021 15:37:19 +0200 Subject: [PATCH] Bluetooth: iso: Compile conn.c for BT_ISO even without BT_CONN If BT_ISO is enabled we now compile conn.c which contains a lot of functionality used by BT_ISO, even for broadcast-iso builds, i.e. builds that do not require BT_CONN. Signed-off-by: Emil Gydesen --- samples/bluetooth/iso_broadcast/prj.conf | 2 +- subsys/bluetooth/host/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/bluetooth/iso_broadcast/prj.conf b/samples/bluetooth/iso_broadcast/prj.conf index 2de6c2b2c6a..d4d7b659aec 100644 --- a/samples/bluetooth/iso_broadcast/prj.conf +++ b/samples/bluetooth/iso_broadcast/prj.conf @@ -5,4 +5,4 @@ CONFIG_BT_DEVICE_NAME="Test ISO Broadcaster" # Temporary, enable the following to meet BT_ISO dependencies CONFIG_BT_OBSERVER=y -CONFIG_BT_PERIPHERAL=y +CONFIG_BT_BROADCASTER=y diff --git a/subsys/bluetooth/host/CMakeLists.txt b/subsys/bluetooth/host/CMakeLists.txt index 03a60f08bd3..711bb8a74a1 100644 --- a/subsys/bluetooth/host/CMakeLists.txt +++ b/subsys/bluetooth/host/CMakeLists.txt @@ -77,6 +77,7 @@ if(CONFIG_BT_HCI_HOST) zephyr_library_sources_ifdef( CONFIG_BT_ISO iso.c + conn.c ) if(CONFIG_BT_DF)