@@ -111,24 +111,25 @@ export IDF_CCACHE_ENABLE=$CCACHE_ENABLE
111
111
echo " TARGET(s): ${TARGET[@]} "
112
112
113
113
mkdir -p dist
114
+ rm -f " log_*.txt" # remove old log files if any exists
114
115
115
116
if [ $SKIP_ENV -eq 0 ]; then
116
117
echo " * Installing/Updating ESP-IDF and all components..."
117
118
# update components from git
118
- ./tools/update-components.sh
119
+ ./tools/update-components.sh >> log_instEnviroment.txt
119
120
if [ $? -ne 0 ]; then exit 1; fi
120
121
121
122
# install arduino component
122
- ./tools/install-arduino.sh
123
+ ./tools/install-arduino.sh >> log_instEnviroment.txt
123
124
if [ $? -ne 0 ]; then exit 1; fi
124
125
125
126
# install esp-idf
126
- source ./tools/install-esp-idf.sh
127
+ source ./tools/install-esp-idf.sh >> log_instEnviroment.txt
127
128
if [ $? -ne 0 ]; then exit 1; fi
128
129
else
129
130
# $IDF_PATH/install.sh
130
131
# source $IDF_PATH/export.sh
131
- source ./tools/config.sh
132
+ source ./tools/config.sh >> log_instEnviroment.txt
132
133
fi
133
134
134
135
if [ " $BUILD_TYPE " != " all" ]; then
@@ -169,7 +170,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
169
170
170
171
echo " idf.py -DIDF_TARGET=\" $target \" -DSDKCONFIG_DEFAULTS=\" $configs \" $BUILD_TYPE "
171
172
rm -rf build sdkconfig
172
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $configs " $BUILD_TYPE
173
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $configs " $BUILD_TYPE >> log_idfBuild.txt
173
174
if [ $? -ne 0 ]; then exit 1; fi
174
175
done
175
176
exit 0
@@ -218,16 +219,16 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
218
219
# Build IDF Libs
219
220
idf_libs_configs=" $main_configs "
220
221
for defconf in ` echo " $target_json " | jq -c ' .idf_libs[]' | tr -d ' "' ` ; do
221
- idf_libs_configs=" $idf_libs_configs ;configs/defconfig.$defconf "
222
+ idf_libs_configs=" $idf_libs_configs ;configs/defconfig.$defconf " >> log_idfBuild.txt
222
223
done
223
224
224
225
echo " * Build IDF-Libs: $idf_libs_configs "
225
226
rm -rf build sdkconfig
226
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
227
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs >> log_idfBuild.txt
227
228
if [ $? -ne 0 ]; then exit 1; fi
228
229
229
230
if [ " $target " == " esp32s3" ]; then
230
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin
231
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin >> log_idfBuild.txt
231
232
if [ $? -ne 0 ]; then exit 1; fi
232
233
AR_SDK=" $AR_TOOLS /esp32-arduino-libs/$target "
233
234
# sr model.bin
@@ -248,7 +249,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
248
249
249
250
echo " * Build BootLoader: $bootloader_configs "
250
251
rm -rf build sdkconfig
251
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader
252
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader >> log_idfBuild.txt
252
253
if [ $? -ne 0 ]; then exit 1; fi
253
254
done
254
255
@@ -261,7 +262,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
261
262
262
263
echo " * Build Memory Variant: $mem_configs "
263
264
rm -rf build sdkconfig
264
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
265
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant >> log_idfBuild.txt
265
266
if [ $? -ne 0 ]; then exit 1; fi
266
267
done
267
268
done
300
301
# update package_esp32_index.template.json
301
302
if [ " $BUILD_TYPE " = " all" ]; then
302
303
echo " * Generating package_esp32_index.template.json..."
303
- python3 ./tools/gen_tools_json.py -i " $IDF_PATH " -j " $AR_COMPS /arduino/package/package_esp32_index.template.json" -o " $AR_OUT /"
304
- python3 ./tools/gen_tools_json.py -i " $IDF_PATH " -o " $TOOLS_JSON_OUT /"
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
305
306
if [ $? -ne 0 ]; then exit 1; fi
306
307
fi
307
308
@@ -312,7 +313,7 @@ if [ "$BUILD_TYPE" = "all" ]; then
312
313
ibr=$( git describe --all 2> /dev/null)
313
314
ic=$( git -C " $IDF_PATH " rev-parse --short HEAD)
314
315
popd
315
- python3 ./tools/gen_platformio_manifest.py -o " $TOOLS_JSON_OUT /" -s " $ibr " -c " $ic "
316
+ python3 ./tools/gen_platformio_manifest.py -o " $TOOLS_JSON_OUT /" -s " $ibr " -c " $ic " >> log_pythonBuild.txt
316
317
if [ $? -ne 0 ]; then exit 1; fi
317
318
fi
318
319
@@ -336,3 +337,4 @@ if [ $ARCHIVE_OUT -eq 1 ]; then
336
337
./tools/archive-build.sh " $TARGET "
337
338
if [ $? -ne 0 ]; then exit 1; fi
338
339
fi
340
+ ./../addOns-esp32_AR_lib-builder/postBuild_AggregatedFolders.sh
0 commit comments