@@ -10,6 +10,9 @@ if ! [ -x "$(command -v git)" ]; then
10
10
exit 1
11
11
fi
12
12
13
+ # Fixes building some components. See https://github.com/espressif/arduino-esp32/issues/10167
14
+ export IDF_COMPONENT_OVERWRITE_MANAGED_COMPONENTS=1
15
+
13
16
TARGET=" all"
14
17
BUILD_TYPE=" all"
15
18
BUILD_DEBUG=" default"
@@ -115,15 +118,6 @@ else
115
118
source ./tools/config.sh
116
119
fi
117
120
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
- }
126
-
127
121
if [ " $BUILD_TYPE " != " all" ]; then
128
122
if [ " $TARGET " = " all" ]; then
129
123
echo " ERROR: You need to specify target for non-default builds"
@@ -162,7 +156,6 @@ if [ "$BUILD_TYPE" != "all" ]; then
162
156
163
157
echo " idf.py -DIDF_TARGET=\" $target \" -DSDKCONFIG_DEFAULTS=\" $configs \" $BUILD_TYPE "
164
158
rm -rf build sdkconfig
165
- clear_component_hashes
166
159
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $configs " $BUILD_TYPE
167
160
if [ $? -ne 0 ]; then exit 1; fi
168
161
done
@@ -217,12 +210,10 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
217
210
218
211
echo " * Build IDF-Libs: $idf_libs_configs "
219
212
rm -rf build sdkconfig
220
- clear_component_hashes
221
213
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
222
214
if [ $? -ne 0 ]; then exit 1; fi
223
215
224
216
if [ " $target " == " esp32s3" ]; then
225
- clear_component_hashes
226
217
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin
227
218
if [ $? -ne 0 ]; then exit 1; fi
228
219
AR_SDK=" $AR_TOOLS /esp32-arduino-libs/$target "
@@ -244,7 +235,6 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
244
235
245
236
echo " * Build BootLoader: $bootloader_configs "
246
237
rm -rf build sdkconfig
247
- clear_component_hashes
248
238
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader
249
239
if [ $? -ne 0 ]; then exit 1; fi
250
240
done
@@ -258,7 +248,6 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
258
248
259
249
echo " * Build Memory Variant: $mem_configs "
260
250
rm -rf build sdkconfig
261
- clear_component_hashes
262
251
idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
263
252
if [ $? -ne 0 ]; then exit 1; fi
264
253
done
0 commit comments