forked from MicroPythonOS/MicroPythonOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_all.sh
More file actions
executable file
·56 lines (48 loc) · 2.06 KB
/
build_all.sh
File metadata and controls
executable file
·56 lines (48 loc) · 2.06 KB
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
builddir=../lvgl_micropython/build
outdir=../build_outputs/
updatesdir=../updates/
buildfile="$builddir"/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin
updatefile=../lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin
version=$(grep CURRENT_OS_VERSION internal_filesystem/lib/mpos/info.py | cut -d "=" -f 2 | tr -d " " | tr -d '"')
overwrite="$1"
if [ "$overwrite" != "--overwrite" ] && ls "$outdir"/*"$version"* 2>/dev/null; then
echo "WARNING: $version already exists, use --overwrite to overwrite it"
exit 1
fi
./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 prod fri3d-2024 got error: $result"
exit 1
fi
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_prod_"$version".bin
cp "$updatefile" "$updatesdir"/MicroPythonOS_fri3d-2024_prod_"$version".ota
./scripts/build_lvgl_micropython.sh esp32 dev fri3d-2024
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 dev fri3d-2024 got error: $result"
exit 1
fi
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_dev_"$version".bin
./scripts/build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2 got error: $result"
exit 1
fi
cp "$buildfile" "$outdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_"$version".bin
cp "$updatefile" "$updatesdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_"$version".ota
./scripts/build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2 got error: $result"
exit 1
fi
cp "$buildfile" "$outdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_dev_"$version".bin
./scripts/build_lvgl_micropython.sh unix dev
cp "$builddir"/lvgl_micropy_unix "$outdir"/MicroPythonOS_amd64_linux_"$version".elf
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 unix dev got error: $result"
exit 1
fi