@@ -115,9 +115,14 @@ else
115
115
source ./tools/config.sh
116
116
fi
117
117
118
- if [ -f " $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash" ]; then
119
- rm -rf $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash
120
- fi
118
+ function clear_component_hashes(){
119
+ if [ -f " $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash" ]; then
120
+ rm -rf $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash
121
+ fi
122
+ if [ -f " $AR_MANAGED_COMPS /espressif__esp-dsp/.component_hash" ]; then
123
+ rm -rf $AR_MANAGED_COMPS /espressif__esp-dsp/.component_hash
124
+ fi
125
+ }
121
126
122
127
if [ " $BUILD_TYPE " != " all" ]; then
123
128
if [ " $TARGET " = " all" ]; then
@@ -157,6 +162,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
157
162
158
163
echo " idf.py -DIDF_TARGET=\" $target \" -DSDKCONFIG_DEFAULTS=\" $configs \" $BUILD_TYPE "
159
164
rm -rf build sdkconfig
165
+ clear_component_hashes
160
166
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $configs " $BUILD_TYPE
161
167
if [ $? -ne 0 ]; then exit 1; fi
162
168
done
@@ -215,10 +221,12 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
215
221
216
222
echo " * Build IDF-Libs: $idf_libs_configs "
217
223
rm -rf build sdkconfig
224
+ clear_component_hashes
218
225
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
219
226
if [ $? -ne 0 ]; then exit 1; fi
220
227
221
228
if [ " $target " == " esp32s3" ]; then
229
+ clear_component_hashes
222
230
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin
223
231
if [ $? -ne 0 ]; then exit 1; fi
224
232
AR_SDK=" $AR_TOOLS /esp32-arduino-libs/$target "
@@ -244,6 +252,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
244
252
245
253
echo " * Build BootLoader: $bootloader_configs "
246
254
rm -rf build sdkconfig
255
+ clear_component_hashes
247
256
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader
248
257
if [ $? -ne 0 ]; then exit 1; fi
249
258
done
@@ -261,6 +270,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
261
270
262
271
echo " * Build Memory Variant: $mem_configs "
263
272
rm -rf build sdkconfig
273
+ clear_component_hashes
264
274
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
265
275
if [ $? -ne 0 ]; then exit 1; fi
266
276
done
0 commit comments