Skip to content

Commit

Permalink
Move buildnumber information to cfe_psp.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo E. Cruz-Ortiz committed Jul 15, 2020
1 parent c5bc2b4 commit 2b99e0f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
14 changes: 14 additions & 0 deletions fsw/inc/cfe_psp.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "common_types.h"
#include "osapi.h"


/*
** Macro Definitions
*/
Expand Down Expand Up @@ -137,12 +138,25 @@
#define CFE_PSP_RST_SUBTYPE_MAX 10 /**< \brief Placeholder to indicate 1+ the maximum value that the PSP will ever use. */
/** \} */


/* Implement the "version" macros */
#define CFE_PSP_MAJOR_VERSION (GLOBAL_PSP_CONFIGDATA.PSP_VersionInfo.MajorVersion)
#define CFE_PSP_MINOR_VERSION (GLOBAL_PSP_CONFIGDATA.PSP_VersionInfo.MinorVersion)
#define CFE_PSP_REVISION (GLOBAL_PSP_CONFIGDATA.PSP_VersionInfo.Revision)
#define CFE_PSP_MISSION_REV (GLOBAL_PSP_CONFIGDATA.PSP_VersionInfo.MissionRev)

#define PSP_STR_HELPER(x) #x
#define PSP_STR(x) PSP_STR_HELPER(x)

#define PSP_BUILDNUMBER 68 /* Number of commits since baseline */

/* Baseling git tag + Number of commits since baseline */
#define CFE_PSP_VERSION "v1.4.0+dev" PSP_STR(PSP_BUILDNUMBER)

#define PSP_VERSION_STRING \
" psp development build \n" PSP_VERSION " (Codename: Bootes)" /* Codename for current development */ \
"\n Last Official Release: psp v1.4.0" /* For full support please use this version */

/*
** Type Definitions
*/
Expand Down
6 changes: 0 additions & 6 deletions fsw/mcp750-vxworks/inc/psp_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
#ifndef _psp_version_
#define _psp_version_

/*
** Development build identifiers
*/
#define CFE_PSP_BASELINE "Bootes"
#define CFE_PSP_BUILDNUMBER 67

/*
** Macro Definitions
*/
Expand Down
6 changes: 0 additions & 6 deletions fsw/pc-linux/inc/psp_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
#ifndef _psp_version_
#define _psp_version_

/*
* Development build identifiers
*/
#define CFE_PSP_BASELINE "Bootes"
#define CFE_PSP_BUILDNUMBER 67

/*
** Macro Definitions
*/
Expand Down
6 changes: 0 additions & 6 deletions fsw/pc-rtems/inc/psp_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
#ifndef _psp_version_
#define _psp_version_

/*
* Development build identifiers
*/
#define CFE_PSP_BASELINE "Bootes"
#define CFE_PSP_BUILDNUMBER 67

/*
** Macro Definitions
*/
Expand Down

0 comments on commit 2b99e0f

Please sign in to comment.