git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll
subrepo: subdir: "platforms/platform-test-f4-ll" merged: "bc41134" upstream: origin: "git@github.com:compihu/platform-test-f4-ll.git" branch: "master" commit: "bc41134" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "87ee373"
This commit is contained in:
parent
46ce55c6a0
commit
95af4ce0d8
460 changed files with 84105 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
### BEGIN CMAKE_TOOLCHAIN_FILE
|
||||
# "Generic" is used when cross compiling
|
||||
set(CMAKE_SYSTEM_NAME Generic)
|
||||
|
||||
# Set the EW installation root directory
|
||||
#(Avoid spaces in the path or you need to escape them)
|
||||
set(EW_ROOT_DIR "/opt/iarsystems/bxarm/arm/")
|
||||
|
||||
# Compiler flags needed to compile for this CPU
|
||||
set(CPU_FLAGS "--cpu Cortex-M4F")
|
||||
|
||||
# Set up the CMake variables for compiler and assembler
|
||||
# (The reason for both C and CXX variables is that CMake
|
||||
# treats C and C++ tools individually)
|
||||
set(CMAKE_C_COMPILER "${EW_ROOT_DIR}/bin/iccarm" "${CPU_FLAGS} --dlib_config normal")
|
||||
set(CMAKE_CXX_COMPILER "${EW_ROOT_DIR}/bin/iccarm" "${CPU_FLAGS} --dlib_config normal")
|
||||
set(CMAKE_ASM_COMPILER "${EW_ROOT_DIR}/bin/iasmarm" "${CPU_FLAGS}")
|
||||
|
||||
# For CppUTest, set the IAR variable
|
||||
set(IAR True)
|
||||
|
||||
# Build with cmake -H. -Bbuild -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=cmake/ewarm-linux.toolchain.cmake
|
||||
|
||||
### END CMAKE_TOOLCHAIN_FILE
|
Loading…
Add table
Add a link
Reference in a new issue