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 <herman.berget@nordicsemi.no>
This commit is contained in:
Herman Berget 2022-04-25 14:42:09 +02:00 committed by Carles Cufí
commit bfbbaf2cdb
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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.