ci: espressif: update CI after the IDF submodule remove

Update the script for cloning and installing Espressif IDF needed
for building MCUboot Espressif's port on CI.

Signed-off-by: Almir Okato <almir.okato@espressif.com>
This commit is contained in:
Almir Okato 2023-05-05 15:50:28 -03:00 committed by almir-okato
parent 54ef484afa
commit b91485a387
2 changed files with 10 additions and 8 deletions

View File

@ -2,11 +2,6 @@
# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
SCRIPT_ROOTDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
MCUBOOT_ROOTDIR=$(realpath "${SCRIPT_ROOTDIR}/..")
ESPRESSIF_ROOT="${MCUBOOT_ROOTDIR}/boot/espressif"
IDF_PATH="${ESPRESSIF_ROOT}/hal/esp-idf"
set -eo pipefail
install_imgtool() {
@ -14,7 +9,14 @@ install_imgtool() {
}
install_idf() {
"${IDF_PATH}"/install.sh
pushd $HOME
git clone --depth=1 https://github.com/espressif/esp-idf.git --branch release/v5.1
[[ $? -ne 0 ]] && exit 1
$HOME/esp-idf/install.sh
[[ $? -ne 0 ]] && exit 1
popd
}
install_imgtool

View File

@ -5,7 +5,7 @@
SCRIPT_ROOTDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
MCUBOOT_ROOTDIR=$(realpath "${SCRIPT_ROOTDIR}/..")
ESPRESSIF_ROOT="${MCUBOOT_ROOTDIR}/boot/espressif"
IDF_PATH="${ESPRESSIF_ROOT}/hal/esp-idf"
IDF_PATH="${HOME}/esp-idf"
set -eo pipefail
@ -38,7 +38,7 @@ build_mcuboot() {
cmake -DCMAKE_TOOLCHAIN_FILE="${toolchain_file}" \
-DMCUBOOT_TARGET="${target}" \
-DMCUBOOT_CONFIG_FILE="${mcuboot_config}" \
-DIDF_PATH="${IDF_PATH}" \
-DESP_HAL_PATH="${IDF_PATH}" \
-B "${build_dir}" \
"${ESPRESSIF_ROOT}"
cmake --build "${build_dir}"/