From 578c91ae18037dbf6c7861b124bf572bd233d782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Mon, 13 Nov 2017 12:01:24 +0100 Subject: [PATCH] Bluetooth: storage: Fix linking with subsys__fs Signed-off-by: Sebastian Boe --- subsys/bluetooth/host/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/CMakeLists.txt b/subsys/bluetooth/host/CMakeLists.txt index d1cc3ddc110..8172067f51c 100644 --- a/subsys/bluetooth/host/CMakeLists.txt +++ b/subsys/bluetooth/host/CMakeLists.txt @@ -1,10 +1,14 @@ zephyr_library() zephyr_library_link_libraries(subsys__bluetooth) +if(CONFIG_BT_INTERNAL_STORAGE) + zephyr_library_sources(storage.c) + zephyr_library_link_libraries(subsys__fs) +endif() + zephyr_library_sources_ifdef(CONFIG_BT_HCI_RAW hci_raw.c) zephyr_library_sources_ifdef(CONFIG_BT_DEBUG_MONITOR monitor.c) zephyr_library_sources_ifdef(CONFIG_BT_TINYCRYPT_ECC hci_ecc.c) -zephyr_library_sources_ifdef(CONFIG_BT_INTERNAL_STORAGE storage.c) zephyr_library_sources_ifdef(CONFIG_BT_A2DP a2dp.c) zephyr_library_sources_ifdef(CONFIG_BT_AVDTP avdtp.c) zephyr_library_sources_ifdef(CONFIG_BT_RFCOMM rfcomm.c)