-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#176] Created posix and nos3 toolchains and use targets.cmake to det…
…ect if building unit tests;
- Loading branch information
Showing
6 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This example toolchain file describes the cross compiler to use for | ||
# the target architecture indicated in the configuration file. | ||
|
||
# Basic cross system configuration | ||
SET(CMAKE_SYSTEM_NAME Linux) | ||
SET(CMAKE_SYSTEM_VERSION 1) | ||
SET(CMAKE_SYSTEM_PROCESSOR amd64) | ||
|
||
# Specify the cross compiler executables | ||
# Typically these would be installed in a home directory or somewhere | ||
# in /opt. However in this example the system compiler is used. | ||
SET(CMAKE_C_COMPILER "/usr/bin/gcc") | ||
SET(CMAKE_CXX_COMPILER "/usr/bin/g++") | ||
|
||
# Configure the find commands | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER) | ||
|
||
# These variable settings are specific to cFE/OSAL and determines which | ||
# abstraction layers are built when using this toolchain | ||
SET(CFE_SYSTEM_PSPNAME "pc-linux") | ||
SET(OSAL_SYSTEM_OSTYPE "posix") | ||
|
||
#SET(CMAKE_C_FLAGS_INIT "" CACHE STRING "C Flags required by platform") | ||
#SET(CMAKE_SHARED_LINKER_FLAGS "-pg") | ||
|
||
# Build Specific | ||
add_definitions(-DBYTE_ORDER_LE) | ||
add_definitions(-D_LINUX_OS_) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
set(CI_TRANSPORT udp_tf) | ||
set(TO_TRANSPORT udp) # Note udp_tf used for Transfer Frames required for CryptoLib |
Submodule hwlib
updated
9 files
+1 −1 | fsw/linux/libcan.c | |
+3 −3 | fsw/linux/libgpio.c | |
+24 −24 | fsw/linux/libi2c.c | |
+0 −4 | fsw/linux/libsocket.c | |
+0 −1 | fsw/linux/libspi.c | |
+12 −15 | fsw/linux/libtrq.c | |
+13 −13 | fsw/linux/libuart.c | |
+2 −0 | fsw/public_inc/hwlib.h | |
+7 −2 | fsw/src/hwlib.c |
Submodule osal
updated
30 files