2021-11-04 02:00:19 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# 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
|
|
|
|
|
2021-12-10 04:05:10 +08:00
|
|
|
install_imgtool() {
|
|
|
|
pip install imgtool
|
|
|
|
}
|
|
|
|
|
2021-11-04 02:00:19 +08:00
|
|
|
install_idf() {
|
|
|
|
"${IDF_PATH}"/install.sh
|
|
|
|
}
|
|
|
|
|
2021-12-10 04:05:10 +08:00
|
|
|
install_imgtool
|
2021-11-04 02:00:19 +08:00
|
|
|
install_idf
|