@@ -112,26 +112,30 @@ echo "TARGET(s): ${TARGET[@]}"
112
112
113
113
mkdir -p dist
114
114
rm -f " log_*.txt" # remove old log files if any exists
115
+ touch log_errors.txt && touch log_instEnviroment.txt && touch log_idfBuild.txt && touch log_pythonBuild.txt
115
116
116
117
if [ $SKIP_ENV -eq 0 ]; then
117
118
echo " * Installing/Updating ESP-IDF and all components..."
118
119
# update components from git
119
- ./tools/update-components.sh >> log_instEnviroment.txt
120
+ osascript -e ' tell application "Terminal" to do script "tail -n 20 -f ' $( realpath log_errors.txt) ' "'
121
+ osascript -e ' tell application "Terminal" to do script "tail -n 20 -f ' $( realpath log_instEnviroment.txt) ' "'
122
+ ./tools/update-components.sh 1>> log_instEnviroment.txt 2>> log_errors.txt
120
123
if [ $? -ne 0 ]; then exit 1; fi
121
124
122
125
# install arduino component
123
- ./tools/install-arduino.sh >> log_instEnviroment.txt
126
+ ./tools/install-arduino.sh 1 >> log_instEnviroment.txt 2>> log_errors .txt
124
127
if [ $? -ne 0 ]; then exit 1; fi
125
128
126
129
# install esp-idf
127
- source ./tools/install-esp-idf.sh >> log_instEnviroment.txt
130
+ source ./tools/install-esp-idf.sh 1 >> log_instEnviroment.txt 2>> log_errors .txt
128
131
if [ $? -ne 0 ]; then exit 1; fi
129
132
else
130
133
# $IDF_PATH/install.sh
131
134
# source $IDF_PATH/export.sh
132
- source ./tools/config.sh >> log_instEnviroment.txt
135
+ source ./tools/config.sh 1 >> log_instEnviroment.txt 2>> log_errors .txt
133
136
fi
134
137
138
+ osascript -e ' tell application "Terminal" to do script "tail -n 20 -f ' $( realpath log_idfBuild.txt) ' "'
135
139
if [ " $BUILD_TYPE " != " all" ]; then
136
140
if [ " $TARGET " = " all" ]; then
137
141
echo " ERROR: You need to specify target for non-default builds"
@@ -170,7 +174,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
170
174
171
175
echo " idf.py -DIDF_TARGET=\" $target \" -DSDKCONFIG_DEFAULTS=\" $configs \" $BUILD_TYPE "
172
176
rm -rf build sdkconfig
173
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $configs " $BUILD_TYPE >> log_idfBuild.txt
177
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $configs " $BUILD_TYPE 1 >> log_idfBuild.txt 2>> log_errors .txt
174
178
if [ $? -ne 0 ]; then exit 1; fi
175
179
done
176
180
exit 0
@@ -224,11 +228,11 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
224
228
225
229
echo " * Build IDF-Libs: $idf_libs_configs "
226
230
rm -rf build sdkconfig
227
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs >> log_idfBuild.txt
231
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs 1 >> log_idfBuild.txt 2>> log_errors .txt
228
232
if [ $? -ne 0 ]; then exit 1; fi
229
233
230
234
if [ " $target " == " esp32s3" ]; then
231
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin >> log_idfBuild.txt
235
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin 1 >> log_idfBuild.txt 2>> log_errors .txt
232
236
if [ $? -ne 0 ]; then exit 1; fi
233
237
AR_SDK=" $AR_TOOLS /esp32-arduino-libs/$target "
234
238
# sr model.bin
@@ -249,7 +253,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
249
253
250
254
echo " * Build BootLoader: $bootloader_configs "
251
255
rm -rf build sdkconfig
252
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader >> log_idfBuild.txt
256
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader 1 >> log_idfBuild.txt 2>> log_errors .txt
253
257
if [ $? -ne 0 ]; then exit 1; fi
254
258
done
255
259
@@ -262,7 +266,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
262
266
263
267
echo " * Build Memory Variant: $mem_configs "
264
268
rm -rf build sdkconfig
265
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant >> log_idfBuild.txt
269
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant 1 >> log_idfBuild.txt 2>> log_errors .txt
266
270
if [ $? -ne 0 ]; then exit 1; fi
267
271
done
268
272
done
@@ -299,10 +303,11 @@ for component in `ls "$AR_MANAGED_COMPS"`; do
299
303
done
300
304
301
305
# update package_esp32_index.template.json
306
+ osascript -e ' tell application "Terminal" to do script "tail -n 20 -f ' $( realpath log_pythonBuild.txt) ' "'
302
307
if [ " $BUILD_TYPE " = " all" ]; then
303
308
echo " * Generating package_esp32_index.template.json..."
304
- python3 ./tools/gen_tools_json.py -i " $IDF_PATH " -j " $AR_COMPS /arduino/package/package_esp32_index.template.json" -o " $AR_OUT /" >> log_pythonBuild.txt
305
- python3 ./tools/gen_tools_json.py -i " $IDF_PATH " -o " $TOOLS_JSON_OUT /" >> log_pythonBuild.txt
309
+ python3 ./tools/gen_tools_json.py -i " $IDF_PATH " -j " $AR_COMPS /arduino/package/package_esp32_index.template.json" -o " $AR_OUT /" 1 >> log_pythonBuild.txt 2>> log_errors .txt
310
+ python3 ./tools/gen_tools_json.py -i " $IDF_PATH " -o " $TOOLS_JSON_OUT /" 1 >> log_pythonBuild.txt 2>> log_errors .txt
306
311
if [ $? -ne 0 ]; then exit 1; fi
307
312
fi
308
313
@@ -313,7 +318,7 @@ if [ "$BUILD_TYPE" = "all" ]; then
313
318
ibr=$( git describe --all 2> /dev/null)
314
319
ic=$( git -C " $IDF_PATH " rev-parse --short HEAD)
315
320
popd
316
- python3 ./tools/gen_platformio_manifest.py -o " $TOOLS_JSON_OUT /" -s " $ibr " -c " $ic " >> log_pythonBuild.txt
321
+ python3 ./tools/gen_platformio_manifest.py -o " $TOOLS_JSON_OUT /" -s " $ibr " -c " $ic " 1 >> log_pythonBuild.txt 2>> log_errors .txt
317
322
if [ $? -ne 0 ]; then exit 1; fi
318
323
fi
319
324
0 commit comments