blob: 2c48ed24da2a2795f83fee8166cf6f35d21cee18 [file] [log] [blame]
Ed Tanouse2fc45a2017-04-26 09:19:10 -07001# this one is important
2SET(CMAKE_SYSTEM_NAME Linux)
3#this one not so much
4SET(CMAKE_SYSTEM_VERSION 1)
5SET(CMAKE_SYSTEM_PROCESSOR "armv6")
6set(ARCH "armv6")
7
8SET(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
16set(CMAKE_C_COMPILER /home/ed/deg-bmcfw-core/ToolChain/Host/AST2500/x-tools/arm-aspeed-linux-gnueabi/bin/arm-linux-gcc)
17set(CMAKE_CXX_COMPILER /home/ed/deg-bmcfw-core/ToolChain/Host/AST2500/x-tools/arm-aspeed-linux-gnueabi/bin/arm-linux-g++)
18
19
20set(triple arm-linux-gnueabi)
21set(CMAKE_C_COMPILER_TARGET ${triple})
22set(CMAKE_CXX_COMPILER_TARGET ${triple})
23
24# where is the target environment
25SET(CMAKE_FIND_ROOT_PATH /home/ed/deg-bmcfw-core/_sysroot/AST2500)
26
27# search for programs in the build host directories
28SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
29# for libraries and headers in the target directories
30SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
31SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
32set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)