Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 91f7ab1

Browse files
committedAug 13, 2024·
Fix ESP-DSP breaking the build
1 parent cedf481 commit 91f7ab1

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed
 

‎build.sh

+13-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,14 @@ else
115115
source ./tools/config.sh
116116
fi
117117

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+
}
121126

122127
if [ "$BUILD_TYPE" != "all" ]; then
123128
if [ "$TARGET" = "all" ]; then
@@ -157,6 +162,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
157162

158163
echo "idf.py -DIDF_TARGET=\"$target\" -DSDKCONFIG_DEFAULTS=\"$configs\" $BUILD_TYPE"
159164
rm -rf build sdkconfig
165+
clear_component_hashes
160166
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$configs" $BUILD_TYPE
161167
if [ $? -ne 0 ]; then exit 1; fi
162168
done
@@ -215,10 +221,12 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
215221

216222
echo "* Build IDF-Libs: $idf_libs_configs"
217223
rm -rf build sdkconfig
224+
clear_component_hashes
218225
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf-libs
219226
if [ $? -ne 0 ]; then exit 1; fi
220227

221228
if [ "$target" == "esp32s3" ]; then
229+
clear_component_hashes
222230
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" srmodels_bin
223231
if [ $? -ne 0 ]; then exit 1; fi
224232
AR_SDK="$AR_TOOLS/esp32-arduino-libs/$target"
@@ -244,6 +252,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
244252

245253
echo "* Build BootLoader: $bootloader_configs"
246254
rm -rf build sdkconfig
255+
clear_component_hashes
247256
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
248257
if [ $? -ne 0 ]; then exit 1; fi
249258
done
@@ -261,6 +270,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
261270

262271
echo "* Build Memory Variant: $mem_configs"
263272
rm -rf build sdkconfig
273+
clear_component_hashes
264274
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
265275
if [ $? -ne 0 ]; then exit 1; fi
266276
done

0 commit comments

Comments
 (0)
Please sign in to comment.