Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 966 Bytes

UBUNTU_BUILD.md

File metadata and controls

42 lines (35 loc) · 966 Bytes

Local development build [Ubuntu Linux / Windows WSL2]

Ensure you have the dependencies.

For windows install WSL2

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Install Python

sudo apt update
sudo apt install python3 python3-pip python3-virtualenv

Setup Python virtual environment and Install PlatformIO

virtualenv -p python3 .venv
source .venv/bin/activate
pip install platformio

Checkout Marlin

git clone [email protected]:MarlinFirmware/Marlin.git Marlin -b bugfix-2.1.x --depth 1

Run build steps

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

Post build cleanup

Optional but helps when getting build errors between different configurations

cd Marlin
git checkout .
git reset --hard
git clean -f
cd ..