From bfbbaf2cdbfe344eb491aa941097cc9d5b3daff8 Mon Sep 17 00:00:00 2001 From: Herman Berget Date: Mon, 25 Apr 2022 14:42:09 +0200 Subject: [PATCH] Bluetooth: Fix compilation for entropy_bt_hci An application with the following config fails to link on nrf53 app core: ``` CONFIG_BT=y CONFIG_BT_HCI_RAW=y CONFIG_ENTROPY_GENERATOR=y ``` This happens because `entropy_bt_hci.c` uses functions from `hci_core.c`, which is only compiled if `BT_HCI_HOST` is selected. Signed-off-by: Herman Berget --- boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig | 2 +- drivers/entropy/Kconfig.bt_hci | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig b/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig index 24deebd493b..657cc124a71 100644 --- a/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig +++ b/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig @@ -9,7 +9,7 @@ config BOARD default "nrf5340dk_nrf5340_cpuapp" if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP_NS config ENTROPY_BT_HCI - default y if BT_HCI + default y if BT_HCI_HOST depends on ENTROPY_GENERATOR # By default, if we build for a Non-Secure version of the board, diff --git a/drivers/entropy/Kconfig.bt_hci b/drivers/entropy/Kconfig.bt_hci index 8ab1f64a812..01a5fd2806f 100644 --- a/drivers/entropy/Kconfig.bt_hci +++ b/drivers/entropy/Kconfig.bt_hci @@ -4,7 +4,7 @@ config ENTROPY_BT_HCI bool "Bluetooth HCI RNG driver" - depends on BT_HCI + depends on BT_HCI_HOST select ENTROPY_HAS_DRIVER help Enable Random Number Generator from a Bluetooth HCI device.