Updated the otto.sh file to make all before trying to do anything else.

This commit is contained in:
jakeg00dwin 2024-06-14 16:07:35 -07:00
parent 3e550f4ac5
commit 2ab9d8e18e
1 changed files with 8 additions and 1 deletions

View File

@ -177,6 +177,7 @@ build_hex () {
CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_TOOLCHAIN_FILE=${AVR_TC}"
cmake ${CMAKE_ARGS} ../
make all
make hex
}
@ -187,9 +188,15 @@ build_hex_optimized () {
CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_TOOLCHAIN_FILE=${AVR_TC}"
cmake ${CMAKE_ARGS} ../
make all
make hex-release
}
flash_avr () {
build_hex_optimized
make upload
}
run_c_tests () {
clear_cmake_cache
cmake -DUNIT_TESTING=ON -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../
@ -235,7 +242,7 @@ main() {
4)
echo "You selected Option 4"
valid_choice=true
cross_compile
flash_avr
;;
5)
echo "You selected Option 5"