Skip to content

Commit 5446b61

Browse files
authored
Update build.sh
1 parent e135e66 commit 5446b61

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

build.sh

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ if ! [ -x "$(command -v git)" ]; then
1010
exit 1
1111
fi
1212

13+
# Fixes building some components. See https://github.com/espressif/arduino-esp32/issues/10167
14+
export IDF_COMPONENT_OVERWRITE_MANAGED_COMPONENTS=1
15+
1316
export TARGET="all"
1417
BUILD_TYPE="all"
1518
SKIP_ENV=0
@@ -201,9 +204,6 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
201204

202205
echo "* Build IDF-Libs: $idf_libs_configs"
203206
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,9 +216,6 @@ 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
222219
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
223220
if [ $? -ne 0 ]; then exit 1; fi
224221
done
@@ -232,9 +229,6 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
232229

233230
echo "* Build Memory Variant: $mem_configs"
234231
rm -rf build sdkconfig
235-
pushd $AR_MANAGED_COMPS
236-
rm -- **/.component_hash
237-
popd
238232
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
239233
if [ $? -ne 0 ]; then exit 1; fi
240234
done

0 commit comments

Comments
 (0)