Added another bash function.

This commit is contained in:
jakeg00dwin 2024-06-14 15:08:41 -07:00
parent 74384000d8
commit 144fc068ae
1 changed files with 11 additions and 2 deletions

13
otto.sh
View File

@ -166,7 +166,6 @@ build_release() {
build_main () { build_main () {
clear_cmake_cache clear_cmake_cache
cmake -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../ cmake -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../
make main make main
} }
@ -181,6 +180,16 @@ build_hex () {
make hex make hex
} }
build_hex_optimized () {
clear_cmake_cache
CMAKE_ARGS="-DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE}"
CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_TOOLCHAIN_FILE=${AVR_TC}"
cmake ${CMAKE_ARGS} ../
make hex-release
}
run_c_tests () { run_c_tests () {
clear_cmake_cache clear_cmake_cache
cmake -DUNIT_TESTING=ON -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../ cmake -DUNIT_TESTING=ON -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../
@ -221,7 +230,7 @@ main() {
3) 3)
echo "You selected Option 3" echo "You selected Option 3"
valid_choice=true valid_choice=true
build_hex build_hex_optimized
;; ;;
4) 4)
echo "You selected Option 4" echo "You selected Option 4"