Skip to content

Commit b894230

Browse files
committed
build: optimize Espressif IDF installation process
Removed unnecessary git submodule update command and streamlined the installation process for the Espressif IDF. This change improves the efficiency of the setup script. Signed-off-by: Chiho Sin <[email protected]>
1 parent ddad15c commit b894230

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

entrypoint.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,24 @@ git repack -d
2323
pip3 install --upgrade -r requirements-dev.txt
2424
pip3 install --upgrade -r requirements-doc.txt
2525

26+
make -j"${JOBS}" -C mpy-cross
27+
make -C ports/"${CPY_PORT}" fetch-port-submodules
28+
2629
# Espressif IDF
2730
if [[ ${CPY_PORT} == "espressif" ]]; then
2831
export IDF_PATH=/workspace/ports/espressif/esp-idf
29-
git submodule update --init --depth=1 --recursive ${IDF_PATH}
3032
export IDF_TOOLS_PATH=/workspace/.idf_tools
3133
export ESP_ROM_ELF_DIR=/workspace/.idf_tools
32-
/workspace/ports/espressif/esp-idf/install.sh
34+
/workspace/ports/espressif/esp-idf/install.sh > /dev/null 2>&1
3335
# trunk-ignore(shellcheck/SC1091)
3436
source "${IDF_PATH}/export.sh"
3537
pip3 install --upgrade minify-html jsmin sh requests-cache
3638
fi
3739

38-
make -j"${JOBS}" -C mpy-cross
39-
make -C ports/"${CPY_PORT}" fetch-port-submodules
40-
4140
FW_DATE=$(date '+%Y%m%d')
4241
FW_TAG="-${FW_DATE}-$(python3 py/version.py)"
4342
echo "Repository firmware CircuitPython version: ${FW_TAG}"
4443

45-
4644
# Build
4745
echo "Build ${CPY_PORT} firmware: ${BOARD}"
4846
mkdir -p "${WORKSPACE}/bin"

0 commit comments

Comments
 (0)