Skip to content

Commit d6638b2

Browse files
committed
Fix build target names
1 parent 5584108 commit d6638b2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if [ -z $DEPLOY_OUT ]; then
2121
fi
2222

2323
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 ...]"
2525
echo " -s Skip installing/updating of ESP-IDF and all components"
2626
echo " -A Set which branch of arduino-esp32 to be used for compilation"
2727
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
7171
if [ "$b" != "build" ] &&
7272
[ "$b" != "menuconfig" ] &&
7373
[ "$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
7777
print_help
7878
fi
7979
BUILD_TYPE="$b"
@@ -185,7 +185,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
185185

186186
echo "* Build IDF-Libs: $idf_libs_configs"
187187
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
189189
if [ $? -ne 0 ]; then exit 1; fi
190190

191191
if [ "$target" == "esp32s3" ]; then
@@ -214,7 +214,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
214214

215215
echo "* Build BootLoader: $bootloader_configs"
216216
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
218218
if [ $? -ne 0 ]; then exit 1; fi
219219
done
220220

@@ -231,7 +231,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
231231

232232
echo "* Build Memory Variant: $mem_configs"
233233
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
235235
if [ $? -ne 0 ]; then exit 1; fi
236236
done
237237
done

0 commit comments

Comments
 (0)