File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ source $FW_TARGETDIR/venv/bin/activate
88export IDF_TOOLS_PATH=$FW_TARGETDIR /toolchain/espressif
99export IDF_PATH=$FW_TARGETDIR /toolchain/esp-idf
1010
11+ # ESP-IDF v4.1 vendors third-party trees (mbedtls) whose cmake_minimum_required
12+ # predates 3.5, which CMake 4 rejects outright. Restore the old floor until the
13+ # pinned ESP-IDF is bumped.
14+ export CMAKE_POLICY_VERSION_MINIMUM=3.5
15+
1116eval $( python3 $FW_TARGETDIR /toolchain/esp-idf/tools/idf_tools.py export --prefer-system)
1217
1318. $IDF_PATH /export.sh
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ UROS_APP_FOLDER="$FW_TARGETDIR/freertos_apps/apps/$UROS_APP"
5757export IDF_TOOLS_PATH=$FW_TARGETDIR /toolchain/espressif
5858export IDF_PATH=$FW_TARGETDIR /toolchain/esp-idf
5959
60+ # ESP-IDF v4.1 vendors third-party trees (mbedtls) whose cmake_minimum_required
61+ # predates 3.5, which CMake 4 rejects outright. Restore the old floor until the
62+ # pinned ESP-IDF is bumped.
63+ export CMAKE_POLICY_VERSION_MINIMUM=3.5
64+
6065eval $( python3 $FW_TARGETDIR /toolchain/esp-idf/tools/idf_tools.py export --prefer-system)
6166
6267. $IDF_PATH /export.sh
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ pushd $FW_TARGETDIR >/dev/null
99 export ZEPHYR_SDK_INSTALL_DIR=$FW_TARGETDIR /zephyr-sdk
1010 export PATH=~ /.local/bin:" $PATH "
1111
12+ # Zephyr v2.6.0 vendors third-party modules (civetweb) whose
13+ # cmake_minimum_required predates 3.5, which CMake 4 rejects outright.
14+ # Restore the old floor until the pinned Zephyr is bumped.
15+ export CMAKE_POLICY_VERSION_MINIMUM=3.5
16+
1217
1318 # Retrieve user app
1419 unset UROS_APP
You can’t perform that action at this time.
0 commit comments