Skip to content

Commit 959d6c2

Browse files
committed
fix compile stop caused by component hash
1 parent 8220957 commit 959d6c2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ else
100100
source ./tools/config.sh
101101
fi
102102

103-
# avoid compile stop when files of managed components have been changed
104-
rm -rf $AR_MANAGED_COMPS/.component_hash
105-
106103
if [ "$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

Comments
 (0)