Add build system
This commit is contained in:
parent
75a3906ed4
commit
67d8bbc160
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
Marlin
|
Marlin
|
||||||
|
output
|
||||||
@ -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"
|
||||||
3849
Configs/FLSUN/Kossel/MakerBase MKS Gen L/Configuration.h
Normal file
3849
Configs/FLSUN/Kossel/MakerBase MKS Gen L/Configuration.h
Normal file
File diff suppressed because it is too large
Load Diff
4933
Configs/FLSUN/Kossel/MakerBase MKS Gen L/Configuration_adv.h
Normal file
4933
Configs/FLSUN/Kossel/MakerBase MKS Gen L/Configuration_adv.h
Normal file
File diff suppressed because it is too large
Load Diff
5
Configs/FLSUN/Kossel/MakerBase MKS Gen L/printer.env
Normal file
5
Configs/FLSUN/Kossel/MakerBase MKS Gen L/printer.env
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name="FLSUN Kossel"
|
||||||
|
board="MakerBase MKS Gen L"
|
||||||
|
config_version="0.1.0"
|
||||||
|
pio_env="mega2560"
|
||||||
|
fw_ext="hex"
|
||||||
12
README.md
12
README.md
@ -10,22 +10,22 @@ This is a set of Marlin configuration files for my modified 3D printers.
|
|||||||
|
|
||||||
## 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:
|
Modifications include:
|
||||||
- A filament runout sensor
|
- A filament runout sensor
|
||||||
- A BLtouch bed leveling probe
|
- A BLtouch bed leveling probe
|
||||||
- A BigTreeTech SKR Mini E3 3.0 mainboard
|
- A BigTreeTech SKR Mini E3 3.0 mainboard
|
||||||
|
|
||||||
### FLSun Kossel Mini MakerBase MKS Gen L V1.0
|
### [FLSUN Kossel MakerBase MKS Gen L](/Configs/FLSUN/Kossel/MakerBase%20MKS%20Gen%20L/)
|
||||||
|
|
||||||
## Building
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
Modifications include:
|
Modifications include:
|
||||||
- None
|
- None
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Run the included build script with one argument, which is the `printer.env` file in the relevant config dir.
|
||||||
|
|
||||||
## Reuse
|
## 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.
|
Feel free to use these configurations on your own printer, but only if it is the same exact printer with the same exact mainboard.
|
||||||
|
|||||||
47
build.sh
47
build.sh
@ -1,14 +1,47 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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/
|
if ! [ -f "$1" ]; then
|
||||||
rm -f Marlin/config/*
|
echo "Printer env file not found."
|
||||||
|
echo "Path: $1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cd Marlin
|
echo "Printer env file found: $1"
|
||||||
pio run -e STM32G0B1RE_btt
|
|
||||||
|
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
|
||||||
|
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 ..
|
cd ..
|
||||||
|
|
||||||
cp Marlin/.pio/build/STM32G0B1RE_btt/firmware.bin ..
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user