@@ -75,6 +75,7 @@ INC += \
7575 -isystem esp-idf/components/esp_hw_support/dma/include \
7676 -isystem esp-idf/components/esp_hw_support/include \
7777 -isystem esp-idf/components/esp_hw_support/include/soc \
78+ -isystem esp-idf/components/esp_hw_support/port/$(IDF_TARGET ) /private_include \
7879 -isystem esp-idf/components/esp_mm/include \
7980 -isystem esp-idf/components/esp_netif/include \
8081 -isystem esp-idf/components/esp_partition/include \
@@ -245,6 +246,7 @@ CHIP_COMPONENTS = \
245246
246247else ifeq ($(IDF_TARGET),esp32c2)
247248LDFLAGS += \
249+ -Tesp32c2.rom.ble.ld \
248250 -Tesp32c2.rom.heap.ld \
249251 -Tesp32c2.rom.newlib.ld \
250252 -Tesp32c2.rom.version.ld \
@@ -261,7 +263,8 @@ LDFLAGS += \
261263 -Tesp32c3.rom.newlib.ld \
262264 -Tesp32c3.rom.newlib-time.ld \
263265 -Tesp32c3.rom.version.ld \
264- -Tesp32c3.rom.eco3.ld
266+ -Tesp32c3.rom.eco3.ld \
267+ -Tesp32c3.rom.bt_funcs.ld
265268
266269CHIP_COMPONENTS = \
267270 esp_driver_tsens
@@ -317,7 +320,8 @@ LDFLAGS += \
317320 -Tesp32s3.rom.newlib.ld \
318321 -Tesp32s3.rom.version.ld \
319322 -Tesp32s3.rom.systimer.ld \
320- -Tesp32s3.rom.wdt.ld
323+ -Tesp32s3.rom.wdt.ld \
324+ -Tesp32s3.rom.bt_funcs.ld
321325
322326CHIP_COMPONENTS = \
323327 esp_driver_tsens
@@ -626,8 +630,12 @@ ifneq ($(CIRCUITPY_BLEIO),0)
626630 endif
627631
628632 ifeq ($(BLE_IMPL),libble)
629- BINARY_BLOBS += esp-idf/components/esp_phy/lib/$(IDF_TARGET)/libbtbb.a \
630- esp-idf/components/bt/controller/lib_$(IDF_TARGET)/$(IDF_TARGET)-bt-lib/libble_app.a
633+ BINARY_BLOBS += esp-idf/components/esp_phy/lib/$(IDF_TARGET)/libbtbb.a
634+ ifeq ($(IDF_TARGET),esp32c6)
635+ BINARY_BLOBS += esp-idf/components/bt/controller/lib_$(IDF_TARGET)/$(IDF_TARGET)-bt-lib/$(IDF_TARGET)/libble_app.a
636+ else
637+ BINARY_BLOBS += esp-idf/components/bt/controller/lib_$(IDF_TARGET)/$(IDF_TARGET)-bt-lib/libble_app.a
638+ endif
631639 endif
632640endif
633641ifneq ($(CIRCUITPY_ESPULP ) ,0)
0 commit comments