-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild_all.sh
executable file
·74 lines (60 loc) · 2.24 KB
/
build_all.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
66
67
68
69
70
71
72
73
74
#!/bin/bash
cd src/
MAKEOPTS="-j$(nproc) -s"
ret=0
STM32_MCU_LIST="F103CB F303CC F303CB"
compile_display()
{
local STM32_MCU=${1}
local DISPLAY=${2}
local DISPVARS=${3}
for DISPVAR in ${DISPVARS}
do
make clean
echo -e "Compiling display ${DISPLAY} ${DISPVAR}"
make ${MAKEOPTS} STM32_MCU=${STM32_MCU} DISPLAY=${DISPLAY} DISPVAR=${DISPVAR} \
|| ret=$((ret + 1))
done
}
for STM32_MCU in ${STM32_MCU_LIST}
do
echo -e "========== Compiling for ${STM32_MCU} =========="
# 160x128 color displays
compile_display ${STM32_MCU} "ILI9163" "8BIT SPI"
compile_display ${STM32_MCU} "S6D0144" "8BIT SPI"
compile_display ${STM32_MCU} "ST7735" "8BIT SPI"
# 176x132 color displays
compile_display ${STM32_MCU} "L2F50126" "SPI"
compile_display ${STM32_MCU} "LPH9157" "SPI"
compile_display ${STM32_MCU} "LS020" "SPI"
compile_display ${STM32_MCU} "SSD1286A" "SPI"
# 220x176 color displays
compile_display ${STM32_MCU} "HX8340" "8BIT SPI"
compile_display ${STM32_MCU} "ILI9225" "8BIT SPI"
compile_display ${STM32_MCU} "LGDP4524" "8BIT SPI"
compile_display ${STM32_MCU} "S6D0164" "8BIT SPI"
# 320x240 color displays
compile_display ${STM32_MCU} "HX8347A" "8BIT SPI"
compile_display ${STM32_MCU} "HX8347D" "8BIT SPI"
compile_display ${STM32_MCU} "ILI9320" "8BIT SPI"
compile_display ${STM32_MCU} "ILI9341" "8BIT SPI"
compile_display ${STM32_MCU} "MC2PA8201" "8BIT SPI"
compile_display ${STM32_MCU} "S6D0129" "8BIT SPI"
compile_display ${STM32_MCU} "S6D0139" "8BIT SPI"
compile_display ${STM32_MCU} "SPFD5408" "8BIT SPI"
compile_display ${STM32_MCU} "SSD1289" "8BIT SPI"
compile_display ${STM32_MCU} "SSD2119" "8BIT SPI"
# 400x240 color displays
compile_display ${STM32_MCU} "ILI9327" "8BIT SPI"
compile_display ${STM32_MCU} "S6D04D1" "8BIT SPI"
compile_display ${STM32_MCU} "ST7793" "8BIT SPI"
# 480x320 color displays
compile_display ${STM32_MCU} "HX8357C" "8BIT SPI"
compile_display ${STM32_MCU} "ILI9481" "8BIT SPI"
compile_display ${STM32_MCU} "ILI9486" "8BIT SPI"
compile_display ${STM32_MCU} "R61581" "8BIT SPI"
compile_display ${STM32_MCU} "RM68140" "8BIT SPI"
compile_display ${STM32_MCU} "ST7796S" "8BIT SPI"
done
make clean
exit $ret