Skip to content

Commit 4ea6bb7

Browse files
committed
Tweak coex inclusion
1 parent 2fd8589 commit 4ea6bb7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ports/espressif/Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -709,14 +709,13 @@ BINARY_BLOBS += esp-idf/components/esp_phy/lib/$(IDF_TARGET)/librtc.a
709709
endif
710710

711711
ESP_IDF_COMPONENTS_LINK = $(IDF_TARGET_ARCH) $(CHIP_COMPONENTS) app_update bootloader_support driver esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_ledc esp_driver_spi esp_driver_uart efuse esp_adc esp_app_format esp_common esp_event esp_hw_support esp_mm esp_partition esp_pm esp_ringbuf esp_rom esp_system esp_timer freertos hal heap log newlib nvs_flash pthread soc spi_flash vfs esp_vfs_console
712-
NEEDS_COEX = $(CIRCUITPY_BLEIO_NATIVE) + $(CIRCUITPY_WIFI)
713-
ifneq ($(NEEDS_COEX),0)
714-
# esp_system_include_startup_funcs requires coexist as well BT regardless of wifi
715-
BINARY_BLOBS += esp-idf/components/esp_coex/lib/$(IDF_TARGET)/libcoexist.a
716-
ESP_IDF_COMPONENTS_LINK += esp_coex
717-
endif
718712
ifneq ($(CIRCUITPY_WIFI),0)
719713
ESP_IDF_COMPONENTS_LINK += esp_netif esp_security esp-tls esp_wifi lwip mbedtls mdns wpa_supplicant esp_phy
714+
ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
715+
# esp_system_include_startup_funcs requires coexist as well BT regardless of wifi
716+
BINARY_BLOBS += esp-idf/components/esp_coex/lib/$(IDF_TARGET)/libcoexist.a
717+
ESP_IDF_COMPONENTS_LINK += esp_coex
718+
endif
720719
endif
721720
ifneq ($(CIRCUITPY_BLEIO_NATIVE),0)
722721
BLE_IMPL_esp32 := esp32

0 commit comments

Comments
 (0)