Skip to content

Instantly share code, notes, and snippets.

@nfarring
Created October 22, 2010 02:24
Show Gist options
  • Save nfarring/639806 to your computer and use it in GitHub Desktop.
Save nfarring/639806 to your computer and use it in GitHub Desktop.
A CMake toolchain file for using the ELDK 4.2 to target the MPC85xx processor family.
# This is a CMake toolchain file to configure CMake to use the ELDK 4.2
# cross-compiler for the Embedded PowerPC MPC85xx family. This file
# assumes that the ELDK is installed to /opt/eldk-4.2.
#
# Usage: cmake -DCMAKE_TOOLCHAIN_FILE=Toolchain-ELDK-4.2-ppc_85xx.cmake
#
# Reference: http://www.cmake.org/Wiki/CmakeEldk
#
# The name of the target operating system.
SET(CMAKE_SYSTEM_NAME Linux)
#
# Which C and C++ compiler to use.
SET(CMAKE_C_COMPILER /opt/eldk-4.2/usr/bin/ppc_85xx-gcc)
SET(CMAKE_CXX_COMPILER /opt/eldk-4.2/usr/bin/ppc_85xx-g++)
#
# The target root file system.
SET(CMAKE_FIND_ROOT_PATH /opt/eldk-4.2/ppc_85xx)
#
# 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