From dd01e7ed22cea652061f0d12cecf929e04b285e9 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 5 Mar 2023 18:28:08 +0300 Subject: Restructure toolchain file --- toolchain-gcc-newlib.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 toolchain-gcc-newlib.cmake (limited to 'toolchain-gcc-newlib.cmake') diff --git a/toolchain-gcc-newlib.cmake b/toolchain-gcc-newlib.cmake new file mode 100644 index 0000000..0599b34 --- /dev/null +++ b/toolchain-gcc-newlib.cmake @@ -0,0 +1,13 @@ +set(CMAKE_SYSTEM_NAME Generic) +set(CMAKE_SYSTEM_VERSION 1) +set(CMAKE_SYSTEM_PROCESSOR ARM) +set(CMAKE_C_COMPILER_WORKS 1) # mitigate missing `_exit` +set(CMAKE_CXX_COMPILER_WORKS 1) # mitigate missing `_exit` +set(TOOLCHAIN_NAME "gcc-newlib") +set(CMAKE_C_COMPILER "arm-none-eabi-gcc") +set(CMAKE_ASM_COMPILER "arm-none-eabi-gcc") +set(CMAKE_CXX_COMPILER "arm-none-eabi-g++") +set(CMAKE_LINKER "arm-none-eabi-gcc") +set(CMAKE_CXX_LINK_EXECUTABLE " -o ") +set(CMAKE_OBJCOPY "arm-none-eabi-objcopy") +set(CMAKE_OBJSIZE "arm-none-eabi-size") -- cgit v1.2.3