Skip to content

Commit

Permalink
Merge pull request nasa#792 from nasa/integration-candidate
Browse files Browse the repository at this point in the history
Integration Candidate 2020-07-29
  • Loading branch information
astrogeco authored Aug 5, 2020
2 parents deeb294 + 7ac88e6 commit 5ac3f0a
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 23 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ The detailed cFE user's guide can be viewed at <https://github.com/nasa/cFS/blob

## Version History

### Development Build: 6.7.0+dev292

- Add missing include path to the target/h and wrn/coreip directory.
Set and clarify difference between WIND_HOME and WIND_BASE variables.
Remove unrelated comment about CEXP (remnant from RTEMS). No more errors about missing headers.
- Version reporting is does not span multiple lines.
- See <https://github.com/nasa/cFE/pull/792>

### Development Build: 6.7.0+dev289

- Update `CFE_SB_TimeStampMsg` to save the message pointer argument `UT_Stub_CopyFromLocal` so that unit tests can check it
Expand Down
24 changes: 17 additions & 7 deletions cmake/sample_defs/toolchain-ppc-vxworks6.9.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,24 @@ set(CMAKE_SYSTEM_PROCESSOR ppc)
set(CMAKE_SYSTEM_VERSION 6.9)
set(VXWORKS_GCC_VERSION 4.3.3)
set(VXWORKS_HOST_VERSION x86-linux2)

# The VxWorks toolchain relies on several environment variables,
# which should be set already by an environment setup script.

# WIND_HOME refers to the top-level installation directory
set(WIND_HOME_DFL "$ENV{WIND_HOME}")
if(NOT WIND_HOME_DFL)
set(WIND_HOME_DFL "/opt/WindRiver")
endif(NOT WIND_HOME_DFL)
set(WIND_HOME "${WIND_HOME_DFL}" CACHE PATH "Wind River installation directory")
set(WIND_HOME "${WIND_HOME_DFL}" CACHE PATH "Wind River top level installation directory")

# WIND_BASE refers to the system-specific installation directory (e.g. vxworks-<VERSION>)
set(WIND_BASE_DFL "$ENV{WIND_BASE}")
if(NOT WIND_BASE_DFL)
set(WIND_BASE_DFL "${WIND_HOME}/vxworks-${CMAKE_SYSTEM_VERSION}")
endif(NOT WIND_BASE_DFL)
set(WIND_BASE "${WIND_BASE_DFL}" CACHE PATH "Wind River product installation directory")

set(VXWORKS_TOOLS_PREFIX "${WIND_HOME}/gnu/${VXWORKS_GCC_VERSION}-vxworks-${CMAKE_SYSTEM_VERSION}/${VXWORKS_HOST_VERSION}")


Expand All @@ -30,10 +43,6 @@ SET(CMAKE_AR "${SDKHOSTBINDIR}/ar${TARGETSUFFIX}")
SET(CMAKE_OBJDUMP "${SDKHOSTBINDIR}/objdump${TARGETSUFFIX}")
SET(CMAKE_RANLIB "${SDKHOSTBINDIR}/ranlib${TARGETSUFFIX}")

# Note that CEXP is not a shared library loader - it will not support code compiled with -fPIC
# Also exception handling is very iffy. These two options disable eh_frame creation.
#set(CMAKE_C_COMPILE_OPTIONS_PIC -fno-exceptions -fno-asynchronous-unwind-tables)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

Expand All @@ -46,6 +55,7 @@ SET(CMAKE_PREFIX_PATH /)
# these settings are specific to cFE/OSAL and determines which
# abstraction layers are built when using this toolchain
SET(CFE_SYSTEM_PSPNAME mcp750-vxworks)
SET(OSAL_SYSTEM_BSPTYPE mcp750-vxworks)
SET(OSAL_SYSTEM_OSTYPE vxworks)

include_directories(${WIND_BASE}/target/h/wrn/coreip)
include_directories(${WIND_BASE}/target/h)

10 changes: 5 additions & 5 deletions docs/src/cfs_versions.dox
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
* Reports the current development build's baseline, number, and name. Also includes a note about the latest official version. @n
* See cfs_versions.dox for format differences between development and release versions.
*/
#define CFE_VERSION_STRING \
" cFE Development Build\n " \
CFE_SRC_VERSION " (Codename: CONSTELLATION_NAME)" /* Codename for current development */ \
"\n Last Offical Release: cfe vX.Y.Z" /* For full support please use this version */

