From f1cab7c88321e262f81b028eb9885ee4654d8d45 Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Wed, 15 Nov 2023 17:12:30 +0100 Subject: [PATCH 1/2] fix: Fix repo path --- rust-training-esp32c3/compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-training-esp32c3/compile.sh b/rust-training-esp32c3/compile.sh index 7f34e87..1e16133 100755 --- a/rust-training-esp32c3/compile.sh +++ b/rust-training-esp32c3/compile.sh @@ -35,7 +35,7 @@ if [ -f ${HOME}/build-in/Cargo.toml ]; then exit 1 ;; esac - cd espressif-trainings/${PROJECT_PATH} + cd std-training/${PROJECT_PATH} cp ${HOME}/build-in/Cargo.toml Cargo.toml fi From ad8787e666580758c0daeef71f1353610d759d3e Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Fri, 17 Nov 2023 10:04:45 +0100 Subject: [PATCH 2/2] feat: Setup environment --- rust-training-esp32c3/fetch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rust-training-esp32c3/fetch.sh b/rust-training-esp32c3/fetch.sh index 579cafe..401bb97 100755 --- a/rust-training-esp32c3/fetch.sh +++ b/rust-training-esp32c3/fetch.sh @@ -2,6 +2,11 @@ set -ef +export IDF_PATH="/home/esp/.espressif/frameworks/esp-idf" +export IDF_TOOLS_PATH=/home/esp/.espressif +. /home/esp/.espressif/frameworks/esp-idf/export.sh +export ESP_IDF_TOOLS_INSTALL_DIR=fromenv + echo "Compiling $1" cd /home/esp/std-training/$1 @@ -17,5 +22,4 @@ if [ -f cfg.toml.example ]; then sed -i 's/mqtt_host = "yourpc.local"/mqtt_host = "host"/g' cfg.toml fi -$HOME/.cargo/bin/cargo clean $HOME/.cargo/bin/cargo build --release