forked from rhapsodyv/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all-chitu.sh
executable file
·66 lines (59 loc) · 1.34 KB
/
build-all-chitu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
UI=(
TFT_COLOR_UI
TFT_CLASSIC_UI
TFT_LVGL_UI
)
CONFIGS=(
S_CURVE_ACCELERATION
LIN_ADVANCE
CLASSIC_JERK
CLASSIC_JERK+LIN_ADVANCE
)
# LIN_ADVANCE+S_CURVE_ACCELERATION
MACHINES=(V6_330_TITAN_TMC
V6_330_TITAN_NO_TMC
V6_330_NO_TITAN_TMC
V6_330_NO_TITAN_NO_TMC
V6_400_TITAN_TMC
V6_400_NO_TITAN_TMC
V6_500_TITAN_TMC
V5_330_TITAN_TMC
V5_330_TITAN_NO_TMC
V5_330_NO_TITAN_TMC
V5_330_NO_TITAN_NO_TMC
XY3_V5_310_NO_TITAN_NO_TMC_NO_ABL
XY2_V6_255_NO_TITAN_TMC
XY2_V6_255_TITAN_TMC
XY2_V6_255_BMG_TMC
XY2_V6_255M_BMG_TMC
XY2_V5_255_NO_TITAN_TMC
XY2_V5_255_TITAN_TMC
XY2_V5_255_TITAN_NO_TMC
XY2_V5_255_NO_TITAN_NO_TMC
XY2_V5_220_NO_TITAN_TMC
XY2_V5_220_TITAN_TMC
XY2_V5_220_NO_TITAN_NO_TMC
XY2_V5_220_TITAN_NO_TMC
XY3_V5_330_NO_TITAN_TMC_NO_ABL
D01_V8_220_TITAN_TMC_NO_ABL
)
OUTPUT_FOLDER="./Marlin-TronXY"
rm -rf $OUTPUT_FOLDER
for ui in ${UI[@]}; do
printf "UI $ui...\n"
for m in ${MACHINES[@]}; do
printf " Building $m...\n"
for f in ${CONFIGS[@]}; do
#clean!
rm -rf .pio/build/chitu_v5_gpio_init
DEFINES="-D$m -D$ui -D"`echo $f | sed "s/+/ -D/g"`
printf " Config $f..."
FOLDER="$OUTPUT_FOLDER/$ui/$m/$f/"
mkdir -p $FOLDER
PLATFORMIO_BUILD_FLAGS="$DEFINES" platformio run > /dev/null 2>&1
cp .pio/build/chitu_v5_gpio_init/update.cbd $FOLDER
printf " done\n"
done;
done;
done;