forked from espressif/esp32-arduino-lib-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·61 lines (47 loc) · 1.32 KB
/
build.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
#!/bin/bash
if ! [ -x "$(command -v python)" ]; then
echo "ERROR: python is not installed! Please install python first."
exit 1
fi
if ! [ -x "$(command -v git)" ]; then
echo "ERROR: git is not installed! Please install git first."
exit 1
fi
if ! [ -x "$(command -v make)" ]; then
echo "ERROR: Make is not installed! Please install Make first."
exit 1
fi
if ! [ -x "$(command -v flex)" ]; then
echo "ERROR: flex is not installed! Please install flex first."
exit 1
fi
if ! [ -x "$(command -v bison)" ]; then
echo "ERROR: bison is not installed! Please install bison first."
exit 1
fi
if ! [ -x "$(command -v gperf)" ]; then
echo "ERROR: gperf is not installed! Please install gperf first."
exit 1
fi
if ! [ -x "$(command -v stat)" ]; then
echo "ERROR: stat is not installed! Please install stat first."
exit 1
fi
mkdir -p dist
# update components from git
./tools/update-components.sh
if [ $? -ne 0 ]; then exit 1; fi
# install esp-idf and gcc toolchain
source ./tools/install-esp-idf.sh
if [ $? -ne 0 ]; then exit 1; fi
# build and prepare libs
./tools/build-libs.sh
if [ $? -ne 0 ]; then exit 1; fi
# bootloader
./tools/build-bootloaders.sh
if [ $? -ne 0 ]; then exit 1; fi
# archive the build
./tools/archive-build.sh
if [ $? -ne 0 ]; then exit 1; fi
# POST Build
#./tools/copy-to-arduino.sh