|
1 | 1 | MODULE = esp_idf_ble |
2 | 2 |
|
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 |
7 | 12 |
|
8 | 13 | ifeq (,$(filter esp_idf_wifi,$(USEMODULE))) |
9 | 14 | 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 \ |
11 | 17 | components/esp_phy/src/phy_init.c \ |
| 18 | + components/esp_system/port/soc/$(CPU_FAM)/reset_reason.c \ |
12 | 19 | components/esp_wifi/src/wifi_init.c \ |
| 20 | + components/soc/esp32/dport_access.c \ |
13 | 21 | # |
14 | 22 | endif |
15 | 23 |
|
| 24 | +INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_coex/include |
16 | 25 | INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_event/include |
17 | 26 | INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_netif/include |
| 27 | +INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_partition/include |
18 | 28 | INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_phy/include |
19 | 29 | INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_phy/$(CPU_FAM)/include |
20 | 30 | INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_wifi/include |
21 | 31 | INCLUDES += -I$(ESP32_SDK_DIR)/components/nvs_flash/include |
22 | | - |
23 | 32 | INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/esp_supplicant/include |
24 | | -INCLUDES += -I$(ESP32_SDK_DIR)/components/tcpip_adapter/include |
25 | 33 |
|
26 | 34 | CFLAGS += -Wno-cast-function-type |
27 | 35 | CFLAGS += -Wno-implicit-fallthrough |
|
0 commit comments