@@ -10,41 +10,6 @@ if ! [ -x "$(command -v git)" ]; then
1010 exit 1
1111fi
1212
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-
4813mkdir -p dist
4914
5015# update components from git
@@ -55,17 +20,27 @@ if [ $? -ne 0 ]; then exit 1; fi
5520source ./tools/install-esp-idf.sh
5621if [ $? -ne 0 ]; then exit 1; fi
5722
58- # build and prepare libs
59- ./tools/build-libs.sh
60- if [ $? -ne 0 ]; then exit 1; fi
23+ TARGETS=" esp32s2 esp32"
6124
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
6541
6642# archive the build
6743./tools/archive-build.sh
6844if [ $? -ne 0 ]; then exit 1; fi
6945
70- # POST Build
7146# ./tools/copy-to-arduino.sh
0 commit comments