@@ -10,41 +10,6 @@ if ! [ -x "$(command -v git)" ]; then
10
10
exit 1
11
11
fi
12
12
13
- if ! [ -x " $( command -v make) " ]; then
14
- echo " ERROR: Make is not installed! Please install Make first."
15
- exit 1
16
- fi
17
-
18
- if ! [ -x " $( command -v flex) " ]; then
19
- echo " ERROR: flex is not installed! Please install flex first."
20
- exit 1
21
- fi
22
-
23
- if ! [ -x " $( command -v bison) " ]; then
24
- echo " ERROR: bison is not installed! Please install bison first."
25
- exit 1
26
- fi
27
-
28
- if ! [ -x " $( command -v gperf) " ]; then
29
- echo " ERROR: gperf is not installed! Please install gperf first."
30
- exit 1
31
- fi
32
-
33
- if ! [ -x " $( command -v stat) " ]; then
34
- echo " ERROR: stat is not installed! Please install stat first."
35
- exit 1
36
- fi
37
-
38
- awk=" awk"
39
- if [[ " $OSTYPE " == " darwin" * ]]; then
40
- awk=" gawk"
41
- fi
42
-
43
- if ! [ -x " $( command -v $awk ) " ]; then
44
- echo " ERROR: $awk is not installed! Please install $awk first."
45
- exit 1
46
- fi
47
-
48
13
mkdir -p dist
49
14
50
15
# update components from git
@@ -55,17 +20,27 @@ if [ $? -ne 0 ]; then exit 1; fi
55
20
source ./tools/install-esp-idf.sh
56
21
if [ $? -ne 0 ]; then exit 1; fi
57
22
58
- # build and prepare libs
59
- ./tools/build-libs.sh
60
- if [ $? -ne 0 ]; then exit 1; fi
23
+ TARGETS=" esp32s2 esp32"
61
24
62
- # bootloader
63
- ./tools/build-bootloaders.sh
64
- if [ $? -ne 0 ]; then exit 1; fi
25
+ echo $( git -C $AR_COMPS /arduino describe --all --long) > version.txt
26
+
27
+ rm -rf out build sdkconfig sdkconfig.old
28
+
29
+ for target in $TARGETS ; do
30
+ # configure the build for the target
31
+ rm -rf build sdkconfig sdkconfig.old
32
+ cp " sdkconfig.$target " sdkconfig
33
+ # build and prepare libs
34
+ idf.py build
35
+ if [ $? -ne 0 ]; then exit 1; fi
36
+ cp sdkconfig " sdkconfig.$target "
37
+ # build bootloaders
38
+ ./tools/build-bootloaders.sh
39
+ if [ $? -ne 0 ]; then exit 1; fi
40
+ done
65
41
66
42
# archive the build
67
43
./tools/archive-build.sh
68
44
if [ $? -ne 0 ]; then exit 1; fi
69
45
70
- # POST Build
71
46
# ./tools/copy-to-arduino.sh
0 commit comments