#define CFE_VERSION_STRING \
" cFE Development Build " \
CFE_SRC_VERSION " (Codename: CONSTELLATION_NAME)" /* Codename for current development */ \
", Last Official Release: cfe vX.Y.Z" /* For full support please use this version */
\endverbatim

**/
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/es/cfe_es_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ int32 CFE_ES_TaskInit(void)
#ifdef CFE_PSP_VERSION

Status = CFE_EVS_SendEvent(CFE_ES_INITSTATS_INF_EID, CFE_EVS_EventType_INFORMATION,
"\n%s%s\n cFE chksm %d",
"%s%s. cFE chksm %d",
CFS_VERSIONS, CFE_PSP_VERSION, (int)CFE_ES_TaskData.HkPacket.Payload.CFECoreChecksum);

#else /* if CFE_PSP_VERSION not defined use integer version macros*/
Expand Down
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/evs/cfe_evs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ int32 CFE_EVS_TaskInit ( void )

/* Write the AppID to the global location, now that the rest of initialization is done */
CFE_EVS_GlobalData.EVS_AppID = AppID;
EVS_SendEvent(CFE_EVS_STARTUP_EID, CFE_EVS_EventType_INFORMATION, "cFE EVS Initialized.\n%s", CFE_VERSION_STRING);
EVS_SendEvent(CFE_EVS_STARTUP_EID, CFE_EVS_EventType_INFORMATION, "cFE EVS Initialized.%s", CFE_VERSION_STRING);

return CFE_SUCCESS;

Expand Down
14 changes: 7 additions & 7 deletions fsw/cfe-core/src/inc/cfe_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


/* Development Build Macro Definitions */
#define CFE_BUILD_NUMBER 289 /*!< Development Build: Number of commits since baseline */
#define CFE_BUILD_NUMBER 292 /*!< Development Build: Number of commits since baseline */
#define CFE_BUILD_BASELINE "v6.7.0" /*!< Development Build: git tag that is the base for the current development */

/* Version Macro Definitions */
Expand All @@ -59,9 +59,9 @@
* See @ref cfsversions for format differences between development and release versions.
*/
#define CFE_VERSION_STRING \
" cFE Development Build\n " \
" cFE DEVELOPMENT BUILD " \
CFE_SRC_VERSION " (Codename: Bootes)" /* Codename for current development */ \
"\n Last Offical Release: cfe v6.7.0" /* For full support please use this version */
", Last Official Release: cfe v6.7.0" /* For full support please use this version */


/*! @brief OSAL Version Definitions.
Expand All @@ -78,9 +78,9 @@

/*! @brief Combined string with formatted combination of all cFS component versions */
#define CFS_VERSIONS \
"cFS Versions \n" \
" cfe: " CFE_SRC_VERSION "\n" \
" osal: " OS_VERSION "\n" \
" psp: " /* CFE_PSP_VERSION is defined at runtime */
"cFS Versions:" \
" cfe " CFE_SRC_VERSION \
", osal " OS_VERSION \
", psp " /* CFE_PSP_VERSION is defined at runtime */

#endif /* _cfe_version_ */
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/tbl/cfe_tbl_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ int32 CFE_TBL_TaskInit(void)
/*
** Task startup event message
*/
Status = CFE_EVS_SendEvent(CFE_TBL_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "cFE TBL Initialized.\n%s", CFE_VERSION_STRING);
Status = CFE_EVS_SendEvent(CFE_TBL_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "cFE TBL Initialized.%s", CFE_VERSION_STRING);

if(Status != CFE_SUCCESS)
{
Expand Down
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/time/cfe_time_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ int32 CFE_TIME_NoopCmd(const CFE_TIME_Noop_t *data)
CFE_TIME_TaskData.CommandCounter++;

CFE_EVS_SendEvent(CFE_TIME_NOOP_EID, CFE_EVS_EventType_INFORMATION,
"No-op command. %s", CFE_VERSION_STRING);
"No-op command.%s", CFE_VERSION_STRING);

return CFE_SUCCESS;

Expand Down

0 comments on commit 5ac3f0a

Please sign in to comment.