diff --git a/README.md b/README.md index 7eb1d246..9bcca153 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Instructions for ESP-C series based on RISC-V architecture are described in [RIS - Linux: - dependencies (command for Ubuntu/Debian): - + ```sh apt-get install -y git curl gcc ninja-build cmake libudev-dev \ python3 python3-pip libusb-1.0-0 libssl-dev pkg-config libtinfo5 @@ -86,7 +86,7 @@ source export-esp-rust.sh ``` #### Arguments -- `-b|--build-target`: Comma separated list of targets [`esp32,esp32s2,esp32s3,esp32c3`]. Defaults to: `esp32,esp32s2,esp32s3` +- `-b|--build-target`: Comma separated list of targets [`esp32,esp32s2,esp32s3,esp32c3,all`]. Defaults to: `esp32,esp32s2,esp32s3` - `-c|--cargo-home`: Cargo path. - `-d|--toolchain-destination`: Toolchain instalation folder. Defaults to: `/toolchains/esp` - `-e|--extra-crates`: Extra crates to install. Defaults to: `ldproxy cargo-espflash` @@ -186,7 +186,7 @@ When building for Xtensa targets, we need to [override the `esp` toolchain](http [toolchain] channel = "esp" ``` - + 1. Get example source code ```sh diff --git a/install-rust-toolchain.sh b/install-rust-toolchain.sh index 4371010f..aa00a1cc 100755 --- a/install-rust-toolchain.sh +++ b/install-rust-toolchain.sh @@ -363,6 +363,10 @@ command -v rustup || install_rustup source_cargo +if [[ "${BUILD_TARGET}" == all ]]; then + BUILD_TARGET="esp32,esp32s2,esp32s3,esp32c3" +fi + # Deploy missing toolchains - Xtensa toolchain should be used on top of these if [[ "${BUILD_TARGET}" =~ esp32s[2|3] || "${BUILD_TARGET}" =~ esp32[,|\ ] || "${BUILD_TARGET}" =~ esp32$ ]]; then rustup toolchain list | grep ${NIGHTLY_VERSION} || install_rust_toolchain ${NIGHTLY_VERSION}