User Tools

Site Tools


getting_started:arm_toolchain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

getting_started:arm_toolchain [2017/11/21 08:07] (current)
graf created
Line 1: Line 1:
 +====== Toolchain File for ARM Platform ======
 +The following is an example of a toolchain file for an ARM platform and the gcc version 4.9.
 +<​code>​
 +set(CMAKE_SYSTEM_NAME Linux)
  
 +set(TOOLCHAIN_PREFIX arm-linux-gnueabihf)
 +set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc-4.9)
 +set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++-4.9)
 +
 +set(CMAKE_FIND_ROOT_PATH /​usr/​${TOOLCHAIN_PREFIX})
 +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 +</​code>​
getting_started/arm_toolchain.txt · Last modified: 2017/11/21 08:07 by graf