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 () {
|
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"
|
||||||
|
|
Loading…
Reference in New Issue