@@ -21,7 +21,7 @@ if [ -z $DEPLOY_OUT ]; then
21
21
fi
22
22
23
23
function print_help() {
24
- echo " Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf_libs|copy_bootloader|mem_variant >] [config ...]"
24
+ echo " Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant >] [config ...]"
25
25
echo " -s Skip installing/updating of ESP-IDF and all components"
26
26
echo " -A Set which branch of arduino-esp32 to be used for compilation"
27
27
echo " -I Set which branch of ESP-IDF to be used for compilation"
@@ -71,9 +71,9 @@ while getopts ":A:I:i:c:t:b:D:sde" opt; do
71
71
if [ " $b " != " build" ] &&
72
72
[ " $b " != " menuconfig" ] &&
73
73
[ " $b " != " reconfigure" ] &&
74
- [ " $b " != " idf_libs " ] &&
75
- [ " $b " != " copy_bootloader " ] &&
76
- [ " $b " != " mem_variant " ]; then
74
+ [ " $b " != " idf-libs " ] &&
75
+ [ " $b " != " copy-bootloader " ] &&
76
+ [ " $b " != " mem-variant " ]; then
77
77
print_help
78
78
fi
79
79
BUILD_TYPE=" $b "
@@ -185,7 +185,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
185
185
186
186
echo " * Build IDF-Libs: $idf_libs_configs "
187
187
rm -rf build sdkconfig
188
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf_libs
188
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
189
189
if [ $? -ne 0 ]; then exit 1; fi
190
190
191
191
if [ " $target " == " esp32s3" ]; then
@@ -214,7 +214,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
214
214
215
215
echo " * Build BootLoader: $bootloader_configs "
216
216
rm -rf build sdkconfig
217
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy_bootloader
217
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $bootloader_configs " copy-bootloader
218
218
if [ $? -ne 0 ]; then exit 1; fi
219
219
done
220
220
@@ -231,7 +231,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
231
231
232
232
echo " * Build Memory Variant: $mem_configs "
233
233
rm -rf build sdkconfig
234
- idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem_variant
234
+ idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $mem_configs " mem-variant
235
235
if [ $? -ne 0 ]; then exit 1; fi
236
236
done
237
237
done
0 commit comments