1#!/usr/bin/env bash 2# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD 3# SPDX-License-Identifier: Apache-2.0 4 5SCRIPT_ROOTDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")") 6MCUBOOT_ROOTDIR=$(realpath "${SCRIPT_ROOTDIR}/..") 7ESPRESSIF_ROOT="${MCUBOOT_ROOTDIR}/boot/espressif" 8IDF_PATH="${ESPRESSIF_ROOT}/hal/esp-idf" 9 10set -eo pipefail 11 12install_imgtool() { 13 pip install imgtool 14} 15 16install_idf() { 17 "${IDF_PATH}"/install.sh 18} 19 20install_imgtool 21install_idf 22