Created
October 22, 2010 02:16
-
-
Save nfarring/639795 to your computer and use it in GitHub Desktop.
A CMake toolchain file for using the ELDK 4.1 to target the MPC85xx processor family.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a CMake toolchain file to configure CMake to use the ELDK 4.1 | |
# cross-compiler for the Embedded PowerPC MPC85xx family. | |
# | |
# Usage: cmake -DCMAKE_TOOLCHAIN_FILE=Toolchain-ELDK-4.1-ppc_85xx.cmake | |
# | |
# Reference: http://www.cmake.org/Wiki/CmakeEldk | |
# | |
SET(ELDKBASE $ENV{ELDKBASE}) | |
SET(ELDKROOT $ENV{ELDKROOT}) | |
SET(ELDKLOCAL $ENV{ELDKLOCAL}) | |
SET(CROSS_COMPILE $ENV{CROSS_COMPILE}) | |
# | |
# The name of the target operating system. | |
SET(CMAKE_SYSTEM_NAME Linux) | |
# | |
# Which C and C++ compiler to use. | |
SET(CMAKE_C_COMPILER ${CROSS_COMPILE}gcc) | |
SET(CMAKE_CXX_COMPILER ${CROSS_COMPILE}g++) | |
# | |
# The target root file system. | |
SET(CMAKE_FIND_ROOT_PATH ${ELDKROOT} ${ELDKLOCAL}) | |
# | |
# Adjust the default behaviour of the FIND_XXX() commands: | |
# Search headers and libraries in the target environment. | |
# Search programs in the host environment. | |
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | |
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | |
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | |
# | |
# EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment