mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 21:16:23 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user