@@ -17,28 +17,28 @@ COPY_OUT=0
1717DEPLOY_OUT=0
1818
1919function print_help() {
20- echo " Usage: build.sh [-s] [-A arduino_branch] [-I idf_branch] [-i idf_commit] [-a path] [-t <target>] [-b <build|menuconfig|idf_libs|copy_bootloader|mem_variant>] [config ...]"
20+ echo " Usage: build.sh [-s] [-A arduino_branch] [-I idf_branch] [-i idf_commit] [-c path] [-t <target>] [-b <build|menuconfig|idf_libs|copy_bootloader|mem_variant>] [config ...]"
2121 echo " -s Skip installing/updating of ESP-IDF and all components"
2222 echo " -A Set which branch of arduino-esp32 to be used for compilation"
2323 echo " -I Set which branch of ESP-IDF to be used for compilation"
2424 echo " -i Set which commit of ESP-IDF to be used for compilation"
2525 echo " -d Deploy the build to github arduino-esp32"
26- echo " -a Set the arduino-esp32 folder to copy the result to. ex. '$HOME /Arduino/hardware/espressif/esp32'"
26+ echo " -c Set the arduino-esp32 folder to copy the result to. ex. '$HOME /Arduino/hardware/espressif/esp32'"
2727 echo " -t Set the build target(chip). ex. 'esp32s3'"
2828 echo " -b Set the build type. ex. 'build' to build the project and prepare for uploading to a board"
2929 echo " ... Specify additional configs to be applied. ex. 'qio 80m' to compile for QIO Flash@80MHz. Requires -b"
3030 exit 1
3131}
3232
33- while getopts " :A:I:i:a :t:b:sd" opt; do
33+ while getopts " :A:I:i:c :t:b:sd" opt; do
3434 case ${opt} in
3535 s )
3636 SKIP_ENV=1
3737 ;;
3838 d )
3939 DEPLOY_OUT=1
4040 ;;
41- a )
41+ c )
4242 export ESP32_ARDUINO=" $OPTARG "
4343 COPY_OUT=1
4444 ;;
@@ -111,6 +111,7 @@ rm -rf build sdkconfig out
111111
112112echo $( git -C $AR_COMPS /arduino describe --all --long) > version.txt
113113
114+ # targets_count=`jq -c '.targets[] | length' configs/builds.json`
114115for target_json in ` jq -c ' .targets[]' configs/builds.json` ; do
115116 target=$( echo " $target_json " | jq -c ' .target' | tr -d ' "' )
116117
@@ -136,7 +137,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
136137 for boot_conf in ` echo " $target_json " | jq -c ' .bootloaders[]' ` ; do
137138 bootloader_configs=" $main_configs "
138139 for defconf in ` echo " $boot_conf " | jq -c ' .[]' | tr -d ' "' ` ; do
139- bootloader_configs=" $bootloader_configs ;configs/defconfig.$defconf "
140+ bootloader_configs=" $bootloader_configs ;configs/defconfig.$defconf " ;
140141 done
141142 echo " * Build BootLoader: $bootloader_configs "
142143 rm -rf build sdkconfig
@@ -148,7 +149,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
148149 for mem_conf in ` echo " $target_json " | jq -c ' .mem_variants[]' ` ; do
149150 mem_configs=" $main_configs "
150151 for defconf in ` echo " $mem_conf " | jq -c ' .[]' | tr -d ' "' ` ; do
151- mem_configs=" $mem_configs ;configs/defconfig.$defconf "
152+ mem_configs=" $mem_configs ;configs/defconfig.$defconf " ;
152153 done
153154 echo " * Build Memory Variant: $mem_configs "
154155 rm -rf build sdkconfig
0 commit comments