Updated Compiling esp32 port with docker (markdown)

Andrew Leech
2024-07-25 14:06:18 +10:00
parent 7ce0927869
commit a90208be01

@@ -5,13 +5,13 @@ This script can be used as a wrapper to automate the process of running the comp
If you're using Windows/WSL2 and want to flash the board directly the [WSL USB Manager](https://gitlab.com/alelec/wsl-usb-gui#wsl-usb-manager) tool can simplify connecting your usb devices through to WSL.
``` bash
cat << "EOF" > ~/.local/bin
cat << "EOF" > ~/.local/bin/esp-compile
#!/bin/bash
SCRIPTPATH=$(readlink --canonicalize-existing "${BASH_SOURCE[0]}")
# Wrapper script to build / flash esp32 boards inside the official ESP IDF docker container
# Usage: esp-compile <IDF_VER> <BOARD> <port to deploy>
# Examples
# esp-compile <IDF_VER> <BOARD> <port to deploy>
# esp-compile v5.0.4 ESP32_GENERIC /dev/ttyACM0
# esp-compile v5.2.2 ESP32_GENERIC
# esp-compile v5.2.2 ESP32_GENERIC_C3 /dev/ttyACM0
@@ -74,5 +74,5 @@ fi # end of build
fi # end of user
fi # end of container
EOF
chmod +x ~/.local/bin
chmod +x ~/.local/bin/esp-compile
```