1# SPDX-License-Identifier: Apache-2.0
2
3# Remove after 3.7.0 is released
4if(CONFIG_BT_RPMSG)
5	message(FATAL_ERROR  "CONFIG_BT_RPMSG has been renamed to CONFIG_BT_HCI_IPC")
6endif()
7
8# Remove after 3.7.0 is released
9if(CONFIG_BT_HCI_IPC)
10  dt_chosen(chosen_hci_rpmsg PROPERTY "zephyr,bt-hci-rpmsg-ipc")
11  if(DEFINED chosen_hci_rpmsg)
12	message(FATAL_ERROR  "zephyr,bt-hci-rpmsg-ipc has been renamed to zephyr,bt-hci-ipc")
13  endif()
14endif()
15
16zephyr_library_sources_ifdef(CONFIG_BT_B91         hci_b91.c)
17zephyr_library_sources_ifdef(CONFIG_BT_AIROC       cyw43xxx.c)
18zephyr_library_sources_ifdef(CONFIG_BT_ESP32       hci_esp32.c)
19zephyr_library_sources_ifdef(CONFIG_BT_H4          h4.c)
20zephyr_library_sources_ifdef(CONFIG_BT_H5          h5.c)
21zephyr_library_sources_ifdef(CONFIG_BT_HCI_IPC     ipc.c)
22if(CONFIG_BT_SPI)
23    if ((CONFIG_DT_HAS_ST_HCI_SPI_V1_ENABLED) OR (CONFIG_DT_HAS_ST_HCI_SPI_V2_ENABLED))
24       zephyr_library_sources(hci_spi_st.c)
25    else()
26      zephyr_library_sources(spi.c)
27    endif()
28endif()
29zephyr_library_sources_ifdef(CONFIG_BT_STM32_IPM   ipm_stm32wb.c)
30zephyr_library_sources_ifdef(CONFIG_BT_STM32WBA    hci_stm32wba.c)
31zephyr_library_sources_ifdef(CONFIG_BT_USERCHAN    userchan.c)
32zephyr_library_sources_ifdef(CONFIG_BT_SILABS_HCI  slz_hci.c)
33zephyr_library_sources_ifdef(CONFIG_BT_PSOC6_BLESS hci_psoc6_bless.c)
34zephyr_library_sources_ifdef(CONFIG_SOC_NRF5340_CPUAPP nrf53_support.c)
35zephyr_library_sources_ifdef(CONFIG_BT_AMBIQ_HCI   hci_ambiq.c apollox_blue.c)
36