Added another bash function.
This commit is contained in:
parent
74384000d8
commit
144fc068ae
13
otto.sh
13
otto.sh
|
@ -166,7 +166,6 @@ build_release() {
|
|||
|
||||
build_main () {
|
||||
clear_cmake_cache
|
||||
|
||||
cmake -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../
|
||||
make main
|
||||
}
|
||||
|
@ -181,6 +180,16 @@ build_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 () {
|
||||
clear_cmake_cache
|
||||
cmake -DUNIT_TESTING=ON -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../
|
||||
|
@ -221,7 +230,7 @@ main() {
|
|||
3)
|
||||
echo "You selected Option 3"
|
||||
valid_choice=true
|
||||
build_hex
|
||||
build_hex_optimized
|
||||
;;
|
||||
4)
|
||||
echo "You selected Option 4"
|
||||
|
|
Loading…
Reference in New Issue