1# SPDX-License-Identifier: Apache-2.0 2 3if (CONFIG_BUILD_ONLY_NO_BLOBS) 4 message(WARNING " 5 --------------------------------------------------------------------------- 6 Building only the Bluetooth driver without binary blobs and patches. 7 This is only for building (CI) purposes and will not work on a real device. 8 --------------------------------------------------------------------------- 9 ") 10else() 11 12if(CONFIG_DT_HAS_ESPRESSIF_ESP32_BT_HCI_ENABLED) 13 zephyr_blobs_verify(MODULE hal_espressif REQUIRED) 14endif() 15 16if((CONFIG_DT_HAS_ST_HCI_STM32WBA_ENABLED) OR (CONFIG_DT_HAS_ST_HCI_STM32WB0_ENABLED)) 17 zephyr_blobs_verify(MODULE hal_stm32 REQUIRED) 18endif() 19 20if(CONFIG_DT_HAS_SILABS_BT_HCI_EFR32_ENABLED) 21 zephyr_blobs_verify(MODULE hal_silabs REQUIRED) 22endif() 23 24if(CONFIG_DT_HAS_INFINEON_CAT1_BLESS_HCI_ENABLED) 25 zephyr_blobs_verify(MODULE hal_infineon REQUIRED) 26endif() 27 28endif() # CONFIG_BUILD_ONLY_NO_BLOBS 29 30zephyr_library_sources_ifdef(CONFIG_BT_ESP32 hci_esp32.c) 31zephyr_library_sources_ifdef(CONFIG_BT_H4 h4.c) 32zephyr_library_sources_ifdef(CONFIG_BT_H5 h5.c) 33zephyr_library_sources_ifdef(CONFIG_BT_HCI_IPC ipc.c) 34zephyr_library_sources_ifdef(CONFIG_BT_SPI_ZEPHYR spi.c) 35zephyr_library_sources_ifdef(CONFIG_BT_SPI_BLUENRG hci_spi_st.c) 36zephyr_library_sources_ifdef(CONFIG_BT_CYW43XX h4_ifx_cyw43xxx.c) 37zephyr_library_sources_ifdef(CONFIG_BT_CYW208XX hci_ifx_cyw208xx.c) 38zephyr_library_sources_ifdef(CONFIG_BT_STM32_IPM ipm_stm32wb.c) 39zephyr_library_sources_ifdef(CONFIG_BT_STM32WBA hci_stm32wba.c) 40zephyr_library_sources_ifdef(CONFIG_BT_STM32WB0 hci_stm32wb0.c) 41zephyr_library_sources_ifdef(CONFIG_BT_SILABS_EFR32 hci_silabs_efr32.c) 42zephyr_library_sources_ifdef(CONFIG_BT_SILABS_SIWX91X hci_silabs_siwx91x.c) 43zephyr_library_sources_ifdef(CONFIG_BT_PSOC6_BLESS hci_ifx_psoc6_bless.c) 44zephyr_library_sources_ifdef(CONFIG_SOC_NRF5340_CPUAPP nrf53_support.c) 45zephyr_library_sources_ifdef(CONFIG_BT_AMBIQ_HCI hci_ambiq.c apollox_blue.c) 46zephyr_library_sources_ifdef(CONFIG_BT_DA1453X hci_da1453x.c) 47zephyr_library_sources_ifdef(CONFIG_BT_DA1469X hci_da1469x.c) 48zephyr_library_sources_ifdef(CONFIG_BT_NXP hci_nxp.c) 49zephyr_library_sources_ifdef(CONFIG_BT_H4_NXP_CTLR hci_nxp_setup.c) 50 51if(CONFIG_BT_USERCHAN) 52 zephyr_library_sources(userchan.c) 53 if (CONFIG_NATIVE_LIBRARY) 54 target_sources(native_simulator INTERFACE userchan_bottom.c) 55 else() 56 zephyr_library_sources(userchan_bottom.c) 57 endif() 58endif() 59