Ed Tanous | e2fc45a | 2017-04-26 09:19:10 -0700 | [diff] [blame] | 1 | # this one is important |
| 2 | SET(CMAKE_SYSTEM_NAME Linux) |
| 3 | #this one not so much |
| 4 | SET(CMAKE_SYSTEM_VERSION 1) |
| 5 | SET(CMAKE_SYSTEM_PROCESSOR "armv6") |
| 6 | set(ARCH "armv6") |
| 7 | |
| 8 | SET(CMAKE_CROSSCOMPILING True) |
| 9 | |
| 10 | # specify the cross compiler |
| 11 | #SET(CMAKE_C_COMPILER arm-linux-gnueabi-gcc-4.9) |
| 12 | #SET(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++-4.9) |
| 13 | #SET(CMAKE_C_LINK_EXECUTABLE "clang <OBJECTS> -o <TARGET> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>") |
| 14 | #SET(CMAKE_CXX_LINK_EXECUTABLE "clang++ <OBJECTS> -o <TARGET> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>") |
| 15 | |
| 16 | set(CMAKE_C_COMPILER /home/ed/deg-bmcfw-core/ToolChain/Host/AST2500/x-tools/arm-aspeed-linux-gnueabi/bin/arm-linux-gcc) |
| 17 | set(CMAKE_CXX_COMPILER /home/ed/deg-bmcfw-core/ToolChain/Host/AST2500/x-tools/arm-aspeed-linux-gnueabi/bin/arm-linux-g++) |
| 18 | |
| 19 | |
| 20 | set(triple arm-linux-gnueabi) |
| 21 | set(CMAKE_C_COMPILER_TARGET ${triple}) |
| 22 | set(CMAKE_CXX_COMPILER_TARGET ${triple}) |
| 23 | |
| 24 | # where is the target environment |
| 25 | SET(CMAKE_FIND_ROOT_PATH /home/ed/deg-bmcfw-core/_sysroot/AST2500) |
| 26 | |
| 27 | # search for programs in the build host directories |
| 28 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
| 29 | # for libraries and headers in the target directories |
| 30 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) |
| 31 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
| 32 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) |