Ensure you have the dependencies.
https://docs.microsoft.com/en-us/windows/wsl/install-win10
sudo apt update
sudo apt install python3 python3-pip python3-virtualenv
virtualenv -p python3 .venv
source .venv/bin/activate
pip install platformio
git clone [email protected]:MarlinFirmware/Marlin.git Marlin -b bugfix-2.1.x --depth 1
For each machine you want to target, replace V1CNC_ConfigName with the machine config. (eg. V1CNC_SkrPro_DualLR_2209
)
source .venv/bin/activate
src/core/config-for-machine V1CNC_ConfigName
src/core/build-for-machine
Optional but helps when getting build errors between different configurations
cd Marlin
git checkout .
git reset --hard
git clean -f
cd ..