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:
Sebastian Huber
2023-08-02 07:27:51 +02:00
parent d4587a698a
commit aca1724c4c
6 changed files with 55 additions and 106 deletions
+4 -4
View File
@@ -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