Commit b099a004 authored by Dan Sojka's avatar Dan Sojka
Browse files

(In toolchain files) added homepath variable, removed armv7 and core2 from selector

parent 83e4ddc9
SET(TC_ARMV5_LOC ${CMAKE_CURRENT_SOURCE_DIR}/../toolchain.armv5e.cmake)
SET(TC_ARMV7_LOC ${CMAKE_CURRENT_SOURCE_DIR}/../toolchain.armv7a.cmake)
SET(TC_i586_LOC ${CMAKE_CURRENT_SOURCE_DIR}/../toolchain.i586.cmake)
SET(TC_core2_LOC ${CMAKE_CURRENT_SOURCE_DIR}/../toolchain.core2.cmake)
if(DEFINED ARCH)
else()
......@@ -20,31 +18,7 @@ MinSizeRel."
FORCE)
endif(NOT CMAKE_BUILD_TYPE)
if(${ARCH} STREQUAL "i586")
if(EXISTS ${TC_i586_LOC})
SET(CMAKE_TOOLCHAIN_FILE ${TC_i586_LOC})
else()
MESSAGE(FATAL_ERROR "Warning: i586 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "core2")
if(EXISTS ${TC_core2_LOC})
SET(CMAKE_TOOLCHAIN_FILE ${TC_core2_LOC})
else()
MESSAGE(FATAL_ERROR "Warning: core2 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "armv5")
if(EXISTS ${TC_ARMV5_LOC})
SET(CMAKE_TOOLCHAIN_FILE ${TC_ARMV5_LOC})
else()
MESSAGE(FATAL_ERROR "Warning: armv5 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "armv7")
if(EXISTS ${TC_ARMV7_LOC})
SET(CMAKE_TOOLCHAIN_FILE ${TC_ARMV7_LOC})
else()
MESSAGE(FATAL_ERROR "Warning: armv7 toolchain is not installed")
endif()
elseif(${ARCH} STREQUAL "arm")
if(${ARCH} STREQUAL "arm")
if(EXISTS ${TC_ARMV5_LOC})
SET(CMAKE_TOOLCHAIN_FILE ${TC_ARMV5_LOC})
else()
......@@ -59,7 +33,7 @@ elseif(${ARCH} STREQUAL "x86")
elseif(${ARCH} STREQUAL "def")
MESSAGE(STATUS "Using system compiler")
else()
MESSAGE(FATAL_ERROR "ERROR: Not a valid toolchain name. Options are: i586, core2, armv5, and armv7")
MESSAGE(FATAL_ERROR "ERROR: Not a valid toolchain name. Options are: x86 and arm")
endif()
INCLUDE(CMakeForceCompiler)
SET(CORRECT_VERSION 5.1)
SET(HOMEPATH $ENV{HOME}/EMAC_SDK/sysroots)
#Version Information
SET(TC_ARMV5_MAJOR_VERSION 1)
......@@ -8,7 +9,7 @@ SET(TC_ARMV5_MINOR_VERSION 0)
SET(TC_ARMV5_PATCH_VERSION 0)
SET(TC_ARMV5_VERSION ${TC_ARMV5_MAJOR_VERSION}.${TC_ARMV5_MINOR_VERSION}.${TC_ARMV5_PATCH_VERSION})
SET(CMAKE_FIND_ROOT_PATH /opt/emac/${CORRECT_VERSION}/sysroots/armv5e-emac-linux-gnueabi/)
SET(CMAKE_FIND_ROOT_PATH ${HOMEPATH}/armv5e)
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc GNU)
......
INCLUDE(CMakeForceCompiler)
SET(CORRECT_VERSION 5.1)
SET(HOMEPATH $ENV{HOME}/EMAC_SDK/sysroots)
#Version Information
SET(TC_I586_MAJOR_VERSION 1)
......@@ -8,7 +9,7 @@ SET(TC_I586_MINOR_VERSION 0)
SET(TC_I586_PATCH_VERSION 0)
SET(TC_I586_VERSION ${TC_I586_MAJOR_VERSION}.${TC_I586_MINOR_VERSION}.${TC_I586_PATCH_VERSION})
SET(CMAKE_FIND_ROOT_PATH /opt/emac/${CORRECT_VERSION}/sysroots/i586-emac-linux/)
SET(CMAKE_FIND_ROOT_PATH ${HOMEPATH}/i586)
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc GNU)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment