forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathci_lolin.sh
More file actions
executable file
·44 lines (36 loc) · 1.35 KB
/
Copy pathci_lolin.sh
File metadata and controls
executable file
·44 lines (36 loc) · 1.35 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
#!/bin/bash
if which nproc > /dev/null; then
MAKEOPTS="-j$(nproc)"
else
MAKEOPTS="-j$(sysctl -n hw.ncpu)"
fi
function ci_lolin_build {
source esp-idf/export.sh
make ${MAKEOPTS} -C mpy-cross
make ${MAKEOPTS} -C ports/esp32 submodules
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_C3_MINI
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S2_MINI
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S2_PICO
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S3
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_C3_PICO
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_D32
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_D32_PRO
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S3_PRO
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S3_MINI
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S3_MINI_PRO_GC9A01
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_S3_MINI_PRO_ST7789
make ${MAKEOPTS} -C ports/esp32 BOARD=LOLIN_C5
}
function ci_esp8266_build {
make ${MAKEOPTS} -C mpy-cross
make ${MAKEOPTS} -C ports/esp8266 submodules
make ${MAKEOPTS} -C ports/esp8266 BOARD=LOLIN_D1_MINI
}
function ci_gc9a01_mpy_setup {
git clone https://github.com/wemos/gc9a01_mpy.git ../gc9a01_mpy
# find ~/ -name "gc9a01*"
# find ~/ -name "micropython"
}
function ci_st7789_mpy_setup {
git clone https://github.com/wemos/st7789_mpy.git ../st7789_mpy
}