@@ -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
@@ -209,16 +215,14 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
209
215
idf_libs_configs=" $idf_libs_configs ;configs/defconfig.$defconf "
210
216
done
211
217
212
- if [ -f " $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash" ]; then
213
- rm -rf $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash
214
- fi
215
-
216
218
echo " * Build IDF-Libs: $idf_libs_configs "
217
219
rm -rf build sdkconfig
220
+ clear_component_hashes
218
221
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
219
222
if [ $? -ne 0 ]; then exit 1; fi
220
223
221
224
if [ " $target " == " esp32s3" ]; then
225
+ clear_component_hashes
222
226
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin
223
227
if [ $? -ne 0 ]; then exit 1; fi
224
228
AR_SDK=" $AR_TOOLS /esp32-arduino-libs/$target "
@@ -238,12 +242,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
238
242
bootloader_configs=" $bootloader_configs ;configs/defconfig.$defconf " ;
239
243
done
240
244
241
- if [ -f " $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash" ]; then
242
- rm -rf $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash
243
- fi
244
-
245
245
echo " * Build BootLoader: $bootloader_configs "
246
246
rm -rf build sdkconfig
247
+ clear_component_hashes
247
248
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader
248
249
if [ $? -ne 0 ]; then exit 1; fi
249
250
done
@@ -255,12 +256,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
255
256
mem_configs=" $mem_configs ;configs/defconfig.$defconf " ;
256
257
done
257
258
258
- if [ -f " $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash" ]; then
259
- rm -rf $AR_MANAGED_COMPS /espressif__esp-sr/.component_hash
260
- fi
261
-
262
259
echo " * Build Memory Variant: $mem_configs "
263
260
rm -rf build sdkconfig
261
+ clear_component_hashes
264
262
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
265
263
if [ $? -ne 0 ]; then exit 1; fi
266
264
done
0 commit comments