@@ -17,28 +17,28 @@ COPY_OUT=0
17
17
DEPLOY_OUT=0
18
18
19
19
function print_help() {
20
- echo " Usage: build.sh [-s] [-A arduino_branch] [-I idf_branch] [-i idf_commit] [-a path] [-t <target>] [-b <build|menuconfig|idf_libs|copy_bootloader|mem_variant>] [config ...]"
20
+ echo " Usage: build.sh [-s] [-A arduino_branch] [-I idf_branch] [-i idf_commit] [-c path] [-t <target>] [-b <build|menuconfig|idf_libs|copy_bootloader|mem_variant>] [config ...]"
21
21
echo " -s Skip installing/updating of ESP-IDF and all components"
22
22
echo " -A Set which branch of arduino-esp32 to be used for compilation"
23
23
echo " -I Set which branch of ESP-IDF to be used for compilation"
24
24
echo " -i Set which commit of ESP-IDF to be used for compilation"
25
25
echo " -d Deploy the build to github arduino-esp32"
26
- echo " -a Set the arduino-esp32 folder to copy the result to. ex. '$HOME /Arduino/hardware/espressif/esp32'"
26
+ echo " -c Set the arduino-esp32 folder to copy the result to. ex. '$HOME /Arduino/hardware/espressif/esp32'"
27
27
echo " -t Set the build target(chip). ex. 'esp32s3'"
28
28
echo " -b Set the build type. ex. 'build' to build the project and prepare for uploading to a board"
29
29
echo " ... Specify additional configs to be applied. ex. 'qio 80m' to compile for QIO Flash@80MHz. Requires -b"
30
30
exit 1
31
31
}
32
32
33
- while getopts " :A:I:i:a :t:b:sd" opt; do
33
+ while getopts " :A:I:i:c :t:b:sd" opt; do
34
34
case ${opt} in
35
35
s )
36
36
SKIP_ENV=1
37
37
;;
38
38
d )
39
39
DEPLOY_OUT=1
40
40
;;
41
- a )
41
+ c )
42
42
export ESP32_ARDUINO=" $OPTARG "
43
43
COPY_OUT=1
44
44
;;
@@ -111,6 +111,7 @@ rm -rf build sdkconfig out
111
111
112
112
echo $( git -C $AR_COMPS /arduino describe --all --long) > version.txt
113
113
114
+ # targets_count=`jq -c '.targets[] | length' configs/builds.json`
114
115
for target_json in ` jq -c ' .targets[]' configs/builds.json` ; do
115
116
target=$( echo " $target_json " | jq -c ' .target' | tr -d ' "' )
116
117
@@ -136,7 +137,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
136
137
for boot_conf in ` echo " $target_json " | jq -c ' .bootloaders[]' ` ; do
137
138
bootloader_configs=" $main_configs "
138
139
for defconf in ` echo " $boot_conf " | jq -c ' .[]' | tr -d ' "' ` ; do
139
- bootloader_configs=" $bootloader_configs ;configs/defconfig.$defconf "
140
+ bootloader_configs=" $bootloader_configs ;configs/defconfig.$defconf " ;
140
141
done
141
142
echo " * Build BootLoader: $bootloader_configs "
142
143
rm -rf build sdkconfig
@@ -148,7 +149,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
148
149
for mem_conf in ` echo " $target_json " | jq -c ' .mem_variants[]' ` ; do
149
150
mem_configs=" $main_configs "
150
151
for defconf in ` echo " $mem_conf " | jq -c ' .[]' | tr -d ' "' ` ; do
151
- mem_configs=" $mem_configs ;configs/defconfig.$defconf "
152
+ mem_configs=" $mem_configs ;configs/defconfig.$defconf " ;
152
153
done
153
154
echo " * Build Memory Variant: $mem_configs "
154
155
rm -rf build sdkconfig
0 commit comments