-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.sh
More file actions
executable file
·38 lines (33 loc) · 791 Bytes
/
make.sh
File metadata and controls
executable file
·38 lines (33 loc) · 791 Bytes
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
d="$(dirname $(readlink -f $0))"
#source $d/venv/bin/activate
#export ESPIDF=$d/esp-idf
#export PATH="$d/toolchain/xtensa-esp32-elf/bin:$PATH"
#export IDF_PATH="$d/esp-idf"
#cd $d/micropython/mpy-cross
#make
#cd $d/micropython/ports/esp32
#source $d/esp-idf/export.sh
#make USER_C_MODULES=../../../st7789_mpy/ all
source $d/esp-idf/export.sh
if [ "$1" = "clean" ]
then
cd $d/micropython/ports/esp32
make clean
exit 0
fi
if [ "$1" = "erase" ]
then
cd $d/micropython/ports/esp32
make erase
exit 0
fi
if [ "$1" = "deploy" ]
then
cd $d/micropython/ports/esp32
make deploy
exit 0
fi
cd $d/micropython/mpy-cross
make
cd $d/micropython/ports/esp32
make USER_C_MODULES=/home/stsc/bikecomputer5/bikecomputer/micropython/examples/usercmodule/micropython.cmake