Skip to content

Commit 808011e

Browse files
authored
Update build.sh
1 parent cf412c2 commit 808011e

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

build.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ TARGET="all"
1414
BUILD_TYPE="all"
1515
SKIP_ENV=0
1616
COPY_OUT=0
17-
# DEPLOY_OUT=1
1817
if [ -z $DEPLOY_OUT ]; then
1918
DEPLOY_OUT=0
2019
fi
@@ -92,9 +91,15 @@ if [ $SKIP_ENV -eq 0 ]; then
9291
source ./tools/install-esp-idf.sh
9392
if [ $? -ne 0 ]; then exit 1; fi
9493
else
94+
# $IDF_PATH/install.sh
95+
# source $IDF_PATH/export.sh
9596
source ./tools/config.sh
9697
fi
9798

99+
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
100+
rm -rf ./managed_components/espressif__esp-sr/.component_hash
101+
fi
102+
98103
if [ "$BUILD_TYPE" != "all" ]; then
99104
if [ "$TARGET" = "all" ]; then
100105
echo "ERROR: You need to specify target for non-default builds"
@@ -161,6 +166,11 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
161166
for defconf in `echo "$target_json" | jq -c '.idf_libs[]' | tr -d '"'`; do
162167
idf_libs_configs="$idf_libs_configs;configs/defconfig.$defconf"
163168
done
169+
170+
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
171+
rm -rf ./managed_components/espressif__esp-sr/.component_hash
172+
fi
173+
164174
echo "* Build IDF-Libs: $idf_libs_configs"
165175
rm -rf build sdkconfig
166176
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf_libs
@@ -172,6 +182,11 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
172182
for defconf in `echo "$boot_conf" | jq -c '.[]' | tr -d '"'`; do
173183
bootloader_configs="$bootloader_configs;configs/defconfig.$defconf";
174184
done
185+
186+
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
187+
rm -rf ./managed_components/espressif__esp-sr/.component_hash
188+
fi
189+
175190
echo "* Build BootLoader: $bootloader_configs"
176191
rm -rf build sdkconfig
177192
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy_bootloader
@@ -184,6 +199,11 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
184199
for defconf in `echo "$mem_conf" | jq -c '.[]' | tr -d '"'`; do
185200
mem_configs="$mem_configs;configs/defconfig.$defconf";
186201
done
202+
203+
if [ -f "./managed_components/espressif__esp-sr/.component_hash" ]; then
204+
rm -rf ./managed_components/espressif__esp-sr/.component_hash
205+
fi
206+
187207
echo "* Build Memory Variant: $mem_configs"
188208
rm -rf build sdkconfig
189209
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem_variant

0 commit comments

Comments
 (0)