setup usage of toolchain file
This commit is contained in:
parent
ae963e8c20
commit
61384ab0c7
4
otto.sh
4
otto.sh
|
@ -3,7 +3,7 @@
|
||||||
# Date: 2024
|
# Date: 2024
|
||||||
# Filename: otto.sh
|
# Filename: otto.sh
|
||||||
|
|
||||||
CROSS_TC_WIN="$(pwd)/i686-w64-mingw32_toolchain.cmake"
|
TC=avrgcc_tc.cmake
|
||||||
CMAKE_VERBOSE="ON"
|
CMAKE_VERBOSE="ON"
|
||||||
CROSS_COMPILE=1
|
CROSS_COMPILE=1
|
||||||
TEMPLATE_FILES=".template_files"
|
TEMPLATE_FILES=".template_files"
|
||||||
|
@ -160,7 +160,7 @@ cross_compile () {
|
||||||
|
|
||||||
build_release() {
|
build_release() {
|
||||||
clear_cmake_cache
|
clear_cmake_cache
|
||||||
cmake -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} ../
|
cmake -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE} -DCMAKE_TOOLCHAIN_FILE=../${TC} ../
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue