Skip to content

Commit beca894

Browse files
committed
cpu/esp32/esp-idf/ble: migration to ESP-IDF v5.4
1 parent 870c1c0 commit beca894

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

cpu/esp32/esp-idf/ble/Makefile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
MODULE = esp_idf_ble
22

3-
# source files to be compiled for this module
4-
ESP32_SDK_SRC = \
5-
components/bt/controller/$(CPU_FAM)/bt.c \
6-
#
3+
ifeq (esp32,$(CPU_FAM))
4+
# source files to be compiled for this module
5+
ESP32_SDK_SRC += components/bt/controller/$(CPU_FAM)/bt.c
6+
ESP32_SDK_SRC += components/esp_system/esp_system.c
7+
else ifneq (,$(filter esp32s3 esp32c3,$(CPU_FAM)))
8+
# source files to be compiled for this module
9+
ESP32_SDK_SRC += components/bt/controller/esp32c3/bt.c
10+
ESP32_SDK_SRC += components/esp_system/esp_system.c
11+
endif
712

813
ifeq (,$(filter esp_idf_wifi,$(USEMODULE)))
914
ESP32_SDK_SRC += \
10-
components/esp_hw_support/port/$(CPU_FAM)/dport_access.c \
15+
components/esp_phy/$(CPU_FAM)/phy_init_data.c \
16+
components/esp_phy/src/phy_common.c \
1117
components/esp_phy/src/phy_init.c \
18+
components/esp_system/port/soc/$(CPU_FAM)/reset_reason.c \
1219
components/esp_wifi/src/wifi_init.c \
20+
components/soc/esp32/dport_access.c \
1321
#
1422
endif
1523

24+
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_coex/include
1625
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_event/include
1726
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_netif/include
27+
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_partition/include
1828
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_phy/include
1929
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_phy/$(CPU_FAM)/include
2030
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_wifi/include
2131
INCLUDES += -I$(ESP32_SDK_DIR)/components/nvs_flash/include
22-
2332
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/esp_supplicant/include
24-
INCLUDES += -I$(ESP32_SDK_DIR)/components/tcpip_adapter/include
2533

2634
CFLAGS += -Wno-cast-function-type
2735
CFLAGS += -Wno-implicit-fallthrough

0 commit comments

Comments
 (0)