Add build system

This commit is contained in:
August 2026-10-03 19:42:10 -04:00
parent 75a3906ed4
commit 67d8bbc160
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw
7 changed files with 8839 additions and 13 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Marlin
output

View File

@ -0,0 +1,5 @@
name="Creality Ender 3 Pro"
board="BigTreeTech SKR Mini E3 3.0"
config_version="0.1.0"
pio_env="STM32G0B1RE_btt"
fw_ext="bin"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
name="FLSUN Kossel"
board="MakerBase MKS Gen L"
config_version="0.1.0"
pio_env="mega2560"
fw_ext="hex"

View File

@ -10,22 +10,22 @@ This is a set of Marlin configuration files for my modified 3D printers.
## Printers
### Creality Ender 3 Pro BigTreeTech SKR Mini E3 3.0
### [Creality/Ender 3 Pro/BigTreeTech SKR Mini E3 3.0](Configs/Creality/Ender-3%20Pro/BigTreeTech%20SKR%20Mini%20E3%203.0/)
Modifications include:
- A filament runout sensor
- A BLtouch bed leveling probe
- A BigTreeTech SKR Mini E3 3.0 mainboard
### FLSun Kossel Mini MakerBase MKS Gen L V1.0
## Building
TODO
### [FLSUN Kossel MakerBase MKS Gen L](/Configs/FLSUN/Kossel/MakerBase%20MKS%20Gen%20L/)
Modifications include:
- None
## Building
Run the included build script with one argument, which is the `printer.env` file in the relevant config dir.
## Reuse
Feel free to use these configurations on your own printer, but only if it is the same exact printer with the same exact mainboard.

View File

@ -1,14 +1,47 @@
#!/usr/bin/env bash
set -uexo
set -ueo pipefail
git clone https://github.com/MarlinFirmware/Marlin --depth 1 || true
if (( $# != 1 )); then
echo "Invalid CLI args."
echo "Usage:"
echo "./build.sh path/to/printer.env"
exit 1
fi
cp "Configs/Creality/Ender-3 Pro/BigTreeTech SKR Mini E3 3.0/"* Marlin/Marlin/
rm -f Marlin/config/*
if ! [ -f "$1" ]; then
echo "Printer env file not found."
echo "Path: $1"
exit 1
fi
echo "Printer env file found: $1"
echo -n "Loading config variables... "
source "$1"
echo "OK"
filename="fw-${name// /_}-${board// /_}-ver$config_version.$fw_ext"
echo "Artifact name will be: ""$filename"""
if ! [ -d Marlin ]; then
git clone https://github.com/MarlinFirmware/Marlin --depth 1
cd Marlin
pio run -e STM32G0B1RE_btt
else
cd Marlin
git pull
fi
echo -n "Copying custom config files... "
cp "../$(dirname "$1")"/*.h Marlin/
echo "OK"
echo "Running PlatformIO build!"
pio run -e "$pio_env"
echo -n "Finished building. Copying firmware."$fw_ext"... "
mkdir -p ../output
cp .pio/build/"$pio_env"/firmware.$fw_ext ../output/"$filename"
echo "OK"
cd ..
cp Marlin/.pio/build/STM32G0B1RE_btt/firmware.bin ..