File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ # Check ESP-IDF version and error out if it is not in the supported range.
2+ #
3+ # Note for arduino-esp32 developers: to bypass the version check locally,
4+ # set ARDUINO_SKIP_IDF_VERSION_CHECK environment variable to 1. For example:
5+ # export ARDUINO_SKIP_IDF_VERSION_CHECK=1
6+ # idf.py build
7+
8+ set (min_supported_idf_version "4.4.0" )
9+ set (max_supported_idf_version "4.4.99" )
10+ set (idf_version "${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} .${IDF_VERSION_PATCH} " )
11+
12+ if ("${idf_version} " AND NOT "$ENV{ARDUINO_SKIP_IDF_VERSION_CHECK} " )
13+ if (idf_version VERSION_LESS min_supported_idf_version)
14+ message (FATAL_ERROR "Arduino-esp32 can be used with ESP-IDF versions "
15+ "between ${min_supported_idf_version} and ${max_supported_idf_version} , "
16+ "but an older version is detected: ${idf_version} ." )
17+ endif ()
18+ if (idf_version VERSION_GREATER max_supported_idf_version)
19+ message (FATAL_ERROR "Arduino-esp32 can be used with ESP-IDF versions "
20+ "between ${min_supported_idf_version} and ${max_supported_idf_version} , "
21+ "but a newer version is detected: ${idf_version} ." )
22+ endif ()
23+ endif ()
24+
125set (CORE_SRCS
226 cores/esp32/base64.cpp
327 cores/esp32/cbuf.cpp
You can’t perform that action at this time.
0 commit comments