diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-10-25 10:38:01 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-08-02 07:27:51 +0200 |
commit | aca1724c4c60abfe76cabcec6bcec68fcef184b7 (patch) | |
tree | 963aaafd862ceedb4d5402a17159e7ac888e977d /cpukit | |
parent | d4587a698a0433fbe18d73279d4028cdf5445648 (diff) |
build: Optionally use a VERSION file
Define the RTEMS version in the wscript. Optionally use a VERSION file
to change the default values of the wscript. Allow the command line
option --rtems-version to override __RTEMS_MAJOR__. Remove support for
command line configurable options (--rtems-option).
Rename internal define RTEMS_VERSION_VC_KEY to
RTEMS_VERSION_CONTROL_KEY.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/sapi/src/version.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/sapi/src/version.c b/cpukit/sapi/src/version.c index ea07683876..7197ddd153 100644 --- a/cpukit/sapi/src/version.c +++ b/cpukit/sapi/src/version.c @@ -54,8 +54,8 @@ const char *rtems_version( void ) { -#ifdef RTEMS_VERSION_VC_KEY - return RTEMS_VERSION "." RTEMS_VERSION_VC_KEY; +#ifdef RTEMS_VERSION_CONTROL_KEY + return RTEMS_VERSION "." RTEMS_VERSION_CONTROL_KEY; #else return RTEMS_VERSION; #endif @@ -78,8 +78,8 @@ int rtems_version_revision( void ) const char *rtems_version_control_key( void ) { -#ifdef RTEMS_VERSION_VC_KEY - return RTEMS_VERSION_VC_KEY; +#ifdef RTEMS_VERSION_CONTROL_KEY + return RTEMS_VERSION_CONTROL_KEY; #else return ""; #endif |