-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nasa#490 from nasa/ic-20200121
Integration Candidate 20200121
- Loading branch information
Showing
16 changed files
with
206 additions
and
231 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Example arch_build_custom.cmake | ||
# ------------------------------- | ||
# | ||
# This file will be automatically included in the arch-specific build scope | ||
# | ||
# Definitions and options specified here will be used when cross-compiling | ||
# _all_ FSW code for _all_ targets defined in targets.cmake. | ||
# | ||
# Avoid machine-specific code generation options in this file (e.g. -f,-m options); such | ||
# options should be localized to the toolchain file such that they will only be | ||
# included on the machines where they apply. | ||
# | ||
# CAUTION: In heterogeneous environments where different cross compilers are | ||
# used for different CPUs, particularly if from different vendors, it is likely | ||
# that compile options will need to be different as well. | ||
# | ||
# In general, options in this file can only be used in cases where all CPUs use a | ||
# compiler from the same vendor and/or are all GCC based such that they accept similar | ||
# command line options. | ||
# | ||
# This file can alternatively be named as "arch_build_custom_${TARGETSYSTEM}.cmake" | ||
# where ${TARGETSYSTEM} represents the system type, matching the toolchain. | ||
# | ||
# These example options assume a GCC-style toolchain is used for cross compilation, | ||
# and uses the same warning options that are applied at the mission level. | ||
# | ||
add_compile_options( | ||
-std=c99 # Target the C99 standard (without gcc extensions) | ||
-pedantic # Issue all the warnings demanded by strict ISO C | ||
-Wall # Warn about most questionable operations | ||
-Wstrict-prototypes # Warn about missing prototypes | ||
-Wwrite-strings # Warn if not treating string literals as "const" | ||
-Wpointer-arith # Warn about suspicious pointer operations | ||
-Wcast-align # Warn about casts that increase alignment requirements | ||
-Werror # Treat warnings as errors (code should be clean) | ||
) | ||
|
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,25 @@ | ||
# | ||
# Example global_build_options.cmake | ||
# ---------------------------------- | ||
# | ||
# This may set global definitions that apply to ALL targets in ALL scopes, | ||
# including FSW code that is cross-compiled for a target as well as code | ||
# built for the development host itself (native). | ||
# | ||
# As such, it should only invoke basic commands that have wide applicability, | ||
# such as "add_definitions()" for macro definitions that should be set | ||
# globally. It should not include any compiler-specific options that might | ||
# change between compiler vendors or target processor families. | ||
# | ||
|
||
# If the OMIT_DEPRECATED flag is specified, then define the respective macros | ||
# that omit the deprecated features from the build. This is conditional in this | ||
# example for CI purposes, so it can be tested both ways. Most projects would | ||
# likely set this only one way. | ||
set(OMIT_DEPRECATED $ENV{OMIT_DEPRECATED} CACHE STRING "Omit deprecated elements") | ||
if (OMIT_DEPRECATED) | ||
message (STATUS "OMIT_DEPRECATED=true: Not including deprecated elements in build") | ||
add_definitions(-DCFE_OMIT_DEPRECATED_6_6 -DOSAL_OMIT_DEPRECATED) | ||
else() | ||
message (STATUS "OMIT_DEPRECATED=false: Deprecated elements included in build") | ||
endif (OMIT_DEPRECATED) |
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,28 @@ | ||
# | ||
# Example mission_build_custom.cmake | ||
# ---------------------------------- | ||
# | ||
# This file will be automatically included in the top level ("mission") build scope | ||
# | ||
# Definitions and options specified here will be used when building local tools and | ||
# other code that runs on the development host, but do _NOT_ apply to flight software | ||
# (embedded) code or anything built for the target machine. | ||
# | ||
# These options assume a GCC toolchain but a similar set should be applicable to clang. | ||
# | ||
add_compile_options( | ||
-std=c99 # Target the C99 standard (without gcc extensions) | ||
-pedantic # Issue all the warnings demanded by strict ISO C | ||
-Wall # Warn about most questionable operations | ||
-Wstrict-prototypes # Warn about missing prototypes | ||
-Wwrite-strings # Warn if not treating string literals as "const" | ||
-Wpointer-arith # Warn about suspicious pointer operations | ||
-Wcast-align # Warn about casts that increase alignment requirements | ||
-Werror # Treat warnings as errors (code should be clean) | ||
) | ||
|
||
# The _XOPEN_SOURCE directive is required for glibc to enable conformance with the | ||
# the X/Open standard version 6, which includes POSIX.1c as well as SUSv2/UNIX98 extensions. | ||
add_definitions( | ||
-D_XOPEN_SOURCE=600 | ||
) |
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
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
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
Oops, something went wrong.