Fix build target names
This commit is contained in:
parent
5584108c33
commit
d6638b2308
1 changed files with 7 additions and 7 deletions
14
build.sh
14
build.sh
|
|
@ -21,7 +21,7 @@ if [ -z $DEPLOY_OUT ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function print_help() {
|
function print_help() {
|
||||||
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 ...]"
|
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 ...]"
|
||||||
echo " -s Skip installing/updating of ESP-IDF and all components"
|
echo " -s Skip installing/updating of ESP-IDF and all components"
|
||||||
echo " -A Set which branch of arduino-esp32 to be used for compilation"
|
echo " -A Set which branch of arduino-esp32 to be used for compilation"
|
||||||
echo " -I Set which branch of ESP-IDF to be used for compilation"
|
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
|
||||||
if [ "$b" != "build" ] &&
|
if [ "$b" != "build" ] &&
|
||||||
[ "$b" != "menuconfig" ] &&
|
[ "$b" != "menuconfig" ] &&
|
||||||
[ "$b" != "reconfigure" ] &&
|
[ "$b" != "reconfigure" ] &&
|
||||||
[ "$b" != "idf_libs" ] &&
|
[ "$b" != "idf-libs" ] &&
|
||||||
[ "$b" != "copy_bootloader" ] &&
|
[ "$b" != "copy-bootloader" ] &&
|
||||||
[ "$b" != "mem_variant" ]; then
|
[ "$b" != "mem-variant" ]; then
|
||||||
print_help
|
print_help
|
||||||
fi
|
fi
|
||||||
BUILD_TYPE="$b"
|
BUILD_TYPE="$b"
|
||||||
|
|
@ -185,7 +185,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
|
||||||
|
|
||||||
echo "* Build IDF-Libs: $idf_libs_configs"
|
echo "* Build IDF-Libs: $idf_libs_configs"
|
||||||
rm -rf build sdkconfig
|
rm -rf build sdkconfig
|
||||||
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf_libs
|
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf-libs
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
if [ "$target" == "esp32s3" ]; then
|
if [ "$target" == "esp32s3" ]; then
|
||||||
|
|
@ -214,7 +214,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
|
||||||
|
|
||||||
echo "* Build BootLoader: $bootloader_configs"
|
echo "* Build BootLoader: $bootloader_configs"
|
||||||
rm -rf build sdkconfig
|
rm -rf build sdkconfig
|
||||||
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy_bootloader
|
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
|
||||||
|
|
||||||
echo "* Build Memory Variant: $mem_configs"
|
echo "* Build Memory Variant: $mem_configs"
|
||||||
rm -rf build sdkconfig
|
rm -rf build sdkconfig
|
||||||
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem_variant
|
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue