100100 source ./tools/config.sh
101101fi
102102
103- # avoid compile stop when files of managed components have been changed
104- rm -rf $AR_MANAGED_COMPS /.component_hash
105-
106103if [ " $BUILD_TYPE " != " all" ]; then
107104 if [ " $TARGET " = " all" ]; then
108105 echo " ERROR: You need to specify target for non-default builds"
@@ -204,6 +201,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
204201
205202 echo " * Build IDF-Libs: $idf_libs_configs "
206203 rm -rf build sdkconfig
204+ pushd $AR_MANAGED_COMPS
205+ rm -- ** /.component_hash
206+ popd
207207 idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
208208 if [ $? -ne 0 ]; then exit 1; fi
209209
@@ -216,6 +216,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
216216
217217 echo " * Build BootLoader: $bootloader_configs "
218218 rm -rf build sdkconfig
219+ pushd $AR_MANAGED_COMPS
220+ rm -- ** /.component_hash
221+ popd
219222 idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader
220223 if [ $? -ne 0 ]; then exit 1; fi
221224 done
@@ -229,6 +232,9 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
229232
230233 echo " * Build Memory Variant: $mem_configs "
231234 rm -rf build sdkconfig
235+ pushd $AR_MANAGED_COMPS
236+ rm -- ** /.component_hash
237+ popd
232238 idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
233239 if [ $? -ne 0 ]; then exit 1; fi
234240 done
0 commit comments