Skip to content

Commit ded41a4

Browse files
authored
Update build.sh
1 parent fdaf369 commit ded41a4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

build.sh

+9-8
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ if [ "$BUILD_TYPE" != "all" ]; then
138138

139139
echo "idf.py -DIDF_TARGET=\"$target\" -DSDKCONFIG_DEFAULTS=\"$configs\" $BUILD_TYPE"
140140
rm -rf build sdkconfig
141-
rm -rf dependencies.lock
142-
rm -rf /Users/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp-dsp/.component_hash
143141
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$configs" $BUILD_TYPE
144142
if [ $? -ne 0 ]; then exit 1; fi
145143
done
@@ -203,8 +201,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
203201

204202
echo "* Build IDF-Libs: $idf_libs_configs"
205203
rm -rf build sdkconfig
206-
rm -rf dependencies.lock
207-
rm -rf /Users/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp-dsp/.component_hash
204+
pushd $AR_MANAGED_COMPS
205+
rm -- **/.component_hash
206+
popd
208207
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf-libs
209208
if [ $? -ne 0 ]; then exit 1; fi
210209

@@ -217,8 +216,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
217216

218217
echo "* Build BootLoader: $bootloader_configs"
219218
rm -rf build sdkconfig
220-
rm -rf dependencies.lock
221-
rm -rf /Users/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp-dsp/.component_hash
219+
pushd $AR_MANAGED_COMPS
220+
rm -- **/.component_hash
221+
popd
222222
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
223223
if [ $? -ne 0 ]; then exit 1; fi
224224
done
@@ -232,8 +232,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
232232

233233
echo "* Build Memory Variant: $mem_configs"
234234
rm -rf build sdkconfig
235-
rm -rf dependencies.lock
236-
rm -rf /Users/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp-dsp/.component_hash
235+
pushd $AR_MANAGED_COMPS
236+
rm -- **/.component_hash
237+
popd
237238
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
238239
if [ $? -ne 0 ]; then exit 1; fi
239240
done

0 commit comments

Comments
 (0)