diff --git a/docs/rust-on-xtensa-installation-aarch64-apple-darwin.md b/docs/rust-on-xtensa-installation-aarch64-apple-darwin.md index e553beb..cfe82b0 100644 --- a/docs/rust-on-xtensa-installation-aarch64-apple-darwin.md +++ b/docs/rust-on-xtensa-installation-aarch64-apple-darwin.md @@ -23,21 +23,21 @@ TOOLCHAIN_DESTINATION_DIR="~/.rustup/toolchains/esp" 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 ./${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 ./${RUST_SRC_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs 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 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 cd rust-esp32-example-main ``` diff --git a/docs/rust-on-xtensa-installation-x86_64-apple-darwin.md b/docs/rust-on-xtensa-installation-x86_64-apple-darwin.md index 36880e4..27ff57c 100644 --- a/docs/rust-on-xtensa-installation-x86_64-apple-darwin.md +++ b/docs/rust-on-xtensa-installation-x86_64-apple-darwin.md @@ -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). Tested OS: macOS Big Sur x64 + ## Prerequisites - rustup - installed with nightly toolchain - https://rustup.rs/ @@ -22,21 +23,21 @@ TOOLCHAIN_DESTINATION_DIR="~/.rustup/toolchains/esp" 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 ./${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 ./${RUST_SRC_DIST}/install.sh --destdir=${TOOLCHAIN_DESTINATION_DIR} --prefix="" --without=rust-docs 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 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 cd rust-esp32-example-main ```