diff --git a/solo-builder/builder.sh b/solo-builder/builder.sh index d7fbddd..d473b47 100755 --- a/solo-builder/builder.sh +++ b/solo-builder/builder.sh @@ -64,6 +64,15 @@ if ! $SCRIPT_MODE; then echo fi +## if -a arg is true, build the Artoo STM32 firmware and copy artoo.bin to the build. +if $ARTOO_BUILD; then + /vagrant/solo-builder/build_artoo.sh + if [ ! $? -eq 0 ] + then + exit 1 + fi +fi + ## Run source_sync.sh script to pull in build sources /vagrant/solo-builder/source_sync.sh if [ ! $? -eq 0 ]; then @@ -126,15 +135,6 @@ if ! $CLEAN_BUILD; then fi fi -## if -a arg is true, build the Artoo STM32 firmware and copy artoo.bin to the build. -if $ARTOO_BUILD; then - /vagrant/solo-builder/build_artoo.sh - if [ ! $? -eq 0 ] - then - exit 1 - fi -fi - ## if -m arg is solo or both, build the Solo's IMX if [ $MACHINE_BUILD = 'solo' ] || [ $MACHINE_BUILD = 'both' ]; then