Skip to content

Commit 3d06716

Browse files
sylvioalvesjhedberg
authored andcommitted
drivers: bt: esp32: add CONFIG_BUILD_ONLY_NO_BLOBS to allow CI tests
Adds an option to enable CI tests without binary blobs. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 60b38d5 commit 3d06716

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

drivers/bluetooth/hci/CMakeLists.txt

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
zephyr_library_sources_ifdef(CONFIG_BT_ESP32 hci_esp32.c)
3+
if (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+
")
10+
else()
11+
412
if(CONFIG_DT_HAS_ESPRESSIF_ESP32_BT_HCI_ENABLED)
513
zephyr_blobs_verify(MODULE hal_espressif REQUIRED)
614
endif()
15+
16+
if((CONFIG_DT_HAS_ST_HCI_STM32WBA_ENABLED) OR (CONFIG_DT_HAS_ST_HCI_STM32WB0_ENABLED))
17+
zephyr_blobs_verify(MODULE hal_stm32 REQUIRED)
18+
endif()
19+
20+
if(CONFIG_DT_HAS_SILABS_BT_HCI_EFR32_ENABLED)
21+
zephyr_blobs_verify(MODULE hal_silabs REQUIRED)
22+
endif()
23+
24+
if(CONFIG_DT_HAS_INFINEON_CAT1_BLESS_HCI_ENABLED)
25+
zephyr_blobs_verify(MODULE hal_infineon REQUIRED)
26+
endif()
27+
28+
endif() # CONFIG_BUILD_ONLY_NO_BLOBS
29+
30+
zephyr_library_sources_ifdef(CONFIG_BT_ESP32 hci_esp32.c)
731
zephyr_library_sources_ifdef(CONFIG_BT_H4 h4.c)
832
zephyr_library_sources_ifdef(CONFIG_BT_H5 h5.c)
933
zephyr_library_sources_ifdef(CONFIG_BT_HCI_IPC ipc.c)
1034
zephyr_library_sources_ifdef(CONFIG_BT_SPI_ZEPHYR spi.c)
1135
zephyr_library_sources_ifdef(CONFIG_BT_SPI_BLUENRG hci_spi_st.c)
1236
zephyr_library_sources_ifdef(CONFIG_BT_CYW43XX h4_ifx_cyw43xxx.c)
1337
zephyr_library_sources_ifdef(CONFIG_BT_CYW208XX hci_ifx_cyw208xx.c)
14-
1538
zephyr_library_sources_ifdef(CONFIG_BT_STM32_IPM ipm_stm32wb.c)
1639
zephyr_library_sources_ifdef(CONFIG_BT_STM32WBA hci_stm32wba.c)
1740
zephyr_library_sources_ifdef(CONFIG_BT_STM32WB0 hci_stm32wb0.c)
18-
if((CONFIG_DT_HAS_ST_HCI_STM32WBA_ENABLED) OR (CONFIG_DT_HAS_ST_HCI_STM32WB0_ENABLED))
19-
zephyr_blobs_verify(MODULE hal_stm32 REQUIRED)
20-
endif()
2141
zephyr_library_sources_ifdef(CONFIG_BT_USERCHAN userchan.c)
2242
zephyr_library_sources_ifdef(CONFIG_BT_SILABS_EFR32 hci_silabs_efr32.c)
23-
if(CONFIG_DT_HAS_SILABS_BT_HCI_EFR32_ENABLED)
24-
zephyr_blobs_verify(MODULE hal_silabs REQUIRED)
25-
endif()
2643
zephyr_library_sources_ifdef(CONFIG_BT_PSOC6_BLESS hci_ifx_psoc6_bless.c)
27-
if(CONFIG_DT_HAS_INFINEON_CAT1_BLESS_HCI_ENABLED)
28-
zephyr_blobs_verify(MODULE hal_infineon REQUIRED)
29-
endif()
3044
zephyr_library_sources_ifdef(CONFIG_SOC_NRF5340_CPUAPP nrf53_support.c)
3145
zephyr_library_sources_ifdef(CONFIG_BT_AMBIQ_HCI hci_ambiq.c apollox_blue.c)
3246
zephyr_library_sources_ifdef(CONFIG_BT_DA1453X hci_da1453x.c)

drivers/bluetooth/hci/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ config BT_ESP32
153153
bool
154154
default y
155155
depends on DT_HAS_ESPRESSIF_ESP32_BT_HCI_ENABLED
156-
depends on ZEPHYR_HAL_ESPRESSIF_MODULE_BLOBS
156+
depends on ZEPHYR_HAL_ESPRESSIF_MODULE_BLOBS || BUILD_ONLY_NO_BLOBS
157157
help
158158
Espressif HCI bluetooth interface
159159

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ manifest:
162162
groups:
163163
- hal
164164
- name: hal_espressif
165-
revision: 9fbf519573e713bd92bb8222bcfef77e7219584b
165+
revision: e52371024732a47a67fa9c889fbccd0aa6355f3a
166166
path: modules/hal/espressif
167167
west-commands: west/west-commands.yml
168168
groups:

0 commit comments

Comments
 (0)