@@ -22,6 +22,10 @@ function uncrustify_setup {
22
22
wget https://github.com/uncrustify/uncrustify/archive/refs/tags/uncrustify-0.72.0.tar.gz
23
23
tar -xvf uncrustify-0.72.0.tar.gz
24
24
cd uncrustify-uncrustify-0.72.0
25
+ chmod +x ./scripts/make_option_enum.py
26
+ sed -i -e ' 1s@.*@cmake_minimum_required(VERSION 3.5...4.1)@' \
27
+ -e ' 20s@.*@find_package(Python3 COMPONENTS Interpreter REQUIRED)@' ./CMakeLists.txt
28
+ sed -i ' 1s@.*@cmake_minimum_required(VERSION 3.5...4.1)@' ./tests/CMakeLists.txt
25
29
mkdir build
26
30
cd build
27
31
cmake -DCMAKE_BUILD_TYPE=Release ..
@@ -159,26 +163,26 @@ function ci_esp32_idf522_setup {
159
163
rm -rf esp-idf
160
164
fi
161
165
fi
162
-
166
+ echo " Cloning esp-idf v5.2.2... "
163
167
git clone --depth 1 --branch v5.2.2 https://github.com/espressif/esp-idf.git
164
- git -C esp-idf submodule update --init \
168
+ git -C esp-idf submodule update --init --depth 1 \
165
169
components/bt/host/nimble/nimble \
166
170
components/esp_wifi \
167
171
components/esptool_py/esptool \
168
172
components/lwip/lwip \
169
173
components/mbedtls/mbedtls
170
174
if [ -d esp-idf/components/bt/controller/esp32 ]; then
171
- git -C esp-idf submodule update --init \
175
+ git -C esp-idf submodule update --init --depth 1 \
172
176
components/bt/controller/lib_esp32 \
173
177
components/bt/controller/lib_esp32c3_family
174
178
else
175
- git -C esp-idf submodule update --init \
179
+ git -C esp-idf submodule update --init --depth 1 \
176
180
components/bt/controller/lib
177
181
fi
178
182
./esp-idf/install.sh
179
183
}
180
184
181
- function ci_esp32_idf541_setup {
185
+ function ci_esp32_idf542_setup {
182
186
if [ -d esp-idf ]; then
183
187
echo " esp-idf is already cloned."
184
188
if [ " $( git -C esp-idf describe --tags) " == " v5.4.2" ]; then
@@ -191,7 +195,7 @@ function ci_esp32_idf541_setup {
191
195
fi
192
196
193
197
git clone --depth 1 --branch v5.4.2 https://github.com/espressif/esp-idf.git
194
- git -C esp-idf submodule update --init
198
+ git -C esp-idf submodule update --init --depth 1
195
199
./esp-idf/install.sh
196
200
}
197
201
@@ -312,6 +316,13 @@ function ci_hat_build {
312
316
313
317
314
318
function ci_esp32_nightly_build {
319
+ REQUIRED_VERSION=" 3.28.3"
320
+ CURRENT_VERSION=$( cmake --version | head -n1 | awk ' {print $3}' )
321
+
322
+ if [ " $( printf ' %s\n' " $REQUIRED_VERSION " " $CURRENT_VERSION " | sort -V | head -n1) " != " $REQUIRED_VERSION " ]; then
323
+ echo " ❌ CMake version $CURRENT_VERSION is too old! Require >= $REQUIRED_VERSION "
324
+ exit 1
325
+ fi
315
326
source esp-idf/export.sh
316
327
pip install future
317
328
make ${MAKEOPTS} -C m5stack unpatch
0 commit comments