Skip to content

Commit 0892775

Browse files
Support --build-target all (#92)
* Add support for --build-target all
1 parent 103b647 commit 0892775

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Instructions for ESP-C series based on RISC-V architecture are described in [RIS
5656

5757
- Linux:
5858
- dependencies (command for Ubuntu/Debian):
59-
59+
6060
```sh
6161
apt-get install -y git curl gcc ninja-build cmake libudev-dev \
6262
python3 python3-pip libusb-1.0-0 libssl-dev pkg-config libtinfo5
@@ -86,7 +86,7 @@ source export-esp-rust.sh
8686
```
8787
8888
#### Arguments
89-
- `-b|--build-target`: Comma separated list of targets [`esp32,esp32s2,esp32s3,esp32c3`]. Defaults to: `esp32,esp32s2,esp32s3`
89+
- `-b|--build-target`: Comma separated list of targets [`esp32,esp32s2,esp32s3,esp32c3,all`]. Defaults to: `esp32,esp32s2,esp32s3`
9090
- `-c|--cargo-home`: Cargo path.
9191
- `-d|--toolchain-destination`: Toolchain instalation folder. Defaults to: `<rustup_home>/toolchains/esp`
9292
- `-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
186186
[toolchain]
187187
channel = "esp"
188188
```
189-
189+
190190
1. Get example source code
191191

192192
```sh

install-rust-toolchain.sh

+4
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ command -v rustup || install_rustup
363363

364364
source_cargo
365365

366+
if [[ "${BUILD_TARGET}" == all ]]; then
367+
BUILD_TARGET="esp32,esp32s2,esp32s3,esp32c3"
368+
fi
369+
366370
# Deploy missing toolchains - Xtensa toolchain should be used on top of these
367371
if [[ "${BUILD_TARGET}" =~ esp32s[2|3] || "${BUILD_TARGET}" =~ esp32[,|\ ] || "${BUILD_TARGET}" =~ esp32$ ]]; then
368372
rustup toolchain list | grep ${NIGHTLY_VERSION} || install_rust_toolchain ${NIGHTLY_VERSION}

0 commit comments

Comments
 (0)