Docs: Use curl instead on wget on macOS (#29)
* docs: use curl instead of wget on macos
This commit is contained in:
parent
a7282ddbaa
commit
ac29fec42d
|
|
@ -23,21 +23,21 @@ TOOLCHAIN_DESTINATION_DIR="~/.rustup/toolchains/esp"
|
||||||
|
|
||||||
mkdir -p ${TOOLCHAIN_DESTINATION_DIR}
|
mkdir -p ${TOOLCHAIN_DESTINATION_DIR}
|
||||||
|
|
||||||
wget "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/${RUST_DIST}.tar.xz"
|
curl -O "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/${RUST_DIST}.tar.xz"
|
||||||
tar xvf ${RUST_DIST}.tar.xz
|
tar xvf ${RUST_DIST}.tar.xz
|
||||||
./${RUST_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
./${RUST_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
||||||
|
|
||||||
wget "https://dl.espressif.com/dl/idf-rust/dist/noarch/${RUST_SRC_DIST}.tar.xz"
|
curl -O "https://dl.espressif.com/dl/idf-rust/dist/noarch/${RUST_SRC_DIST}.tar.xz"
|
||||||
tar xvf ${RUST_SRC_DIST}.tar.xz
|
tar xvf ${RUST_SRC_DIST}.tar.xz
|
||||||
./${RUST_SRC_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
./${RUST_SRC_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
||||||
|
|
||||||
rustup default esp
|
rustup default esp
|
||||||
|
|
||||||
wget --continue "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/xtensa-esp32-elf-llvm11_0_0-aarch64-apple-darwin.tar.xz"
|
curl -O "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/xtensa-esp32-elf-llvm11_0_0-aarch64-apple-darwin.tar.xz"
|
||||||
tar xf xtensa-esp32-elf-llvm11_0_0-aarch64-apple-darwin.tar.xz
|
tar xf xtensa-esp32-elf-llvm11_0_0-aarch64-apple-darwin.tar.xz
|
||||||
export PATH="`pwd`/xtensa-esp32-elf-clang/bin/:$PATH"
|
export PATH="`pwd`/xtensa-esp32-elf-clang/bin/:$PATH"
|
||||||
|
|
||||||
wget --continue https://github.com/espressif/rust-esp32-example/archive/refs/heads/main.zip
|
curl -LO "https://github.com/espressif/rust-esp32-example/archive/refs/heads/main.zip"
|
||||||
unzip main.zip
|
unzip main.zip
|
||||||
cd rust-esp32-example-main
|
cd rust-esp32-example-main
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ Following instructions are specific for ESP32 and ESP32-S series based on Xtensa
|
||||||
Instructions for ESP-C series based on RISC-V architecture are described in document for [ESP32-C3](../README.md#esp32-c3).
|
Instructions for ESP-C series based on RISC-V architecture are described in document for [ESP32-C3](../README.md#esp32-c3).
|
||||||
|
|
||||||
Tested OS: macOS Big Sur x64
|
Tested OS: macOS Big Sur x64
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- rustup - installed with nightly toolchain - https://rustup.rs/
|
- rustup - installed with nightly toolchain - https://rustup.rs/
|
||||||
|
|
@ -22,21 +23,21 @@ TOOLCHAIN_DESTINATION_DIR="~/.rustup/toolchains/esp"
|
||||||
|
|
||||||
mkdir -p ${TOOLCHAIN_DESTINATION_DIR}
|
mkdir -p ${TOOLCHAIN_DESTINATION_DIR}
|
||||||
|
|
||||||
wget "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/${RUST_DIST}.tar.xz"
|
curl -O "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/${RUST_DIST}.tar.xz"
|
||||||
tar xvf ${RUST_DIST}.tar.xz
|
tar xvf ${RUST_DIST}.tar.xz
|
||||||
./${RUST_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
./${RUST_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
||||||
|
|
||||||
wget "https://dl.espressif.com/dl/idf-rust/dist/noarch/${RUST_SRC_DIST}.tar.xz"
|
curl -O "https://dl.espressif.com/dl/idf-rust/dist/noarch/${RUST_SRC_DIST}.tar.xz"
|
||||||
tar xvf ${RUST_SRC_DIST}.tar.xz
|
tar xvf ${RUST_SRC_DIST}.tar.xz
|
||||||
./${RUST_SRC_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
./${RUST_SRC_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs
|
||||||
|
|
||||||
rustup default esp
|
rustup default esp
|
||||||
|
|
||||||
wget "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/xtensa-esp32-elf-llvm11_0_0-x86_64-apple-darwin.tar.xz"
|
curl -O "https://dl.espressif.com/dl/idf-rust/dist/${ARCH}/xtensa-esp32-elf-llvm11_0_0-x86_64-apple-darwin.tar.xz"
|
||||||
tar xf xtensa-esp32-elf-llvm11_0_0-x86_64-apple-darwin.tar.xz
|
tar xf xtensa-esp32-elf-llvm11_0_0-x86_64-apple-darwin.tar.xz
|
||||||
export PATH="`pwd`/xtensa-esp32-elf-clang/bin/:$PATH"
|
export PATH="`pwd`/xtensa-esp32-elf-clang/bin/:$PATH"
|
||||||
|
|
||||||
wget --continue https://github.com/espressif/rust-esp32-example/archive/refs/heads/main.zip
|
curl -LO "https://github.com/espressif/rust-esp32-example/archive/refs/heads/main.zip"
|
||||||
unzip main.zip
|
unzip main.zip
|
||||||
cd rust-esp32-example-main
|
cd rust-esp32-example-main
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue