@@ -31,7 +31,7 @@ if [ -z $DEPLOY_OUT ]; then
3131fi
3232
3333function print_help() {
34- echo " Usage: build.sh [-s] [-n] [-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 ...]"
34+ echo " Usage: build.sh [-s] [-n] [-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|hosted >] [config ...]"
3535 echo " -s Skip installing/updating of ESP-IDF and all components"
3636 echo " -n Disable ccache"
3737 echo " -A Set which branch of arduino-esp32 to be used for compilation"
@@ -87,7 +87,8 @@ while getopts ":A:I:i:c:t:b:D:sde" opt; do
8787 [ " $b " != " reconfigure" ] &&
8888 [ " $b " != " idf-libs" ] &&
8989 [ " $b " != " copy-bootloader" ] &&
90- [ " $b " != " mem-variant" ]; then
90+ [ " $b " != " mem-variant" ] &&
91+ [ " $b " != " hosted" ]; then
9192 print_help
9293 fi
9394 BUILD_TYPE=" $b "
@@ -137,6 +138,11 @@ if [ "$BUILD_TYPE" != "all" ]; then
137138 print_help
138139 fi
139140
141+ if [ " $BUILD_TYPE " == " hosted" ]; then
142+ ./tools/build-hosted.sh
143+ exit $?
144+ fi
145+
140146 # Target Features Configs
141147 for target_json in ` jq -c ' .targets[]' configs/builds.json` ; do
142148 target=$( echo " $target_json " | jq -c ' .target' | tr -d ' "' )
@@ -226,6 +232,12 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
226232 idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " idf-libs
227233 if [ $? -ne 0 ]; then exit 1; fi
228234
235+ # Build ESP-Hosted slave firmwares
236+ if [ " $target " == " esp32p4" ]; then
237+ ./tools/build-hosted.sh
238+ fi
239+
240+ # Build ESP-SR Models
229241 if [ " $target " == " esp32s3" ] || [ " $target " == " esp32p4" ]; then
230242 idf.py -DIDF_TARGET=" $target " -DSDKCONFIG_DEFAULTS=" $idf_libs_configs " srmodels_bin
231243 if [ $? -ne 0 ]; then exit 1; fi
0 commit comments