Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OE
Qt Creator Example Projects
Commits
b099a004
Commit
b099a004
authored
Jan 26, 2017
by
Dan Sojka
Browse files
(In toolchain files) added homepath variable, removed armv7 and core2 from selector
parent
83e4ddc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
toolchain-selector.cmake
View file @
b099a004
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 arm
v7
"
)
MESSAGE
(
FATAL_ERROR
"ERROR: Not a valid toolchain name. Options are:
x86
and arm"
)
endif
()
toolchain.armv5e.cmake
View file @
b099a004
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
)
...
...
toolchain.i586.cmake
View file @
b099a004
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment