55# export ARDUINO_SKIP_IDF_VERSION_CHECK=1
66# idf.py build
77
8- set (min_supported_idf_version "5.1 .0" )
9- set (max_supported_idf_version "5.1 .99" )
8+ set (min_supported_idf_version "5.3 .0" )
9+ set (max_supported_idf_version "5.3 .99" )
1010set (idf_version "${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} .${IDF_VERSION_PATCH} " )
1111
1212if ("${idf_version} " AND NOT "$ENV{ARDUINO_SKIP_IDF_VERSION_CHECK} " )
@@ -25,6 +25,7 @@ endif()
2525set (CORE_SRCS
2626 cores/esp32/base64.cpp
2727 cores/esp32/cbuf.cpp
28+ cores/esp32/ColorFormat.c
2829 cores/esp32/chip-debug-report.cpp
2930 cores/esp32/esp32-hal-adc.c
3031 cores/esp32/esp32-hal-bt.c
@@ -45,9 +46,11 @@ set(CORE_SRCS
4546 cores/esp32/esp32-hal-timer.c
4647 cores/esp32/esp32-hal-tinyusb.c
4748 cores/esp32/esp32-hal-touch.c
49+ cores/esp32/esp32-hal-touch-ng.c
4850 cores/esp32/esp32-hal-uart.c
4951 cores/esp32/esp32-hal-rmt.c
5052 cores/esp32/Esp.cpp
53+ cores/esp32/freertos_stats.cpp
5154 cores/esp32/FunctionalInterrupt.cpp
5255 cores/esp32/HardwareSerial.cpp
5356 cores/esp32/HEXBuilder.cpp
@@ -93,6 +96,7 @@ set(ARDUINO_ALL_LIBRARIES
9396 HTTPUpdate
9497 Insights
9598 LittleFS
99+ Matter
96100 NetBIOS
97101 Network
98102 OpenThread
@@ -116,7 +120,6 @@ set(ARDUINO_ALL_LIBRARIES
116120 )
117121
118122set (ARDUINO_LIBRARY_ArduinoOTA_SRCS libraries/ArduinoOTA/src/ArduinoOTA.cpp)
119- set (ARDUINO_LIBRARY_ArduinoOTA_REQUIRES esp_https_ota)
120123
121124set (ARDUINO_LIBRARY_AsyncUDP_SRCS libraries/AsyncUDP/src/AsyncUDP.cpp)
122125
@@ -157,14 +160,22 @@ set(ARDUINO_LIBRARY_HTTPUpdate_SRCS libraries/HTTPUpdate/src/HTTPUpdate.cpp)
157160set (ARDUINO_LIBRARY_Insights_SRCS libraries/Insights/src/Insights.cpp)
158161
159162set (ARDUINO_LIBRARY_LittleFS_SRCS libraries/LittleFS/src/LittleFS.cpp)
160- set (ARDUINO_LIBRARY_LittleFS_REQUIRES joltwallet__littlefs)
161163
162164set (ARDUINO_LIBRARY_NetBIOS_SRCS libraries/NetBIOS/src/NetBIOS.cpp)
163165
164166set (ARDUINO_LIBRARY_OpenThread_SRCS
165167 libraries/OpenThread/src/OThreadCLI.cpp
166168 libraries/OpenThread/src/OThreadCLI_Util.cpp)
167169
170+ set (ARDUINO_LIBRARY_Matter_SRCS
171+ libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.cpp
172+ libraries/Matter/src/MatterEndpoints/MatterOnOffLight.cpp
173+ libraries/Matter/src/MatterEndpoints/MatterDimmableLight.cpp
174+ libraries/Matter/src/MatterEndpoints/MatterColorTemperatureLight.cpp
175+ libraries/Matter/src/MatterEndpoints/MatterColorLight.cpp
176+ libraries/Matter/src/MatterEndpoints/MatterEnhancedColorLight.cpp
177+ libraries/Matter/src/Matter.cpp)
178+
168179set (ARDUINO_LIBRARY_PPP_SRCS
169180 libraries/PPP/src/PPP.cpp
170181 libraries/PPP/src/ppp.c)
@@ -317,7 +328,7 @@ endforeach()
317328set (includedirs variants/${CONFIG_ARDUINO_VARIANT} / cores/esp32/ ${ARDUINO_LIBRARIES_INCLUDEDIRS} )
318329set (srcs ${CORE_SRCS} ${ARDUINO_LIBRARIES_SRCS} )
319330set (priv_includes cores/esp32/libb64)
320- set (requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser espressif__network_provisioning )
331+ set (requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser esp_ringbuf esp_driver_gptimer esp_driver_usb_serial_jtag driver )
321332set (priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hid usb esp_psram ${ARDUINO_LIBRARIES_REQUIRES} )
322333
323334if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThread)
@@ -328,6 +339,10 @@ if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThre
328339 endif ()
329340endif ()
330341
342+ if (IDF_TARGET STREQUAL "esp32p4" )
343+ list (APPEND requires esp_driver_touch_sens)
344+ endif ()
345+
331346idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires} )
332347
333348if (NOT CONFIG_FREERTOS_HZ EQUAL 1000 AND NOT "$ENV{ARDUINO_SKIP_TICK_CHECK} " )
@@ -367,9 +382,21 @@ function(maybe_add_component component_name)
367382 endif ()
368383endfunction ()
369384
370- if (IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
385+ if (IDF_TARGET MATCHES "esp32s2|esp32s3|esp32p4 " AND CONFIG_TINYUSB_ENABLED)
371386 maybe_add_component(arduino_tinyusb)
372387endif ()
373388if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
374389 maybe_add_component(esp_https_ota)
375390endif ()
391+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ESP_SR)
392+ maybe_add_component(espressif__esp_sr)
393+ endif ()
394+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_Matter)
395+ maybe_add_component(espressif__esp_matter)
396+ endif ()
397+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_LittleFS)
398+ maybe_add_component(joltwallet__littlefs)
399+ endif ()
400+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_WiFiProv)
401+ maybe_add_component(espressif__network_provisioning)
402+ endif ()
0 commit comments